From 6d1628d59002a6622b8f2af9446b5dae4e72331a Mon Sep 17 00:00:00 2001 From: reconman Date: Sat, 11 Mar 2023 05:47:55 +0100 Subject: [PATCH] Use sgqlc for graphql requests (#181) --- .github/workflows/CI.yml | 6 +- PlexAniSync.py | 10 +- TautulliSyncHelper.py | 9 +- anilist-schema.json | 29420 ++++++++++++++++ graphql.py | 183 - __init__.py => plexanisync/__init__.py | 0 _version.py => plexanisync/_version.py | 0 anilist.py => plexanisync/anilist.py | 351 +- plexanisync/anilist_schema.py | 3243 ++ .../custom_mappings.py | 21 +- plexanisync/graphql.py | 134 + plexanisync/logger_adapter.py | 8 + plexmodule.py => plexanisync/plexmodule.py | 28 +- requirements.txt | 1 + 14 files changed, 33018 insertions(+), 396 deletions(-) create mode 100644 anilist-schema.json delete mode 100644 graphql.py rename __init__.py => plexanisync/__init__.py (100%) rename _version.py => plexanisync/_version.py (100%) rename anilist.py => plexanisync/anilist.py (68%) create mode 100644 plexanisync/anilist_schema.py rename custom_mappings.py => plexanisync/custom_mappings.py (87%) create mode 100644 plexanisync/graphql.py create mode 100644 plexanisync/logger_adapter.py rename plexmodule.py => plexanisync/plexmodule.py (91%) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d0871d8..17f872e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,6 +16,10 @@ on: branches: [ master ] workflow_dispatch: +concurrency: + group: ${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest @@ -38,7 +42,7 @@ jobs: - name: Lint with flake8 and pylint run: | flake8 . - pylint PlexAniSync.py TautulliSyncHelper.py plexmodule.py anilist.py custom_mappings.py || pylint-exit --error-fail --warn-fail $? + pylint PlexAniSync.py TautulliSyncHelper.py ./plexanisync || pylint-exit --error-fail --warn-fail $? build-docker-plexanisync: needs: lint uses: rickdb/plexanisync/.github/workflows/build-docker-image.yml@master diff --git a/PlexAniSync.py b/PlexAniSync.py index 4b17abf..2bc01ef 100644 --- a/PlexAniSync.py +++ b/PlexAniSync.py @@ -7,11 +7,9 @@ import coloredlogs -import anilist -import graphql -import plexmodule -from _version import __version__ -from custom_mappings import read_custom_mappings +from plexanisync import anilist, graphql, plexmodule +from plexanisync._version import __version__ +from plexanisync.custom_mappings import read_custom_mappings # Logger settings LOG_FILENAME = "PlexAniSync.log" @@ -27,7 +25,7 @@ # Debug log logging.basicConfig( level=logging.DEBUG, - format="%(asctime)s %(levelname)s %(message)s", + format="%(asctime)s %(levelname)s %(name)s %(message)s", handlers=[logging.FileHandler("PlexAniSync-DEBUG.log", "w", "utf-8")], ) diff --git a/TautulliSyncHelper.py b/TautulliSyncHelper.py index 0b19362..1eec746 100644 --- a/TautulliSyncHelper.py +++ b/TautulliSyncHelper.py @@ -6,17 +6,14 @@ import coloredlogs -import anilist -import graphql -import plexmodule -from _version import __version__ -from custom_mappings import read_custom_mappings +from plexanisync import anilist, graphql, plexmodule +from plexanisync._version import __version__ +from plexanisync.custom_mappings import read_custom_mappings # Logger settings logger = logging.getLogger("PlexAniSync") coloredlogs.install(fmt="%(asctime)s %(message)s", logger=logger) - # Enable this if you want to also log all messages coming from imported # libraries # coloredlogs.install(level='DEBUG') diff --git a/anilist-schema.json b/anilist-schema.json new file mode 100644 index 0000000..8593af6 --- /dev/null +++ b/anilist-schema.json @@ -0,0 +1,29420 @@ +{ + "data": { + "__schema": { + "directives": [ + { + "args": [ + { + "defaultValue": null, + "description": "Included when true.", + "name": "if", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + } + ], + "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], + "name": "include" + }, + { + "args": [ + { + "defaultValue": null, + "description": "Skipped when true.", + "name": "if", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + } + ], + "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", + "locations": [ + "FIELD", + "FRAGMENT_SPREAD", + "INLINE_FRAGMENT" + ], + "name": "skip" + }, + { + "args": [ + { + "defaultValue": "\"No longer supported\"", + "description": "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).", + "name": "reason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "description": "Marks an element of a GraphQL schema as no longer supported.", + "locations": [ + "FIELD_DEFINITION", + "ENUM_VALUE" + ], + "name": "deprecated" + } + ], + "mutationType": { + "name": "Mutation" + }, + "queryType": { + "name": "Query" + }, + "subscriptionType": null, + "types": [ + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 50", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "Page", + "type": { + "kind": "OBJECT", + "name": "Page", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the season the media was released in", + "name": "season", + "type": { + "kind": "ENUM", + "name": "MediaSeason", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The year of the season (Winter 2017 would also include December 2016 releases). Requires season argument", + "name": "seasonYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the media's intended for 18+ adult audiences", + "name": "isAdult", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Only apply the tags filter argument to tags above this rank. Default: 18", + "name": "minimumTagRank", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source", + "type": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's country of origin", + "name": "countryOfOrigin", + "type": { + "kind": "SCALAR", + "name": "CountryCode", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the media is officially licensed or a self-published doujin release", + "name": "isLicensed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Media query", + "isDeprecated": false, + "name": "Media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to stats recorded while the media was releasing", + "name": "releasing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaTrendSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Media Trend query", + "isDeprecated": false, + "name": "MediaTrend", + "type": { + "kind": "OBJECT", + "name": "MediaTrend", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to episodes that haven't yet aired", + "name": "notYetAired", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AiringSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Airing schedule query", + "isDeprecated": false, + "name": "AiringSchedule", + "type": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CharacterSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Character query", + "isDeprecated": false, + "name": "Character", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by staff by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Staff query", + "isDeprecated": false, + "name": "Staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by a list entry's id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's name", + "name": "userName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the list entries media type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter list entries to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Limit to only entries also on the auth user's list. Requires user id or name arguments.", + "name": "compareWithAuthList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Media list query", + "isDeprecated": false, + "name": "MediaList", + "type": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's name", + "name": "userName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the list entries media type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Always return completed list entries in one group, overriding the user's split completed option.", + "name": "forceSingleCompletedList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Which chunk of list entries to load", + "name": "chunk", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per chunk, max 500", + "name": "perChunk", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Media list collection query, provides list pre-grouped by status & custom lists. User ID and Media Type arguments required.", + "isDeprecated": false, + "name": "MediaListCollection", + "type": { + "kind": "OBJECT", + "name": "MediaListCollection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Collection of all the possible media genres", + "isDeprecated": false, + "name": "GenreCollection", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Mod Only", + "name": "status", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Collection of all the possible media tags", + "isDeprecated": false, + "name": "MediaTagCollection", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTag", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the user id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the name of the user", + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to moderators only if true", + "name": "isModerator", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "User query", + "isDeprecated": false, + "name": "User", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Get the currently authenticated user", + "isDeprecated": false, + "name": "Viewer", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Reset the unread notification count to 0 on load", + "name": "resetNotificationCount", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Notification query", + "isDeprecated": false, + "name": "Notification", + "type": { + "kind": "UNION", + "name": "NotificationUnion", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StudioSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Studio query", + "isDeprecated": false, + "name": "Studio", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by Review id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media type", + "name": "mediaType", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ReviewSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Review query", + "isDeprecated": false, + "name": "Review", + "type": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies", + "name": "hasReplies", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies or is of type text", + "name": "hasRepliesOrTypeText", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivitySort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Activity query", + "isDeprecated": false, + "name": "Activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the reply id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the parent id", + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Activity reply query", + "isDeprecated": false, + "name": "ActivityReply", + "type": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Follow query", + "isDeprecated": false, + "name": "Following", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Follow query", + "isDeprecated": false, + "name": "Follower", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the thread's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the last user to comment on the thread", + "name": "replyUserId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the currently authenticated user's subscribed threads", + "name": "subscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread category id", + "name": "categoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread media id category", + "name": "mediaCategoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Thread query", + "isDeprecated": false, + "name": "Thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the comment id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the comment's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadCommentSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Comment query", + "isDeprecated": false, + "name": "ThreadComment", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by recommendation id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media recommendation id", + "name": "mediaRecommendationId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user who created the recommendation", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "RecommendationSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Recommendation query", + "isDeprecated": false, + "name": "Recommendation", + "type": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the likeable type", + "name": "likeableId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The type of model the id applies to", + "name": "type", + "type": { + "kind": "ENUM", + "name": "LikeableType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Like query", + "isDeprecated": false, + "name": "Like", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The markdown to be parsed to html", + "name": "markdown", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Provide AniList markdown to be converted to html (Requires auth)", + "isDeprecated": false, + "name": "Markdown", + "type": { + "kind": "OBJECT", + "name": "ParsedMarkdown", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "AniChartUser", + "type": { + "kind": "OBJECT", + "name": "AniChartUser", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Site statistics query", + "isDeprecated": false, + "name": "SiteStatistics", + "type": { + "kind": "OBJECT", + "name": "SiteStatistics", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the link id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ExternalLinkType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "mediaType", + "type": { + "kind": "ENUM", + "name": "ExternalLinkMediaType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "ExternalLinkSource collection query", + "isDeprecated": false, + "name": "ExternalLinkSourceCollection", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaExternalLink", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Query", + "possibleTypes": null + }, + { + "description": "The `Int` scalar type represents non-fractional signed whole numeric\nvalues. Int can represent values between -(2^31) and 2^31 - 1. ", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Int", + "possibleTypes": null + }, + { + "description": "Page of data", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the user id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the name of the user", + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to moderators only if true", + "name": "isModerator", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "users", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the season the media was released in", + "name": "season", + "type": { + "kind": "ENUM", + "name": "MediaSeason", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The year of the season (Winter 2017 would also include December 2016 releases). Requires season argument", + "name": "seasonYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the media's intended for 18+ adult audiences", + "name": "isAdult", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Only apply the tags filter argument to tags above this rank. Default: 18", + "name": "minimumTagRank", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source", + "type": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's country of origin", + "name": "countryOfOrigin", + "type": { + "kind": "SCALAR", + "name": "CountryCode", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the media is officially licensed or a self-published doujin release", + "name": "isLicensed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "media", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CharacterSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by staff by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StudioSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by a list entry's id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's name", + "name": "userName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the list entries media type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter list entries to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Limit to only entries also on the auth user's list. Requires user id or name arguments.", + "name": "compareWithAuthList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaList", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to episodes that haven't yet aired", + "name": "notYetAired", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AiringSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "airingSchedules", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to stats recorded while the media was releasing", + "name": "releasing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaTrendSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaTrends", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTrend", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Reset the unread notification count to 0 on load", + "name": "resetNotificationCount", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "notifications", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "UNION", + "name": "NotificationUnion", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "followers", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "following", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies", + "name": "hasReplies", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies or is of type text", + "name": "hasRepliesOrTypeText", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivitySort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "activities", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the reply id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the parent id", + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "activityReplies", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the thread's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the last user to comment on the thread", + "name": "replyUserId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the currently authenticated user's subscribed threads", + "name": "subscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread category id", + "name": "categoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread media id category", + "name": "mediaCategoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "threads", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the comment id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the comment's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadCommentSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "threadComments", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by Review id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media type", + "name": "mediaType", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ReviewSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reviews", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by recommendation id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media recommendation id", + "name": "mediaRecommendationId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user who created the recommendation", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "RecommendationSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "recommendations", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the likeable type", + "name": "likeableId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The type of model the id applies to", + "name": "type", + "type": { + "kind": "ENUM", + "name": "LikeableType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Page", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The total number of items. Note: This value is not guaranteed to be accurate, do not rely on this for logic", + "isDeprecated": false, + "name": "total", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The count on a page", + "isDeprecated": false, + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The current page", + "isDeprecated": false, + "name": "currentPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The last page", + "isDeprecated": false, + "name": "lastPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If there is another page", + "isDeprecated": false, + "name": "hasNextPage", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "PageInfo", + "possibleTypes": null + }, + { + "description": "The `Boolean` scalar type represents `true` or `false`.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Boolean", + "possibleTypes": null + }, + { + "description": "The `String` scalar type represents textual data, represented as UTF-8\ncharacter sequences. The String type is most often used by GraphQL to\nrepresent free-form human-readable text.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "String", + "possibleTypes": null + }, + { + "description": "User sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "USERNAME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "USERNAME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "WATCHED_TIME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "WATCHED_TIME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHAPTERS_READ" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHAPTERS_READ_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "UserSort", + "possibleTypes": null + }, + { + "description": "A user", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the user", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The name of the user", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The bio written by user (Markdown)", + "isDeprecated": false, + "name": "about", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's avatar images", + "isDeprecated": false, + "name": "avatar", + "type": { + "kind": "OBJECT", + "name": "UserAvatar", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's banner images", + "isDeprecated": false, + "name": "bannerImage", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the authenticated user if following this user", + "isDeprecated": false, + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If this user if following the authenticated user", + "isDeprecated": false, + "name": "isFollower", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the user is blocked by the authenticated user", + "isDeprecated": false, + "name": "isBlocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "bans", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's general options", + "isDeprecated": false, + "name": "options", + "type": { + "kind": "OBJECT", + "name": "UserOptions", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's media list options", + "isDeprecated": false, + "name": "mediaListOptions", + "type": { + "kind": "OBJECT", + "name": "MediaListOptions", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Deprecated. Use page arguments on each favourite field instead.", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The users favourites", + "isDeprecated": false, + "name": "favourites", + "type": { + "kind": "OBJECT", + "name": "Favourites", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users anime & manga list statistics", + "isDeprecated": false, + "name": "statistics", + "type": { + "kind": "OBJECT", + "name": "UserStatisticTypes", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of unread notifications the user has", + "isDeprecated": false, + "name": "unreadNotificationCount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the user page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The donation tier of the user", + "isDeprecated": false, + "name": "donatorTier", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Custom donation badge text", + "isDeprecated": false, + "name": "donatorBadge", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's moderator roles if they are a site moderator", + "isDeprecated": false, + "name": "moderatorRoles", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ModRole", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the user's account was created. (Does not exist for accounts created before 2020)", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the user's data was last updated", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "Deprecated. Replaced with statistics field.", + "description": "The user's statistics", + "isDeprecated": true, + "name": "stats", + "type": { + "kind": "OBJECT", + "name": "UserStats", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "Deprecated. Replaced with moderatorRoles field.", + "description": "If the user is a moderator or data moderator", + "isDeprecated": true, + "name": "moderatorStatus", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's previously used names.", + "isDeprecated": false, + "name": "previousNames", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserPreviousName", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "User", + "possibleTypes": null + }, + { + "description": "A user's avatars", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The avatar of user at its largest size", + "isDeprecated": false, + "name": "large", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The avatar of user at medium size", + "isDeprecated": false, + "name": "medium", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserAvatar", + "possibleTypes": null + }, + { + "description": "", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Json", + "possibleTypes": null + }, + { + "description": "A user's general options", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The language the user wants to see media titles in", + "isDeprecated": false, + "name": "titleLanguage", + "type": { + "kind": "ENUM", + "name": "UserTitleLanguage", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the user has enabled viewing of 18+ content", + "isDeprecated": false, + "name": "displayAdultContent", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the user receives notifications when a show they are watching aires", + "isDeprecated": false, + "name": "airingNotifications", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Profile highlight color (blue, purple, pink, orange, red, green, gray)", + "isDeprecated": false, + "name": "profileColor", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notification options", + "isDeprecated": false, + "name": "notificationOptions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "NotificationOption", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's timezone offset (Auth user only)", + "isDeprecated": false, + "name": "timezone", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Minutes between activity for them to be merged together. 0 is Never, Above 2 weeks (20160 mins) is Always.", + "isDeprecated": false, + "name": "activityMergeTime", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The language the user wants to see staff and character names in", + "isDeprecated": false, + "name": "staffNameLanguage", + "type": { + "kind": "ENUM", + "name": "UserStaffNameLanguage", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the user only allow messages from users they follow", + "isDeprecated": false, + "name": "restrictMessagesToFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The list activity types the user has disabled from being created from list updates", + "isDeprecated": false, + "name": "disabledListActivity", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ListActivityOption", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserOptions", + "possibleTypes": null + }, + { + "description": "The language the user wants to see media titles in", + "enumValues": [ + { + "deprecationReason": null, + "description": "The romanization of the native language title", + "isDeprecated": false, + "name": "ROMAJI" + }, + { + "deprecationReason": null, + "description": "The official english title", + "isDeprecated": false, + "name": "ENGLISH" + }, + { + "deprecationReason": null, + "description": "Official title in it's native language", + "isDeprecated": false, + "name": "NATIVE" + }, + { + "deprecationReason": null, + "description": "The romanization of the native language title, stylised by media creator", + "isDeprecated": false, + "name": "ROMAJI_STYLISED" + }, + { + "deprecationReason": null, + "description": "The official english title, stylised by media creator", + "isDeprecated": false, + "name": "ENGLISH_STYLISED" + }, + { + "deprecationReason": null, + "description": "Official title in it's native language, stylised by media creator", + "isDeprecated": false, + "name": "NATIVE_STYLISED" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "UserTitleLanguage", + "possibleTypes": null + }, + { + "description": "Notification option", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether this type of notification is enabled", + "isDeprecated": false, + "name": "enabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "NotificationOption", + "possibleTypes": null + }, + { + "description": "Notification type enum", + "enumValues": [ + { + "deprecationReason": null, + "description": "A user has sent you message", + "isDeprecated": false, + "name": "ACTIVITY_MESSAGE" + }, + { + "deprecationReason": null, + "description": "A user has replied to your activity", + "isDeprecated": false, + "name": "ACTIVITY_REPLY" + }, + { + "deprecationReason": null, + "description": "A user has followed you", + "isDeprecated": false, + "name": "FOLLOWING" + }, + { + "deprecationReason": null, + "description": "A user has mentioned you in their activity", + "isDeprecated": false, + "name": "ACTIVITY_MENTION" + }, + { + "deprecationReason": null, + "description": "A user has mentioned you in a forum comment", + "isDeprecated": false, + "name": "THREAD_COMMENT_MENTION" + }, + { + "deprecationReason": null, + "description": "A user has commented in one of your subscribed forum threads", + "isDeprecated": false, + "name": "THREAD_SUBSCRIBED" + }, + { + "deprecationReason": null, + "description": "A user has replied to your forum comment", + "isDeprecated": false, + "name": "THREAD_COMMENT_REPLY" + }, + { + "deprecationReason": null, + "description": "An anime you are currently watching has aired", + "isDeprecated": false, + "name": "AIRING" + }, + { + "deprecationReason": null, + "description": "A user has liked your activity", + "isDeprecated": false, + "name": "ACTIVITY_LIKE" + }, + { + "deprecationReason": null, + "description": "A user has liked your activity reply", + "isDeprecated": false, + "name": "ACTIVITY_REPLY_LIKE" + }, + { + "deprecationReason": null, + "description": "A user has liked your forum thread", + "isDeprecated": false, + "name": "THREAD_LIKE" + }, + { + "deprecationReason": null, + "description": "A user has liked your forum comment", + "isDeprecated": false, + "name": "THREAD_COMMENT_LIKE" + }, + { + "deprecationReason": null, + "description": "A user has replied to activity you have also replied to", + "isDeprecated": false, + "name": "ACTIVITY_REPLY_SUBSCRIBED" + }, + { + "deprecationReason": null, + "description": "A new anime or manga has been added to the site where its related media is on the user's list", + "isDeprecated": false, + "name": "RELATED_MEDIA_ADDITION" + }, + { + "deprecationReason": null, + "description": "An anime or manga has had a data change that affects how a user may track it in their lists", + "isDeprecated": false, + "name": "MEDIA_DATA_CHANGE" + }, + { + "deprecationReason": null, + "description": "Anime or manga entries on the user's list have been merged into a single entry", + "isDeprecated": false, + "name": "MEDIA_MERGE" + }, + { + "deprecationReason": null, + "description": "An anime or manga on the user's list has been deleted from the site", + "isDeprecated": false, + "name": "MEDIA_DELETION" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "NotificationType", + "possibleTypes": null + }, + { + "description": "The language the user wants to see staff and character names in", + "enumValues": [ + { + "deprecationReason": null, + "description": "The romanization of the staff or character's native name, with western name ordering", + "isDeprecated": false, + "name": "ROMAJI_WESTERN" + }, + { + "deprecationReason": null, + "description": "The romanization of the staff or character's native name", + "isDeprecated": false, + "name": "ROMAJI" + }, + { + "deprecationReason": null, + "description": "The staff or character's name in their native language", + "isDeprecated": false, + "name": "NATIVE" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "UserStaffNameLanguage", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "disabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ListActivityOption", + "possibleTypes": null + }, + { + "description": "Media list watching/reading status enum.", + "enumValues": [ + { + "deprecationReason": null, + "description": "Currently watching/reading", + "isDeprecated": false, + "name": "CURRENT" + }, + { + "deprecationReason": null, + "description": "Planning to watch/read", + "isDeprecated": false, + "name": "PLANNING" + }, + { + "deprecationReason": null, + "description": "Finished watching/reading", + "isDeprecated": false, + "name": "COMPLETED" + }, + { + "deprecationReason": null, + "description": "Stopped watching/reading before completing", + "isDeprecated": false, + "name": "DROPPED" + }, + { + "deprecationReason": null, + "description": "Paused watching/reading", + "isDeprecated": false, + "name": "PAUSED" + }, + { + "deprecationReason": null, + "description": "Re-watching/reading", + "isDeprecated": false, + "name": "REPEATING" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaListStatus", + "possibleTypes": null + }, + { + "description": "A user's list options", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The score format the user is using for media lists", + "isDeprecated": false, + "name": "scoreFormat", + "type": { + "kind": "ENUM", + "name": "ScoreFormat", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The default order list rows should be displayed in", + "isDeprecated": false, + "name": "rowOrder", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "No longer used", + "description": null, + "isDeprecated": true, + "name": "useLegacyLists", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's anime list options", + "isDeprecated": false, + "name": "animeList", + "type": { + "kind": "OBJECT", + "name": "MediaListTypeOptions", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user's manga list options", + "isDeprecated": false, + "name": "mangaList", + "type": { + "kind": "OBJECT", + "name": "MediaListTypeOptions", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "No longer used", + "description": "The list theme options for both lists", + "isDeprecated": true, + "name": "sharedTheme", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "No longer used", + "description": "If the shared theme should be used instead of the individual list themes", + "isDeprecated": true, + "name": "sharedThemeEnabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaListOptions", + "possibleTypes": null + }, + { + "description": "Media list scoring type", + "enumValues": [ + { + "deprecationReason": null, + "description": "An integer from 0-100", + "isDeprecated": false, + "name": "POINT_100" + }, + { + "deprecationReason": null, + "description": "A float from 0-10 with 1 decimal place", + "isDeprecated": false, + "name": "POINT_10_DECIMAL" + }, + { + "deprecationReason": null, + "description": "An integer from 0-10", + "isDeprecated": false, + "name": "POINT_10" + }, + { + "deprecationReason": null, + "description": "An integer from 0-5. Should be represented in Stars", + "isDeprecated": false, + "name": "POINT_5" + }, + { + "deprecationReason": null, + "description": "An integer from 0-3. Should be represented in Smileys. 0 => No Score, 1 => :(, 2 => :|, 3 => :)", + "isDeprecated": false, + "name": "POINT_3" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ScoreFormat", + "possibleTypes": null + }, + { + "description": "A user's list options for anime or manga lists", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The order each list should be displayed in", + "isDeprecated": false, + "name": "sectionOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the completed sections of the list should be separated by format", + "isDeprecated": false, + "name": "splitCompletedSectionByFormat", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "This field has not yet been fully implemented and may change without warning", + "description": "The list theme options", + "isDeprecated": true, + "name": "theme", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The names of the user's custom lists", + "isDeprecated": false, + "name": "customLists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The names of the user's advanced scoring sections", + "isDeprecated": false, + "name": "advancedScoring", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If advanced scoring is enabled", + "isDeprecated": false, + "name": "advancedScoringEnabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaListTypeOptions", + "possibleTypes": null + }, + { + "description": "User's favourite anime, manga, characters, staff & studios", + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite anime", + "isDeprecated": false, + "name": "anime", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite manga", + "isDeprecated": false, + "name": "manga", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite characters", + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "OBJECT", + "name": "CharacterConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite staff", + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "StaffConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The page number", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite studios", + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "OBJECT", + "name": "StudioConnection", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Favourites", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaConnection", + "possibleTypes": null + }, + { + "description": "Media connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Provide 2 to use new version 2 of relation enum", + "name": "version", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The type of relation to the parent model", + "isDeprecated": false, + "name": "relationType", + "type": { + "kind": "ENUM", + "name": "MediaRelation", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the studio is the main animation studio of the media (For Studio->MediaConnection field only)", + "isDeprecated": false, + "name": "isMainStudio", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters in the media voiced by the parent actor", + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters role in the media", + "isDeprecated": false, + "name": "characterRole", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Media specific character name", + "isDeprecated": false, + "name": "characterName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notes regarding the VA's role for the character", + "isDeprecated": false, + "name": "roleNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Used for grouping roles where multiple dubs exist for the same language. Either dubbing company name or language variant.", + "isDeprecated": false, + "name": "dubGroup", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The role of the staff member in the production of the media", + "isDeprecated": false, + "name": "staffRole", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "language", + "type": { + "kind": "ENUM", + "name": "StaffLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "The voice actors of the character", + "isDeprecated": false, + "name": "voiceActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "language", + "type": { + "kind": "ENUM", + "name": "StaffLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "The voice actors of the character with role date", + "isDeprecated": false, + "name": "voiceActorRoles", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffRoleType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The order the media should be displayed from the users favourites", + "isDeprecated": false, + "name": "favouriteOrder", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaEdge", + "possibleTypes": null + }, + { + "description": "Anime or Manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the media", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The mal id of the media", + "isDeprecated": false, + "name": "idMal", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The official titles of the media in various languages", + "isDeprecated": false, + "name": "title", + "type": { + "kind": "OBJECT", + "name": "MediaTitle", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of the media; anime or manga", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The format the media was released in", + "isDeprecated": false, + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Provide 2 to use new version 2 of sources enum", + "name": "version", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The current releasing status of the media", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Short description of the media's story and characters", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The first official release date of the media", + "isDeprecated": false, + "name": "startDate", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The last official release date of the media", + "isDeprecated": false, + "name": "endDate", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The season the media was initially released in", + "isDeprecated": false, + "name": "season", + "type": { + "kind": "ENUM", + "name": "MediaSeason", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The season year the media was initially released in", + "isDeprecated": false, + "name": "seasonYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "", + "description": "The year & season the media was initially released in", + "isDeprecated": false, + "name": "seasonInt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of episodes the anime has when complete", + "isDeprecated": false, + "name": "episodes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The general length of each anime episode in minutes", + "isDeprecated": false, + "name": "duration", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of chapters the manga has when complete", + "isDeprecated": false, + "name": "chapters", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of volumes the manga has when complete", + "isDeprecated": false, + "name": "volumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Where the media was created. (ISO 3166-1 alpha-2)", + "isDeprecated": false, + "name": "countryOfOrigin", + "type": { + "kind": "SCALAR", + "name": "CountryCode", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is officially licensed or a self-published doujin release", + "isDeprecated": false, + "name": "isLicensed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Provide 2 or 3 to use new version 2 or 3 of sources enum", + "name": "version", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Source type the media was adapted from.", + "isDeprecated": false, + "name": "source", + "type": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Official Twitter hashtags for the media", + "isDeprecated": false, + "name": "hashtag", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Media trailer or advertisement", + "isDeprecated": false, + "name": "trailer", + "type": { + "kind": "OBJECT", + "name": "MediaTrailer", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the media's data was last updated", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The cover images of the media", + "isDeprecated": false, + "name": "coverImage", + "type": { + "kind": "OBJECT", + "name": "MediaCoverImage", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The banner image of the media", + "isDeprecated": false, + "name": "bannerImage", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The genres of the media", + "isDeprecated": false, + "name": "genres", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Alternative titles of the media", + "isDeprecated": false, + "name": "synonyms", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A weighted average score of all the user's scores of the media", + "isDeprecated": false, + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Mean score of all the user's scores of the media", + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of users with the media on their list", + "isDeprecated": false, + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Locked media may not be added to lists our favorited. This may be due to the entry pending for deletion or other reasons.", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of related activity in the past hour", + "isDeprecated": false, + "name": "trending", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of user's who have favourited the media", + "isDeprecated": false, + "name": "favourites", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "List of tags that describes elements and themes of the media", + "isDeprecated": false, + "name": "tags", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTag", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Other media in the same or connecting franchise", + "isDeprecated": false, + "name": "relations", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CharacterSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "role", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The characters in the media", + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "OBJECT", + "name": "CharacterConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The staff who produced the media", + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "StaffConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StudioSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "isMain", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The companies who produced the media", + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "OBJECT", + "name": "StudioConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is marked as favourite by the current authenticated user", + "isDeprecated": false, + "name": "isFavourite", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is blocked from being added to favourites", + "isDeprecated": false, + "name": "isFavouriteBlocked", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is intended only for 18+ adult audiences", + "isDeprecated": false, + "name": "isAdult", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media's next episode airing schedule", + "isDeprecated": false, + "name": "nextAiringEpisode", + "type": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter to episodes that have not yet aired", + "name": "notYetAired", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The media's entire airing schedule", + "isDeprecated": false, + "name": "airingSchedule", + "type": { + "kind": "OBJECT", + "name": "AiringScheduleConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter to stats recorded while the media was releasing", + "name": "releasing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The media's daily trend stats", + "isDeprecated": false, + "name": "trends", + "type": { + "kind": "OBJECT", + "name": "MediaTrendConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "External links to another site related to the media", + "isDeprecated": false, + "name": "externalLinks", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaExternalLink", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Data and links to legal streaming episodes on external sites", + "isDeprecated": false, + "name": "streamingEpisodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaStreamingEpisode", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The ranking of the media in a particular time span and format compared to other media", + "isDeprecated": false, + "name": "rankings", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaRank", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The authenticated user's media list entry for the media", + "isDeprecated": false, + "name": "mediaListEntry", + "type": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ReviewSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "User reviews of the media", + "isDeprecated": false, + "name": "reviews", + "type": { + "kind": "OBJECT", + "name": "ReviewConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "RecommendationSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "User recommendations for similar media", + "isDeprecated": false, + "name": "recommendations", + "type": { + "kind": "OBJECT", + "name": "RecommendationConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "stats", + "type": { + "kind": "OBJECT", + "name": "MediaStats", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the media page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media should have forum thread automatically created for it on airing episode release", + "isDeprecated": false, + "name": "autoCreateForumThread", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is blocked from being recommended to/from", + "isDeprecated": false, + "name": "isRecommendationBlocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media is blocked from being reviewed", + "isDeprecated": false, + "name": "isReviewBlocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notes for site moderators", + "isDeprecated": false, + "name": "modNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Media", + "possibleTypes": null + }, + { + "description": "The official titles of the media in various languages", + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "stylised", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The romanization of the native language title", + "isDeprecated": false, + "name": "romaji", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "stylised", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The official english title", + "isDeprecated": false, + "name": "english", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "stylised", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Official title in it's native language", + "isDeprecated": false, + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The currently authenticated users preferred title language. Default romaji for non-authenticated", + "isDeprecated": false, + "name": "userPreferred", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTitle", + "possibleTypes": null + }, + { + "description": "Media type enum, anime or manga.", + "enumValues": [ + { + "deprecationReason": null, + "description": "Japanese Anime", + "isDeprecated": false, + "name": "ANIME" + }, + { + "deprecationReason": null, + "description": "Asian comic", + "isDeprecated": false, + "name": "MANGA" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaType", + "possibleTypes": null + }, + { + "description": "The format the media was released in", + "enumValues": [ + { + "deprecationReason": null, + "description": "Anime broadcast on television", + "isDeprecated": false, + "name": "TV" + }, + { + "deprecationReason": null, + "description": "Anime which are under 15 minutes in length and broadcast on television", + "isDeprecated": false, + "name": "TV_SHORT" + }, + { + "deprecationReason": null, + "description": "Anime movies with a theatrical release", + "isDeprecated": false, + "name": "MOVIE" + }, + { + "deprecationReason": null, + "description": "Special episodes that have been included in DVD/Blu-ray releases, picture dramas, pilots, etc", + "isDeprecated": false, + "name": "SPECIAL" + }, + { + "deprecationReason": null, + "description": "(Original Video Animation) Anime that have been released directly on DVD/Blu-ray without originally going through a theatrical release or television broadcast", + "isDeprecated": false, + "name": "OVA" + }, + { + "deprecationReason": null, + "description": "(Original Net Animation) Anime that have been originally released online or are only available through streaming services.", + "isDeprecated": false, + "name": "ONA" + }, + { + "deprecationReason": null, + "description": "Short anime released as a music video", + "isDeprecated": false, + "name": "MUSIC" + }, + { + "deprecationReason": null, + "description": "Professionally published manga with more than one chapter", + "isDeprecated": false, + "name": "MANGA" + }, + { + "deprecationReason": null, + "description": "Written books released as a series of light novels", + "isDeprecated": false, + "name": "NOVEL" + }, + { + "deprecationReason": null, + "description": "Manga with just one chapter", + "isDeprecated": false, + "name": "ONE_SHOT" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaFormat", + "possibleTypes": null + }, + { + "description": "The current releasing status of the media", + "enumValues": [ + { + "deprecationReason": null, + "description": "Has completed and is no longer being released", + "isDeprecated": false, + "name": "FINISHED" + }, + { + "deprecationReason": null, + "description": "Currently releasing", + "isDeprecated": false, + "name": "RELEASING" + }, + { + "deprecationReason": null, + "description": "To be released at a later date", + "isDeprecated": false, + "name": "NOT_YET_RELEASED" + }, + { + "deprecationReason": null, + "description": "Ended before the work could be finished", + "isDeprecated": false, + "name": "CANCELLED" + }, + { + "deprecationReason": null, + "description": "Version 2 only. Is currently paused from releasing and will resume at a later date", + "isDeprecated": false, + "name": "HIATUS" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaStatus", + "possibleTypes": null + }, + { + "description": "Date object that allows for incomplete date values (fuzzy)", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "Numeric Year (2017)", + "isDeprecated": false, + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Numeric Month (3)", + "isDeprecated": false, + "name": "month", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Numeric Day (24)", + "isDeprecated": false, + "name": "day", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "FuzzyDate", + "possibleTypes": null + }, + { + "description": null, + "enumValues": [ + { + "deprecationReason": null, + "description": "Months December to February", + "isDeprecated": false, + "name": "WINTER" + }, + { + "deprecationReason": null, + "description": "Months March to May", + "isDeprecated": false, + "name": "SPRING" + }, + { + "deprecationReason": null, + "description": "Months June to August", + "isDeprecated": false, + "name": "SUMMER" + }, + { + "deprecationReason": null, + "description": "Months September to November", + "isDeprecated": false, + "name": "FALL" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaSeason", + "possibleTypes": null + }, + { + "description": "ISO 3166-1 alpha-2 country code", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "CountryCode", + "possibleTypes": null + }, + { + "description": "Source type the media was adapted from", + "enumValues": [ + { + "deprecationReason": null, + "description": "An original production not based of another work", + "isDeprecated": false, + "name": "ORIGINAL" + }, + { + "deprecationReason": null, + "description": "Asian comic book", + "isDeprecated": false, + "name": "MANGA" + }, + { + "deprecationReason": null, + "description": "Written work published in volumes", + "isDeprecated": false, + "name": "LIGHT_NOVEL" + }, + { + "deprecationReason": null, + "description": "Video game driven primary by text and narrative", + "isDeprecated": false, + "name": "VISUAL_NOVEL" + }, + { + "deprecationReason": null, + "description": "Video game", + "isDeprecated": false, + "name": "VIDEO_GAME" + }, + { + "deprecationReason": null, + "description": "Other", + "isDeprecated": false, + "name": "OTHER" + }, + { + "deprecationReason": null, + "description": "Version 2+ only. Written works not published in volumes", + "isDeprecated": false, + "name": "NOVEL" + }, + { + "deprecationReason": null, + "description": "Version 2+ only. Self-published works", + "isDeprecated": false, + "name": "DOUJINSHI" + }, + { + "deprecationReason": null, + "description": "Version 2+ only. Japanese Anime", + "isDeprecated": false, + "name": "ANIME" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Written works published online", + "isDeprecated": false, + "name": "WEB_NOVEL" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Live action media such as movies or TV show", + "isDeprecated": false, + "name": "LIVE_ACTION" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Games excluding video games", + "isDeprecated": false, + "name": "GAME" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Comics excluding manga", + "isDeprecated": false, + "name": "COMIC" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Multimedia project", + "isDeprecated": false, + "name": "MULTIMEDIA_PROJECT" + }, + { + "deprecationReason": null, + "description": "Version 3 only. Picture book", + "isDeprecated": false, + "name": "PICTURE_BOOK" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaSource", + "possibleTypes": null + }, + { + "description": "Media trailer or advertisement", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The trailer video id", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The site the video is hosted by (Currently either youtube or dailymotion)", + "isDeprecated": false, + "name": "site", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the thumbnail image of the video", + "isDeprecated": false, + "name": "thumbnail", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTrailer", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The cover image url of the media at its largest size. If this size isn't available, large will be provided instead.", + "isDeprecated": false, + "name": "extraLarge", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The cover image url of the media at a large size", + "isDeprecated": false, + "name": "large", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The cover image url of the media at medium size", + "isDeprecated": false, + "name": "medium", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Average #hex color of cover image", + "isDeprecated": false, + "name": "color", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaCoverImage", + "possibleTypes": null + }, + { + "description": "A tag that describes a theme or element of the media", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the tag", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The name of the tag", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A general description of the tag", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The categories of tags this tag belongs to", + "isDeprecated": false, + "name": "category", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The relevance ranking of the tag out of the 100 for this media", + "isDeprecated": false, + "name": "rank", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the tag could be a spoiler for any media", + "isDeprecated": false, + "name": "isGeneralSpoiler", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the tag is a spoiler for this media", + "isDeprecated": false, + "name": "isMediaSpoiler", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the tag is only for adult 18+ media", + "isDeprecated": false, + "name": "isAdult", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who submitted the tag", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTag", + "possibleTypes": null + }, + { + "description": "Character sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ROLE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ROLE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES_DESC" + }, + { + "deprecationReason": null, + "description": "Order manually decided by moderators", + "isDeprecated": false, + "name": "RELEVANCE" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CharacterSort", + "possibleTypes": null + }, + { + "description": "The role the character plays in the media", + "enumValues": [ + { + "deprecationReason": null, + "description": "A primary character role in the media", + "isDeprecated": false, + "name": "MAIN" + }, + { + "deprecationReason": null, + "description": "A supporting character role in the media", + "isDeprecated": false, + "name": "SUPPORTING" + }, + { + "deprecationReason": null, + "description": "A background character in the media", + "isDeprecated": false, + "name": "BACKGROUND" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "CharacterRole", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CharacterEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterConnection", + "possibleTypes": null + }, + { + "description": "Character connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters role in the media", + "isDeprecated": false, + "name": "role", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Media specific character name", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "language", + "type": { + "kind": "ENUM", + "name": "StaffLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "The voice actors of the character", + "isDeprecated": false, + "name": "voiceActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "language", + "type": { + "kind": "ENUM", + "name": "StaffLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "The voice actors of the character with role date", + "isDeprecated": false, + "name": "voiceActorRoles", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffRoleType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media the character is in", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The order the character should be displayed from the users favourites", + "isDeprecated": false, + "name": "favouriteOrder", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterEdge", + "possibleTypes": null + }, + { + "description": "A character that features in an anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the character", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The names of the character", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "OBJECT", + "name": "CharacterName", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Character images", + "isDeprecated": false, + "name": "image", + "type": { + "kind": "OBJECT", + "name": "CharacterImage", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "A general description of the character", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's gender. Usually Male, Female, or Non-binary but can be any string.", + "isDeprecated": false, + "name": "gender", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's birth date", + "isDeprecated": false, + "name": "dateOfBirth", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's age. Note this is a string, not an int, it may contain further text and additional ages.", + "isDeprecated": false, + "name": "age", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters blood type", + "isDeprecated": false, + "name": "bloodType", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the character is marked as favourite by the currently authenticated user", + "isDeprecated": false, + "name": "isFavourite", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the character is blocked from being added to favourites", + "isDeprecated": false, + "name": "isFavouriteBlocked", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the character page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Media that includes the character", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "No data available", + "description": null, + "isDeprecated": true, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of user's who have favourited the character", + "isDeprecated": false, + "name": "favourites", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notes for site moderators", + "isDeprecated": false, + "name": "modNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Character", + "possibleTypes": null + }, + { + "description": "The names of the character", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The character's given name", + "isDeprecated": false, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's middle name", + "isDeprecated": false, + "name": "middle", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's surname", + "isDeprecated": false, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's first and last name", + "isDeprecated": false, + "name": "full", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's full name in their native language", + "isDeprecated": false, + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Other names the character might be referred to as", + "isDeprecated": false, + "name": "alternative", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Other names the character might be referred to as but are spoilers", + "isDeprecated": false, + "name": "alternativeSpoiler", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The currently authenticated users preferred name language. Default romaji for non-authenticated", + "isDeprecated": false, + "name": "userPreferred", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterName", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The character's image of media at its largest size", + "isDeprecated": false, + "name": "large", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character's image of media at medium size", + "isDeprecated": false, + "name": "medium", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterImage", + "possibleTypes": null + }, + { + "description": "Media sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_ROMAJI" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_ROMAJI_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_ENGLISH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_ENGLISH_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_NATIVE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_NATIVE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TYPE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TYPE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FORMAT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FORMAT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "START_DATE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "START_DATE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "END_DATE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "END_DATE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "POPULARITY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "POPULARITY_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TRENDING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TRENDING_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODES_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DURATION" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DURATION_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STATUS" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STATUS_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHAPTERS" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHAPTERS_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "VOLUMES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "VOLUMES_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaSort", + "possibleTypes": null + }, + { + "description": "The primary language of the voice actor", + "enumValues": [ + { + "deprecationReason": null, + "description": "Japanese", + "isDeprecated": false, + "name": "JAPANESE" + }, + { + "deprecationReason": null, + "description": "English", + "isDeprecated": false, + "name": "ENGLISH" + }, + { + "deprecationReason": null, + "description": "Korean", + "isDeprecated": false, + "name": "KOREAN" + }, + { + "deprecationReason": null, + "description": "Italian", + "isDeprecated": false, + "name": "ITALIAN" + }, + { + "deprecationReason": null, + "description": "Spanish", + "isDeprecated": false, + "name": "SPANISH" + }, + { + "deprecationReason": null, + "description": "Portuguese", + "isDeprecated": false, + "name": "PORTUGUESE" + }, + { + "deprecationReason": null, + "description": "French", + "isDeprecated": false, + "name": "FRENCH" + }, + { + "deprecationReason": null, + "description": "German", + "isDeprecated": false, + "name": "GERMAN" + }, + { + "deprecationReason": null, + "description": "Hebrew", + "isDeprecated": false, + "name": "HEBREW" + }, + { + "deprecationReason": null, + "description": "Hungarian", + "isDeprecated": false, + "name": "HUNGARIAN" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "StaffLanguage", + "possibleTypes": null + }, + { + "description": "Staff sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ROLE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ROLE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "LANGUAGE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "LANGUAGE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES_DESC" + }, + { + "deprecationReason": null, + "description": "Order manually decided by moderators", + "isDeprecated": false, + "name": "RELEVANCE" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "StaffSort", + "possibleTypes": null + }, + { + "description": "Voice actors or production staff", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the staff member", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The names of the staff member", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "OBJECT", + "name": "StaffName", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "Replaced with languageV2", + "description": "The primary language the staff member dub's in", + "isDeprecated": true, + "name": "language", + "type": { + "kind": "ENUM", + "name": "StaffLanguage", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The primary language of the staff member. Current values: Japanese, English, Korean, Italian, Spanish, Portuguese, French, German, Hebrew, Hungarian, Chinese, Arabic, Filipino, Catalan, Finnish, Turkish, Dutch, Swedish, Thai, Tagalog, Malaysian, Indonesian, Vietnamese, Nepali, Hindi, Urdu", + "isDeprecated": false, + "name": "languageV2", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The staff images", + "isDeprecated": false, + "name": "image", + "type": { + "kind": "OBJECT", + "name": "StaffImage", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "A general description of the staff member", + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's primary occupations", + "isDeprecated": false, + "name": "primaryOccupations", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The staff's gender. Usually Male, Female, or Non-binary but can be any string.", + "isDeprecated": false, + "name": "gender", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "dateOfBirth", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "dateOfDeath", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's age in years", + "isDeprecated": false, + "name": "age", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "[startYear, endYear] (If the 2nd value is not present staff is still active)", + "isDeprecated": false, + "name": "yearsActive", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The persons birthplace or hometown", + "isDeprecated": false, + "name": "homeTown", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The persons blood type", + "isDeprecated": false, + "name": "bloodType", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the staff member is marked as favourite by the currently authenticated user", + "isDeprecated": false, + "name": "isFavourite", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the staff member is blocked from being added to favourites", + "isDeprecated": false, + "name": "isFavouriteBlocked", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the staff page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Media where the staff member has a production role", + "isDeprecated": false, + "name": "staffMedia", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CharacterSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Characters voiced by the actor", + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "OBJECT", + "name": "CharacterConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": null, + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Media the actor voiced characters in. (Same data as characters with media as node instead of characters)", + "isDeprecated": false, + "name": "characterMedia", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": "No data available", + "description": null, + "isDeprecated": true, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Staff member that the submission is referencing", + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Submitter for the submission", + "isDeprecated": false, + "name": "submitter", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Status of the submission", + "isDeprecated": false, + "name": "submissionStatus", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Inner details of submission status", + "isDeprecated": false, + "name": "submissionNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of user's who have favourited the staff member", + "isDeprecated": false, + "name": "favourites", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notes for site moderators", + "isDeprecated": false, + "name": "modNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Staff", + "possibleTypes": null + }, + { + "description": "The names of the staff member", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The person's given name", + "isDeprecated": false, + "name": "first", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's middle name", + "isDeprecated": false, + "name": "middle", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's surname", + "isDeprecated": false, + "name": "last", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's first and last name", + "isDeprecated": false, + "name": "full", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's full name in their native language", + "isDeprecated": false, + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Other names the staff member might be referred to as (pen names)", + "isDeprecated": false, + "name": "alternative", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The currently authenticated users preferred name language. Default romaji for non-authenticated", + "isDeprecated": false, + "name": "userPreferred", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffName", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The person's image of media at its largest size", + "isDeprecated": false, + "name": "large", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The person's image of media at medium size", + "isDeprecated": false, + "name": "medium", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffImage", + "possibleTypes": null + }, + { + "description": "Voice actor role for a character", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The voice actors of the character", + "isDeprecated": false, + "name": "voiceActor", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Notes regarding the VA's role for the character", + "isDeprecated": false, + "name": "roleNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Used for grouping roles where multiple dubs exist for the same language. Either dubbing company name or language variant.", + "isDeprecated": false, + "name": "dubGroup", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffRoleType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffConnection", + "possibleTypes": null + }, + { + "description": "Staff connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The role of the staff member in the production of the media", + "isDeprecated": false, + "name": "role", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The order the staff should be displayed from the users favourites", + "isDeprecated": false, + "name": "favouriteOrder", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffEdge", + "possibleTypes": null + }, + { + "description": "Studio sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "NAME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "NAME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FAVOURITES_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "StudioSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StudioEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StudioConnection", + "possibleTypes": null + }, + { + "description": "Studio connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the studio is the main animation studio of the anime", + "isDeprecated": false, + "name": "isMain", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The order the character should be displayed from the users favourites", + "isDeprecated": false, + "name": "favouriteOrder", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StudioEdge", + "possibleTypes": null + }, + { + "description": "Animation or production company", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the studio", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The name of the studio", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the studio is an animation studio or a different kind of company", + "isDeprecated": false, + "name": "isAnimationStudio", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "If the studio was the primary animation studio of the media", + "name": "isMain", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The media the studio has worked on", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "MediaConnection", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the studio page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the studio is marked as favourite by the currently authenticated user", + "isDeprecated": false, + "name": "isFavourite", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of user's who have favourited the studio", + "isDeprecated": false, + "name": "favourites", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Studio", + "possibleTypes": null + }, + { + "description": "Media Airing Schedule. NOTE: We only aim to guarantee that FUTURE airing data is present and accurate.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the airing schedule item", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the episode airs at", + "isDeprecated": false, + "name": "airingAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Seconds until episode starts airing", + "isDeprecated": false, + "name": "timeUntilAiring", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The airing episode number", + "isDeprecated": false, + "name": "episode", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The associate media id of the airing episode", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The associate media of the airing episode", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AiringSchedule", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AiringScheduleEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AiringScheduleConnection", + "possibleTypes": null + }, + { + "description": "AiringSchedule connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AiringScheduleEdge", + "possibleTypes": null + }, + { + "description": "Media trend sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DATE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DATE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "POPULARITY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "POPULARITY_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TRENDING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TRENDING_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODE_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaTrendSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTrendEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTrend", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTrendConnection", + "possibleTypes": null + }, + { + "description": "Media trend connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "MediaTrend", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTrendEdge", + "possibleTypes": null + }, + { + "description": "Daily media statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the tag", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The day the data was recorded (timestamp)", + "isDeprecated": false, + "name": "date", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of media activity on the day", + "isDeprecated": false, + "name": "trending", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A weighted average score of all the user's scores of the media", + "isDeprecated": false, + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of users with the media on their list", + "isDeprecated": false, + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of users with watching/reading the media", + "isDeprecated": false, + "name": "inProgress", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the media was being released at this time", + "isDeprecated": false, + "name": "releasing", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The episode number of the anime released on this day", + "isDeprecated": false, + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The related media", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaTrend", + "possibleTypes": null + }, + { + "description": "An external link to another site related to the media or staff member", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the external link", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url of the external link or base url of link source", + "isDeprecated": false, + "name": "url", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The links website site name", + "isDeprecated": false, + "name": "site", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The links website site id", + "isDeprecated": false, + "name": "siteId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ExternalLinkType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Language the site content is in. See Staff language field for values.", + "isDeprecated": false, + "name": "language", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "color", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The icon image url of the site. Not available for all links. Transparent PNG 64x64", + "isDeprecated": false, + "name": "icon", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isDisabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaExternalLink", + "possibleTypes": null + }, + { + "description": null, + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "INFO" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STREAMING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SOCIAL" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ExternalLinkType", + "possibleTypes": null + }, + { + "description": "Data and links to legal streaming episodes on external sites", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "Title of the episode", + "isDeprecated": false, + "name": "title", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Url of episode image thumbnail", + "isDeprecated": false, + "name": "thumbnail", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url of the episode", + "isDeprecated": false, + "name": "url", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The site location of the streaming episodes", + "isDeprecated": false, + "name": "site", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaStreamingEpisode", + "possibleTypes": null + }, + { + "description": "The ranking of a media in a particular time span and format compared to other media", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the rank", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The numerical rank of the media", + "isDeprecated": false, + "name": "rank", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of ranking", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaRankType", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The format the media is ranked within", + "isDeprecated": false, + "name": "format", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The year the media is ranked within", + "isDeprecated": false, + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The season the media is ranked within", + "isDeprecated": false, + "name": "season", + "type": { + "kind": "ENUM", + "name": "MediaSeason", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the ranking is based on all time instead of a season/year", + "isDeprecated": false, + "name": "allTime", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "String that gives context to the ranking type and time span", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaRank", + "possibleTypes": null + }, + { + "description": "The type of ranking", + "enumValues": [ + { + "deprecationReason": null, + "description": "Ranking is based on the media's ratings/score", + "isDeprecated": false, + "name": "RATED" + }, + { + "deprecationReason": null, + "description": "Ranking is based on the media's popularity", + "isDeprecated": false, + "name": "POPULAR" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaRankType", + "possibleTypes": null + }, + { + "description": "List of anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the list entry", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user owner of the list entry", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the media", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The watching/reading status", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Force the score to be returned in the provided format type.", + "name": "format", + "type": { + "kind": "ENUM", + "name": "ScoreFormat", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The score of the entry", + "isDeprecated": false, + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of episodes/chapters consumed by the user", + "isDeprecated": false, + "name": "progress", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of volumes read by the user", + "isDeprecated": false, + "name": "progressVolumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of times the user has rewatched/read the media", + "isDeprecated": false, + "name": "repeat", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Priority of planning", + "isDeprecated": false, + "name": "priority", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the entry should only be visible to authenticated user", + "isDeprecated": false, + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Text notes", + "isDeprecated": false, + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the entry shown be hidden from non-custom lists", + "isDeprecated": false, + "name": "hiddenFromStatusLists", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Change return structure to an array of objects", + "name": "asArray", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Map of booleans for which custom lists the entry are in", + "isDeprecated": false, + "name": "customLists", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Map of advanced scores with name keys", + "isDeprecated": false, + "name": "advancedScores", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the entry was started by the user", + "isDeprecated": false, + "name": "startedAt", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the entry was completed by the user", + "isDeprecated": false, + "name": "completedAt", + "type": { + "kind": "OBJECT", + "name": "FuzzyDate", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the entry data was last updated", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the entry data was created", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaList", + "possibleTypes": null + }, + { + "description": "The `Float` scalar type represents signed double-precision fractional\nvalues as specified by\n[IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point). ", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "Float", + "possibleTypes": null + }, + { + "description": "Review sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATING_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATED_AT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ReviewSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ReviewEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ReviewConnection", + "possibleTypes": null + }, + { + "description": "Review connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ReviewEdge", + "possibleTypes": null + }, + { + "description": "A Review that features in an anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the review", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the review's creator", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the review's media", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "For which type of media the review is for", + "isDeprecated": false, + "name": "mediaType", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A short summary of the review", + "isDeprecated": false, + "name": "summary", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The main review body text", + "isDeprecated": false, + "name": "body", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The total user rating of the review", + "isDeprecated": false, + "name": "rating", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of user ratings of the review", + "isDeprecated": false, + "name": "ratingAmount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The rating of the review by currently authenticated user", + "isDeprecated": false, + "name": "userRating", + "type": { + "kind": "ENUM", + "name": "ReviewRating", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The review score of the media", + "isDeprecated": false, + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the review is not yet publicly published and is only viewable by creator", + "isDeprecated": false, + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the review page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the thread creation", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the thread last update", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The creator of the review", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media the review is of", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Review", + "possibleTypes": null + }, + { + "description": "Review rating enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "NO_VOTE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UP_VOTE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DOWN_VOTE" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ReviewRating", + "possibleTypes": null + }, + { + "description": "Recommendation sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATING_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "RecommendationSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RecommendationEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RecommendationConnection", + "possibleTypes": null + }, + { + "description": "Recommendation connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RecommendationEdge", + "possibleTypes": null + }, + { + "description": "Media recommendation", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the recommendation", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Users rating of the recommendation", + "isDeprecated": false, + "name": "rating", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The rating of the recommendation by currently authenticated user", + "isDeprecated": false, + "name": "userRating", + "type": { + "kind": "ENUM", + "name": "RecommendationRating", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media the recommendation is from", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The recommended media", + "isDeprecated": false, + "name": "mediaRecommendation", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user that first created the recommendation", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Recommendation", + "possibleTypes": null + }, + { + "description": "Recommendation rating enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "NO_RATING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATE_UP" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RATE_DOWN" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "RecommendationRating", + "possibleTypes": null + }, + { + "description": "A media's statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "scoreDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ScoreDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "statusDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StatusDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": "Replaced by MediaTrends", + "description": null, + "isDeprecated": true, + "name": "airingProgression", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AiringProgression", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaStats", + "possibleTypes": null + }, + { + "description": "A user's list score distribution.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of list entries with this score", + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ScoreDistribution", + "possibleTypes": null + }, + { + "description": "The distribution of the watching/reading status of media or a user's list", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The day the activity took place (Unix timestamp)", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of entries with this status", + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StatusDistribution", + "possibleTypes": null + }, + { + "description": "Score & Watcher stats for airing anime by episode and mid-week", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The episode the stats were recorded at. .5 is the mid point between 2 episodes airing dates.", + "isDeprecated": false, + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The average score for the media", + "isDeprecated": false, + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of users watching the anime", + "isDeprecated": false, + "name": "watching", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AiringProgression", + "possibleTypes": null + }, + { + "description": "Type of relation media has to its parent.", + "enumValues": [ + { + "deprecationReason": null, + "description": "An adaption of this media into a different format", + "isDeprecated": false, + "name": "ADAPTATION" + }, + { + "deprecationReason": null, + "description": "Released before the relation", + "isDeprecated": false, + "name": "PREQUEL" + }, + { + "deprecationReason": null, + "description": "Released after the relation", + "isDeprecated": false, + "name": "SEQUEL" + }, + { + "deprecationReason": null, + "description": "The media a side story is from", + "isDeprecated": false, + "name": "PARENT" + }, + { + "deprecationReason": null, + "description": "A side story of the parent media", + "isDeprecated": false, + "name": "SIDE_STORY" + }, + { + "deprecationReason": null, + "description": "Shares at least 1 character", + "isDeprecated": false, + "name": "CHARACTER" + }, + { + "deprecationReason": null, + "description": "A shortened and summarized version", + "isDeprecated": false, + "name": "SUMMARY" + }, + { + "deprecationReason": null, + "description": "An alternative version of the same media", + "isDeprecated": false, + "name": "ALTERNATIVE" + }, + { + "deprecationReason": null, + "description": "An alternative version of the media with a different primary focus", + "isDeprecated": false, + "name": "SPIN_OFF" + }, + { + "deprecationReason": null, + "description": "Other", + "isDeprecated": false, + "name": "OTHER" + }, + { + "deprecationReason": null, + "description": "Version 2 only. The source material the media was adapted from", + "isDeprecated": false, + "name": "SOURCE" + }, + { + "deprecationReason": null, + "description": "Version 2 only.", + "isDeprecated": false, + "name": "COMPILATION" + }, + { + "deprecationReason": null, + "description": "Version 2 only.", + "isDeprecated": false, + "name": "CONTAINS" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaRelation", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "anime", + "type": { + "kind": "OBJECT", + "name": "UserStatistics", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "manga", + "type": { + "kind": "OBJECT", + "name": "UserStatistics", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStatisticTypes", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "standardDeviation", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "episodesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "volumesRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "formats", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserFormatStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "statuses", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserStatusStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "scores", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserScoreStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "lengths", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserLengthStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "releaseYears", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserReleaseYearStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "startYears", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserStartYearStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "genres", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserGenreStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "tags", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserTagStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "countries", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserCountryStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "voiceActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserVoiceActorStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserStaffStatistic", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "limit", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserStatisticsSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserStudioStatistic", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStatistics", + "possibleTypes": null + }, + { + "description": "User statistics sort enum", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "COUNT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "COUNT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEAN_SCORE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEAN_SCORE_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "UserStatisticsSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserFormatStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStatusStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserScoreStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "length", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserLengthStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "releaseYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserReleaseYearStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "startYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStartYearStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "genre", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserGenreStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "tag", + "type": { + "kind": "OBJECT", + "name": "MediaTag", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserTagStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "country", + "type": { + "kind": "SCALAR", + "name": "CountryCode", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserCountryStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "voiceActor", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characterIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserVoiceActorStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStaffStatistic", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "minutesWatched", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaIds", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studio", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStudioStatistic", + "possibleTypes": null + }, + { + "description": "Mod role enums", + "enumValues": [ + { + "deprecationReason": null, + "description": "An AniList administrator", + "isDeprecated": false, + "name": "ADMIN" + }, + { + "deprecationReason": null, + "description": "A head developer of AniList", + "isDeprecated": false, + "name": "LEAD_DEVELOPER" + }, + { + "deprecationReason": null, + "description": "An AniList developer", + "isDeprecated": false, + "name": "DEVELOPER" + }, + { + "deprecationReason": null, + "description": "A lead community moderator", + "isDeprecated": false, + "name": "LEAD_COMMUNITY" + }, + { + "deprecationReason": null, + "description": "A community moderator", + "isDeprecated": false, + "name": "COMMUNITY" + }, + { + "deprecationReason": null, + "description": "A discord community moderator", + "isDeprecated": false, + "name": "DISCORD_COMMUNITY" + }, + { + "deprecationReason": null, + "description": "A lead anime data moderator", + "isDeprecated": false, + "name": "LEAD_ANIME_DATA" + }, + { + "deprecationReason": null, + "description": "An anime data moderator", + "isDeprecated": false, + "name": "ANIME_DATA" + }, + { + "deprecationReason": null, + "description": "A lead manga data moderator", + "isDeprecated": false, + "name": "LEAD_MANGA_DATA" + }, + { + "deprecationReason": null, + "description": "A manga data moderator", + "isDeprecated": false, + "name": "MANGA_DATA" + }, + { + "deprecationReason": null, + "description": "A lead social media moderator", + "isDeprecated": false, + "name": "LEAD_SOCIAL_MEDIA" + }, + { + "deprecationReason": null, + "description": "A social media moderator", + "isDeprecated": false, + "name": "SOCIAL_MEDIA" + }, + { + "deprecationReason": null, + "description": "A retired moderator", + "isDeprecated": false, + "name": "RETIRED" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ModRole", + "possibleTypes": null + }, + { + "description": "A user's statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The amount of anime the user has watched in minutes", + "isDeprecated": false, + "name": "watchedTime", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of manga chapters the user has read", + "isDeprecated": false, + "name": "chaptersRead", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "activityHistory", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "UserActivityHistory", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "animeStatusDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StatusDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mangaStatusDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StatusDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "animeScoreDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ScoreDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mangaScoreDistribution", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ScoreDistribution", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "animeListScores", + "type": { + "kind": "OBJECT", + "name": "ListScoreStats", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mangaListScores", + "type": { + "kind": "OBJECT", + "name": "ListScoreStats", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredGenresOverview", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenreStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredGenres", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "GenreStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredTags", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "TagStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredStaff", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredStudios", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StudioStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredYears", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "YearStats", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "favouredFormats", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "FormatStats", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserStats", + "possibleTypes": null + }, + { + "description": "A user's activity history stats.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The day the activity took place (Unix timestamp)", + "isDeprecated": false, + "name": "date", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of activity on the day", + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The level of activity represented on a 1-10 scale", + "isDeprecated": false, + "name": "level", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserActivityHistory", + "possibleTypes": null + }, + { + "description": "User's list score statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "standardDeviation", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ListScoreStats", + "possibleTypes": null + }, + { + "description": "User's genre statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "genre", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of time in minutes the genre has been watched by the user", + "isDeprecated": false, + "name": "timeWatched", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "GenreStats", + "possibleTypes": null + }, + { + "description": "User's tag statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "tag", + "type": { + "kind": "OBJECT", + "name": "MediaTag", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of time in minutes the tag has been watched by the user", + "isDeprecated": false, + "name": "timeWatched", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TagStats", + "possibleTypes": null + }, + { + "description": "User's staff statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of time in minutes the staff member has been watched by the user", + "isDeprecated": false, + "name": "timeWatched", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffStats", + "possibleTypes": null + }, + { + "description": "User's studio statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studio", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of time in minutes the studio's works have been watched by the user", + "isDeprecated": false, + "name": "timeWatched", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StudioStats", + "possibleTypes": null + }, + { + "description": "User's year statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "meanScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "YearStats", + "possibleTypes": null + }, + { + "description": "User's format statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "amount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "FormatStats", + "possibleTypes": null + }, + { + "description": "A user's previous name", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "A previous name of the user.", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the user first changed from this name.", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the user most recently changed from this name.", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserPreviousName", + "possibleTypes": null + }, + { + "description": "8 digit long date integer (YYYYMMDD). Unknown dates represented by 0. E.g. 2016: 20160000, May 1976: 19760500", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "FuzzyDateInt", + "possibleTypes": null + }, + { + "description": "Media list sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SCORE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STATUS" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STATUS_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS_VOLUMES" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PROGRESS_VOLUMES_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPEAT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPEAT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PRIORITY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PRIORITY_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STARTED_ON" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STARTED_ON_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FINISHED_ON" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "FINISHED_ON_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ADDED_TIME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ADDED_TIME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_TIME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_TIME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_ROMAJI" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_ROMAJI_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_ENGLISH" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_ENGLISH_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_NATIVE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_TITLE_NATIVE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_POPULARITY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_POPULARITY_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "MediaListSort", + "possibleTypes": null + }, + { + "description": "Airing schedule sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MEDIA_ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TIME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TIME_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EPISODE_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "AiringSort", + "possibleTypes": null + }, + { + "description": "Notification union type", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "UNION", + "name": "NotificationUnion", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "AiringNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "FollowingNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityMessageNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityMentionNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityReplyNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityReplySubscribedNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityLikeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityReplyLikeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadCommentMentionNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadCommentReplyNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadCommentSubscribedNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadCommentLikeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadLikeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "RelatedMediaAdditionNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MediaDataChangeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MediaMergeNotification", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MediaDeletionNotification", + "ofType": null + } + ] + }, + { + "description": "Notification for when an episode of anime airs", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the aired anime", + "isDeprecated": false, + "name": "animeId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The episode number that just aired", + "isDeprecated": false, + "name": "episode", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "contexts", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The associated media of the airing schedule", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AiringNotification", + "possibleTypes": null + }, + { + "description": "Notification for when the authenticated user is followed by another user", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who followed the authenticated user", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "FollowingNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a user is send an activity message", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The if of the user who send the message", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity message", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The message activity", + "isDeprecated": false, + "name": "message", + "type": { + "kind": "OBJECT", + "name": "MessageActivity", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who sent the message", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityMessageNotification", + "possibleTypes": null + }, + { + "description": "User message activity", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user id of the activity's recipient", + "isDeprecated": false, + "name": "recipientId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user id of the activity's sender", + "isDeprecated": false, + "name": "messengerId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of the activity", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of activity replies", + "isDeprecated": false, + "name": "replyCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The message text (Markdown)", + "isDeprecated": false, + "name": "message", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the activity is locked and can receive replies", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user is subscribed to the activity", + "isDeprecated": false, + "name": "isSubscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the activity has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the activity", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the message is private and only viewable to the sender and recipients", + "isDeprecated": false, + "name": "isPrivate", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the activity page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the activity was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who the activity message was sent to", + "isDeprecated": false, + "name": "recipient", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who sent the activity message", + "isDeprecated": false, + "name": "messenger", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The written replies to the activity", + "isDeprecated": false, + "name": "replies", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the activity", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MessageActivity", + "possibleTypes": null + }, + { + "description": "Activity type enum.", + "enumValues": [ + { + "deprecationReason": null, + "description": "A text activity", + "isDeprecated": false, + "name": "TEXT" + }, + { + "deprecationReason": null, + "description": "A anime list update activity", + "isDeprecated": false, + "name": "ANIME_LIST" + }, + { + "deprecationReason": null, + "description": "A manga list update activity", + "isDeprecated": false, + "name": "MANGA_LIST" + }, + { + "deprecationReason": null, + "description": "A text message activity sent to another user", + "isDeprecated": false, + "name": "MESSAGE" + }, + { + "deprecationReason": null, + "description": "Anime & Manga list update, only used in query arguments", + "isDeprecated": false, + "name": "MEDIA_LIST" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ActivityType", + "possibleTypes": null + }, + { + "description": "Replay to an activity item", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the reply", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the replies creator", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the parent activity", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The reply text", + "isDeprecated": false, + "name": "text", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the reply has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the reply", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the reply was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who created reply", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the reply", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityReply", + "possibleTypes": null + }, + { + "description": "Notification for when authenticated user is @ mentioned in activity or reply", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who mentioned the authenticated user", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity where mentioned", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who mentioned the authenticated user", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityMentionNotification", + "possibleTypes": null + }, + { + "description": "Activity union type", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "UNION", + "name": "ActivityUnion", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "TextActivity", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ListActivity", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MessageActivity", + "ofType": null + } + ] + }, + { + "description": "User text activity", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user id of the activity's creator", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of activity", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of activity replies", + "isDeprecated": false, + "name": "replyCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The status text (Markdown)", + "isDeprecated": false, + "name": "text", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the activity page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the activity is locked and can receive replies", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user is subscribed to the activity", + "isDeprecated": false, + "name": "isSubscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the activity has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the activity", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the activity is pinned to the top of the users activity feed", + "isDeprecated": false, + "name": "isPinned", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the activity was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who created the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The written replies to the activity", + "isDeprecated": false, + "name": "replies", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the activity", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "TextActivity", + "possibleTypes": null + }, + { + "description": "User list activity (anime & manga updates)", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user id of the activity's creator", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of activity", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of activity replies", + "isDeprecated": false, + "name": "replyCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The list item's textual status", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The list progress made", + "isDeprecated": false, + "name": "progress", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the activity is locked and can receive replies", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user is subscribed to the activity", + "isDeprecated": false, + "name": "isSubscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the activity has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the activity", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the activity is pinned to the top of the users activity feed", + "isDeprecated": false, + "name": "isPinned", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the activity page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the activity was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The owner of the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The associated media to the activity update", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The written replies to the activity", + "isDeprecated": false, + "name": "replies", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the activity", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ListActivity", + "possibleTypes": null + }, + { + "description": "Notification for when a user replies to the authenticated users activity", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who replied to the activity", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity which was replied too", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who replied to the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityReplyNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a user replies to activity the authenticated user has replied to", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who replied to the activity", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity which was replied too", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who replied to the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityReplySubscribedNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a activity is liked", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who liked to the activity", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity which was liked", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who liked the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityLikeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a activity reply is liked", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who liked to the activity reply", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity where the reply which was liked", + "isDeprecated": false, + "name": "activityId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked activity", + "isDeprecated": false, + "name": "activity", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who liked the activity reply", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ActivityReplyLikeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when authenticated user is @ mentioned in a forum thread comment", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who mentioned the authenticated user", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the comment where mentioned", + "isDeprecated": false, + "name": "commentId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread that the relevant comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread comment that included the @ mention", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who mentioned the authenticated user", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadCommentMentionNotification", + "possibleTypes": null + }, + { + "description": "Forum Thread", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the thread", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The title of the thread", + "isDeprecated": false, + "name": "title", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The text body of the thread (Markdown)", + "isDeprecated": false, + "name": "body", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the thread owner user", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who most recently commented on the thread", + "isDeprecated": false, + "name": "replyUserId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the most recent comment on the thread", + "isDeprecated": false, + "name": "replyCommentId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of comments on the thread", + "isDeprecated": false, + "name": "replyCount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The number of times users have viewed the thread", + "isDeprecated": false, + "name": "viewCount", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the thread is locked and can receive comments", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the thread is stickied and should be displayed at the top of the page", + "isDeprecated": false, + "name": "isSticky", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user is subscribed to the thread", + "isDeprecated": false, + "name": "isSubscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the thread has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the thread", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the last reply", + "isDeprecated": false, + "name": "repliedAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the thread creation", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the thread last update", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The owner of the thread", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user to last reply to the thread", + "isDeprecated": false, + "name": "replyUser", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the thread", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the thread page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The categories of the thread", + "isDeprecated": false, + "name": "categories", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ThreadCategory", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media categories of the thread", + "isDeprecated": false, + "name": "mediaCategories", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Thread", + "possibleTypes": null + }, + { + "description": "A forum thread category", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the category", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The name of the category", + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadCategory", + "possibleTypes": null + }, + { + "description": "Forum Thread Comment", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the comment", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user id of the comment's owner", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of thread the comment belongs to", + "isDeprecated": false, + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Return the string in pre-parsed html instead of markdown", + "name": "asHtml", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "The text content of the comment (Markdown)", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The amount of likes the comment has", + "isDeprecated": false, + "name": "likeCount", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the currently authenticated user liked the comment", + "isDeprecated": false, + "name": "isLiked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The url for the comment page on the AniList website", + "isDeprecated": false, + "name": "siteUrl", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the comments creation", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time of the comments last update", + "isDeprecated": false, + "name": "updatedAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread the comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who created the comment", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The users who liked the comment", + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The comment's child reply comments", + "isDeprecated": false, + "name": "childComments", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If the comment tree is locked and may not receive replies or edits", + "isDeprecated": false, + "name": "isLocked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadComment", + "possibleTypes": null + }, + { + "description": "Notification for when a user replies to your forum thread comment", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who create the comment reply", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the reply comment", + "isDeprecated": false, + "name": "commentId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread that the relevant comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reply thread comment", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who replied to the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadCommentReplyNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a user replies to a subscribed forum thread", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who commented on the thread", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the new comment in the subscribed thread", + "isDeprecated": false, + "name": "commentId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread that the relevant comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reply thread comment", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who replied to the subscribed thread", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadCommentSubscribedNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a thread comment is liked", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who liked to the activity", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the activity which was liked", + "isDeprecated": false, + "name": "commentId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread that the relevant comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread comment that was liked", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who liked the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadCommentLikeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a thread is liked", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the user who liked to the activity", + "isDeprecated": false, + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the thread which was liked", + "isDeprecated": false, + "name": "threadId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The thread that the relevant comment belongs to", + "isDeprecated": false, + "name": "thread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The liked thread comment", + "isDeprecated": false, + "name": "comment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who liked the activity", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ThreadLikeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when new media is added to the site", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the new media", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The notification context text", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The associated media of the airing schedule", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RelatedMediaAdditionNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a media entry's data was changed in a significant way impacting users' list tracking", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the media that received data changes", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media data change", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media data change", + "isDeprecated": false, + "name": "reason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media that received data changes", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaDataChangeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a media entry is merged into another for a user who had it on their list", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The id of the media that was merged into", + "isDeprecated": false, + "name": "mediaId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The title of the deleted media", + "isDeprecated": false, + "name": "deletedMediaTitles", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media data change", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media merge", + "isDeprecated": false, + "name": "reason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media that was merged into", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaMergeNotification", + "possibleTypes": null + }, + { + "description": "Notification for when a media tracked in a user's list is deleted from the site", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the Notification", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type of notification", + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The title of the deleted media", + "isDeprecated": false, + "name": "deletedMediaTitle", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media deletion", + "isDeprecated": false, + "name": "context", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The reason for the media deletion", + "isDeprecated": false, + "name": "reason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The time the notification was created at", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaDeletionNotification", + "possibleTypes": null + }, + { + "description": "Activity sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PINNED" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ActivitySort", + "possibleTypes": null + }, + { + "description": "Thread sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "TITLE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATED_AT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UPDATED_AT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPLIED_AT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPLIED_AT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPLY_COUNT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPLY_COUNT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "VIEW_COUNT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "VIEW_COUNT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "IS_STICKY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "SEARCH_MATCH" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ThreadSort", + "possibleTypes": null + }, + { + "description": "Thread comments sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ThreadCommentSort", + "possibleTypes": null + }, + { + "description": "Types that can be liked", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "THREAD" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "THREAD_COMMENT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ACTIVITY" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ACTIVITY_REPLY" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "LikeableType", + "possibleTypes": null + }, + { + "description": "List of anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "Grouped media list entries", + "isDeprecated": false, + "name": "lists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaListGroup", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The owner of the list", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If there is another chunk", + "isDeprecated": false, + "name": "hasNextChunk", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "asArray", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": "Not GraphQL spec compliant, use lists field instead.", + "description": "A map of media list entry arrays grouped by status", + "isDeprecated": true, + "name": "statusLists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "asArray", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": "Not GraphQL spec compliant, use lists field instead.", + "description": "A map of media list entry arrays grouped by custom lists", + "isDeprecated": true, + "name": "customLists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaListCollection", + "possibleTypes": null + }, + { + "description": "List group of anime or manga entries", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "Media list entries", + "isDeprecated": false, + "name": "entries", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isCustomList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isSplitCompletedList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaListGroup", + "possibleTypes": null + }, + { + "description": "Provides the parsed markdown as html", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The parsed markdown as html", + "isDeprecated": false, + "name": "html", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ParsedMarkdown", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "settings", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "highlights", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "AniChartUser", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "users", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "anime", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "manga", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SiteTrendSort", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The page", + "name": "page", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of entries per page, max 25", + "name": "perPage", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reviews", + "type": { + "kind": "OBJECT", + "name": "SiteTrendConnection", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SiteStatistics", + "possibleTypes": null + }, + { + "description": "Site trend sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DATE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DATE_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "COUNT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "COUNT_DESC" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHANGE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CHANGE_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "SiteTrendSort", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "SiteTrendEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "SiteTrend", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SiteTrendConnection", + "possibleTypes": null + }, + { + "description": "Site trend connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "SiteTrend", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SiteTrendEdge", + "possibleTypes": null + }, + { + "description": "Daily site statistics", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The day the data was recorded (timestamp)", + "isDeprecated": false, + "name": "date", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "count", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The change from yesterday", + "isDeprecated": false, + "name": "change", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "SiteTrend", + "possibleTypes": null + }, + { + "description": null, + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ANIME" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "MANGA" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "STAFF" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ExternalLinkMediaType", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": "User's about/bio text", + "name": "about", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "User's title language", + "name": "titleLanguage", + "type": { + "kind": "ENUM", + "name": "UserTitleLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the user should see media marked as adult-only", + "name": "displayAdultContent", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the user should get notifications when a show they are watching aires", + "name": "airingNotifications", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The user's list scoring system", + "name": "scoreFormat", + "type": { + "kind": "ENUM", + "name": "ScoreFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The user's default list order", + "name": "rowOrder", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Profile highlight color", + "name": "profileColor", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Profile highlight color", + "name": "donatorBadge", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Notification options", + "name": "notificationOptions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "NotificationOptionInput", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Timezone offset format: -?HH:MM", + "name": "timezone", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Minutes between activity for them to be merged together. 0 is Never, Above 2 weeks (20160 mins) is Always.", + "name": "activityMergeTime", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The user's anime list options", + "name": "animeListOptions", + "type": { + "kind": "INPUT_OBJECT", + "name": "MediaListOptionsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The user's anime list options", + "name": "mangaListOptions", + "type": { + "kind": "INPUT_OBJECT", + "name": "MediaListOptionsInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The language the user wants to see staff and character names in", + "name": "staffNameLanguage", + "type": { + "kind": "ENUM", + "name": "UserStaffNameLanguage", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Only allow messages from other users the user follows", + "name": "restrictMessagesToFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "disabledListActivity", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "ListActivityOptionInput", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UpdateUser", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The list entry id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the media the entry is of", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The score of the media in the user's chosen scoring method", + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The score of the media in 100 point", + "name": "scoreRaw", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of episodes/chapters consumed by the user", + "name": "progress", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of volumes read by the user", + "name": "progressVolumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of times the user has rewatched/read the media", + "name": "repeat", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Priority of planning", + "name": "priority", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the entry should only be visible to authenticated user", + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Text notes", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the entry shown be hidden from non-custom lists", + "name": "hiddenFromStatusLists", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Array of custom list names which should be enabled for this entry", + "name": "customLists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Array of advanced scores", + "name": "advancedScores", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "When the entry was started by the user", + "name": "startedAt", + "type": { + "kind": "INPUT_OBJECT", + "name": "FuzzyDateInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "When the entry was completed by the user", + "name": "completedAt", + "type": { + "kind": "INPUT_OBJECT", + "name": "FuzzyDateInput", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update a media list entry", + "isDeprecated": false, + "name": "SaveMediaListEntry", + "type": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The score of the media in the user's chosen scoring method", + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The score of the media in 100 point", + "name": "scoreRaw", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of episodes/chapters consumed by the user", + "name": "progress", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of volumes read by the user", + "name": "progressVolumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The amount of times the user has rewatched/read the media", + "name": "repeat", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Priority of planning", + "name": "priority", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the entry should only be visible to authenticated user", + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Text notes", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the entry shown be hidden from non-custom lists", + "name": "hiddenFromStatusLists", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Array of advanced scores", + "name": "advancedScores", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Float", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "When the entry was started by the user", + "name": "startedAt", + "type": { + "kind": "INPUT_OBJECT", + "name": "FuzzyDateInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "When the entry was completed by the user", + "name": "completedAt", + "type": { + "kind": "INPUT_OBJECT", + "name": "FuzzyDateInput", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The list entries ids to update", + "name": "ids", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Update multiple media list entries to the same values", + "isDeprecated": false, + "name": "UpdateMediaListEntries", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the media list entry to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete a media list entry", + "isDeprecated": false, + "name": "DeleteMediaListEntry", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The name of the custom list to delete", + "name": "customList", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The media list type of the custom list", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete a custom list and remove the list entries from it", + "isDeprecated": false, + "name": "DeleteCustomList", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The activity's id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The activity text", + "name": "text", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the activity should be locked. (Mod Only)", + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update text activity for the currently authenticated user", + "isDeprecated": false, + "name": "SaveTextActivity", + "type": { + "kind": "OBJECT", + "name": "TextActivity", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The activity id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The activity message text", + "name": "message", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the user the message is being sent to", + "name": "recipientId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the activity should be private", + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the activity should be locked. (Mod Only)", + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the message should be sent from the Moderator account (Mod Only)", + "name": "asMod", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update message activity for the currently authenticated user", + "isDeprecated": false, + "name": "SaveMessageActivity", + "type": { + "kind": "OBJECT", + "name": "MessageActivity", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The activity's id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the activity should be locked. (Mod Only)", + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Update list activity (Mod Only)", + "isDeprecated": false, + "name": "SaveListActivity", + "type": { + "kind": "OBJECT", + "name": "ListActivity", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the activity to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete an activity item of the authenticated users", + "isDeprecated": false, + "name": "DeleteActivity", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Toggle activity id to be pinned", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the activity should be pinned or unpinned", + "name": "pinned", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Toggle activity to be pinned to the top of the user's activity feed", + "isDeprecated": false, + "name": "ToggleActivityPin", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the activity to un/subscribe", + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Whether to subscribe or unsubscribe from the activity", + "name": "subscribe", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Toggle the subscription of an activity item", + "isDeprecated": false, + "name": "ToggleActivitySubscription", + "type": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The activity reply id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the parent activity being replied to", + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The reply text", + "name": "text", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the reply should be sent from the Moderator account (Mod Only)", + "name": "asMod", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update an activity reply", + "isDeprecated": false, + "name": "SaveActivityReply", + "type": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the reply to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete an activity reply of the authenticated users", + "isDeprecated": false, + "name": "DeleteActivityReply", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the likeable type", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The type of model to be un/liked", + "name": "type", + "type": { + "kind": "ENUM", + "name": "LikeableType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Add or remove a like from a likeable type.\n Returns all the users who liked the same model", + "isDeprecated": false, + "name": "ToggleLike", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the likeable type", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The type of model to be un/liked", + "name": "type", + "type": { + "kind": "ENUM", + "name": "LikeableType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Add or remove a like from a likeable type.", + "isDeprecated": false, + "name": "ToggleLikeV2", + "type": { + "kind": "UNION", + "name": "LikeableUnion", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the user to un/follow", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Toggle the un/following of a user", + "isDeprecated": false, + "name": "ToggleFollow", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the anime to un/favourite", + "name": "animeId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the manga to un/favourite", + "name": "mangaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the character to un/favourite", + "name": "characterId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the staff to un/favourite", + "name": "staffId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the studio to un/favourite", + "name": "studioId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Favourite or unfavourite an anime, manga, character, staff member, or studio", + "isDeprecated": false, + "name": "ToggleFavourite", + "type": { + "kind": "OBJECT", + "name": "Favourites", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the anime to un/favourite", + "name": "animeIds", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The id of the manga to un/favourite", + "name": "mangaIds", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The id of the character to un/favourite", + "name": "characterIds", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The id of the staff to un/favourite", + "name": "staffIds", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The id of the studio to un/favourite", + "name": "studioIds", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "List of integers which the anime should be ordered by (Asc)", + "name": "animeOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "List of integers which the manga should be ordered by (Asc)", + "name": "mangaOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "List of integers which the character should be ordered by (Asc)", + "name": "characterOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "List of integers which the staff should be ordered by (Asc)", + "name": "staffOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "List of integers which the studio should be ordered by (Asc)", + "name": "studioOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": "Update the order favourites are displayed in", + "isDeprecated": false, + "name": "UpdateFavouriteOrder", + "type": { + "kind": "OBJECT", + "name": "Favourites", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The review id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the media the review is of", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The main review text. Min:2200 characters", + "name": "body", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "A short summary/preview of the review. Min:20, Max:120 characters", + "name": "summary", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "A short summary/preview of the review. Min:20, Max:120 characters", + "name": "score", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the review should only be visible to its creator", + "name": "private", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update a review", + "isDeprecated": false, + "name": "SaveReview", + "type": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the review to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete a review", + "isDeprecated": false, + "name": "DeleteReview", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the review to rate", + "name": "reviewId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The rating to apply to the review", + "name": "rating", + "type": { + "kind": "ENUM", + "name": "ReviewRating", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Rate a review", + "isDeprecated": false, + "name": "RateReview", + "type": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the base media", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of the media to recommend", + "name": "mediaRecommendationId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The rating to give the recommendation", + "name": "rating", + "type": { + "kind": "ENUM", + "name": "RecommendationRating", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Recommendation a media", + "isDeprecated": false, + "name": "SaveRecommendation", + "type": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The thread id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The title of the thread", + "name": "title", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The main text body of the thread", + "name": "body", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Forum categories the thread should be within", + "name": "categories", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Media related to the contents of the thread", + "name": "mediaCategories", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "If the thread should be stickied. (Mod Only)", + "name": "sticky", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the thread should be locked. (Mod Only)", + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update a forum thread", + "isDeprecated": false, + "name": "SaveThread", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the thread to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete a thread", + "isDeprecated": false, + "name": "DeleteThread", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the forum thread to un/subscribe", + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Whether to subscribe or unsubscribe from the forum thread", + "name": "subscribe", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Toggle the subscription of a forum thread", + "isDeprecated": false, + "name": "ToggleThreadSubscription", + "type": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The comment id, required for updating", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of thread the comment belongs to", + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The id of thread comment to reply to", + "name": "parentCommentId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The comment markdown text", + "name": "comment", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the comment tree should be locked. (Mod Only)", + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Create or update a thread comment", + "isDeprecated": false, + "name": "SaveThreadComment", + "type": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the thread comment to delete", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": "Delete a thread comment", + "isDeprecated": false, + "name": "DeleteThreadComment", + "type": { + "kind": "OBJECT", + "name": "Deleted", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "titleLanguage", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "outgoingLinkProvider", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "theme", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "sort", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UpdateAniChartSettings", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "highlights", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "INPUT_OBJECT", + "name": "AniChartHighlightInput", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "UpdateAniChartHighlights", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Mutation", + "possibleTypes": null + }, + { + "description": "Notification option input", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The type of notification", + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Whether this type of notification is enabled", + "name": "enabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "NotificationOptionInput", + "possibleTypes": null + }, + { + "description": "A user's list options for anime or manga lists", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The order each list should be displayed in", + "name": "sectionOrder", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "If the completed sections of the list should be separated by format", + "name": "splitCompletedSectionByFormat", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The names of the user's custom lists", + "name": "customLists", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The names of the user's advanced scoring sections", + "name": "advancedScoring", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "If advanced scoring is enabled", + "name": "advancedScoringEnabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "list theme", + "name": "theme", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "MediaListOptionsInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "disabled", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "ListActivityOptionInput", + "possibleTypes": null + }, + { + "description": "Date object that allows for incomplete date values (fuzzy)", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "Numeric Year (2017)", + "name": "year", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Numeric Month (3)", + "name": "month", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Numeric Day (24)", + "name": "day", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "FuzzyDateInput", + "possibleTypes": null + }, + { + "description": "Deleted data type", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "If an item has been successfully deleted", + "isDeprecated": false, + "name": "deleted", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Deleted", + "possibleTypes": null + }, + { + "description": "Likeable union type", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "UNION", + "name": "LikeableUnion", + "possibleTypes": [ + { + "kind": "OBJECT", + "name": "ListActivity", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "TextActivity", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "MessageActivity", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + }, + { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + ] + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "highlight", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "AniChartHighlightInput", + "possibleTypes": null + }, + { + "description": "Page of data (Used for internal use only)", + "enumValues": null, + "fields": [ + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "submissionId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "assigneeId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SubmissionSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaSubmissions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaSubmission", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "characterId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the submitter of the submission", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "assigneeId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the status of the submission", + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SubmissionSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characterSubmissions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CharacterSubmission", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "staffId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the submitter of the submission", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "assigneeId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the status of the submission", + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "SubmissionSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staffSubmissions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffSubmission", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the character id", + "name": "characterId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "staffId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "studioId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "revisionHistory", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "RevisionHistory", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "reporterId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "reportedId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reports", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Report", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": null, + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "modId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "modActions", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ModAction", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "userBlockSearch", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the user id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the name of the user", + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to moderators only if true", + "name": "isModerator", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "users", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the season the media was released in", + "name": "season", + "type": { + "kind": "ENUM", + "name": "MediaSeason", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The year of the season (Winter 2017 would also include December 2016 releases). Requires season argument", + "name": "seasonYear", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the media's intended for 18+ adult audiences", + "name": "isAdult", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Only apply the tags filter argument to tags above this rank. Default: 18", + "name": "minimumTagRank", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source", + "type": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's country of origin", + "name": "countryOfOrigin", + "type": { + "kind": "SCALAR", + "name": "CountryCode", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "If the media is officially licensed or a self-published doujin release", + "name": "isLicensed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's MyAnimeList id", + "name": "idMal_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the start date of the media", + "name": "startDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the end date of the media", + "name": "endDate_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not", + "type": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's format", + "name": "format_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaFormat", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's current release status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by amount of episodes the media has", + "name": "episodes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's episode length", + "name": "duration_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's chapter count", + "name": "chapters_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's volume count", + "name": "volumes_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's genres", + "name": "genre_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags", + "name": "tag_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's tags with in a tag category", + "name": "tagCategory_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites name with a online streaming or reading license", + "name": "licensedBy_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter media by sites id with a online streaming or reading license", + "name": "licensedById_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media's average score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the number of users with this media on their list", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the source type of the media", + "name": "source_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSource", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "media", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by character id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "CharacterSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by staff by if its their birthday today", + "name": "isBirthday", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the staff id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StaffSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the studio id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "StudioSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by a list entry's id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's name", + "name": "userName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the list entries media type", + "name": "type", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter list entries to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Limit to only entries also on the auth user's list. Requires user id or name arguments.", + "name": "compareWithAuthList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by a user's id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the watching/reading status", + "name": "status_not", + "type": { + "kind": "ENUM", + "name": "MediaListStatus", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id of the list entry", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by note words and #tags", + "name": "notes_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user started the media", + "name": "startedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_greater", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_lesser", + "type": { + "kind": "SCALAR", + "name": "FuzzyDateInt", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the date the user completed the media", + "name": "completedAt_like", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaListSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaList", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaList", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to episodes that haven't yet aired", + "name": "notYetAired", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the airing schedule item", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of associated media", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the airing episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time of airing", + "name": "airingAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "AiringSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "airingSchedules", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "AiringSchedule", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter to stats recorded while the media was releasing", + "name": "releasing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the media id", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by date", + "name": "date_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by trending amount", + "name": "trending_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by score", + "name": "averageScore_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by popularity", + "name": "popularity_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by episode number", + "name": "episode_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "MediaTrendSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mediaTrends", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaTrend", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type", + "type": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Reset the unread notification count to 0 on load", + "name": "resetNotificationCount", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of notifications", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "NotificationType", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "notifications", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "UNION", + "name": "NotificationUnion", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "followers", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "User id of the follower/followed", + "name": "userId", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "UserSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "following", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to users who are being followed by the authenticated user", + "name": "isFollowing", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies", + "name": "hasReplies", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter activity to only activity with replies or is of type text", + "name": "hasRepliesOrTypeText", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the activity id", + "name": "id_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the owner user id", + "name": "userId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the id of the user who sent a message", + "name": "messengerId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the associated media id of the activity", + "name": "mediaId_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not", + "type": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the type of activity", + "name": "type_not_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivityType", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the time the activity was created", + "name": "createdAt_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ActivitySort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "activities", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "UNION", + "name": "ActivityUnion", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the reply id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the parent id", + "name": "activityId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "activityReplies", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ActivityReply", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the thread's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the last user to comment on the thread", + "name": "replyUserId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by if the currently authenticated user's subscribed threads", + "name": "subscribed", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread category id", + "name": "categoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by thread media id category", + "name": "mediaCategoryId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by search query", + "name": "search", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "id_in", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "threads", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Thread", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by the comment id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the thread id", + "name": "threadId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the user id of the comment's creator", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ThreadCommentSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "threadComments", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "ThreadComment", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by Review id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user id", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media type", + "name": "mediaType", + "type": { + "kind": "ENUM", + "name": "MediaType", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "ReviewSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reviews", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Review", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "Filter by recommendation id", + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media id", + "name": "mediaId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by media recommendation id", + "name": "mediaRecommendationId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by user who created the recommendation", + "name": "userId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by the media on the authenticated user's lists", + "name": "onList", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_greater", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Filter by total rating of the recommendation", + "name": "rating_lesser", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The order the results will be returned in", + "name": "sort", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "RecommendationSort", + "ofType": null + } + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "recommendations", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Recommendation", + "ofType": null + } + } + }, + { + "args": [ + { + "defaultValue": null, + "description": "The id of the likeable type", + "name": "likeableId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The type of model the id applies to", + "name": "type", + "type": { + "kind": "ENUM", + "name": "LikeableType", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "likes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "InternalPage", + "possibleTypes": null + }, + { + "description": "Submission status", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PENDING" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REJECTED" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "PARTIALLY_ACCEPTED" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ACCEPTED" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "SubmissionStatus", + "possibleTypes": null + }, + { + "description": "Submission sort enums", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ID_DESC" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "SubmissionSort", + "possibleTypes": null + }, + { + "description": "Media submission", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the submission", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "User submitter of the submission", + "isDeprecated": false, + "name": "submitter", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Data Mod assigned to handle the submission", + "isDeprecated": false, + "name": "assignee", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Status of the submission", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "submitterStats", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "source", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "changes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the submission is locked", + "isDeprecated": false, + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "submission", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characters", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaSubmissionComparison", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaSubmissionComparison", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studios", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaSubmissionComparison", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "relations", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "externalLinks", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "MediaSubmissionComparison", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaSubmission", + "possibleTypes": null + }, + { + "description": "Media submission with comparison to current data", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "submission", + "type": { + "kind": "OBJECT", + "name": "MediaSubmissionEdge", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "character", + "type": { + "kind": "OBJECT", + "name": "MediaCharacter", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "StaffEdge", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studio", + "type": { + "kind": "OBJECT", + "name": "StudioEdge", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "externalLink", + "type": { + "kind": "OBJECT", + "name": "MediaExternalLink", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaSubmissionComparison", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the direct submission", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characterRole", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staffRole", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "roleNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "dubGroup", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characterName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isMain", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "character", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "characterSubmission", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "voiceActor", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "voiceActorSubmission", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "staffSubmission", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "studio", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "externalLink", + "type": { + "kind": "OBJECT", + "name": "MediaExternalLink", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaSubmissionEdge", + "possibleTypes": null + }, + { + "description": "Internal - Media characters separated", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the connection", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters role in the media", + "isDeprecated": false, + "name": "role", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "roleNotes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "dubGroup", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Media specific character name", + "isDeprecated": false, + "name": "characterName", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters in the media voiced by the parent actor", + "isDeprecated": false, + "name": "character", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The voice actor of the character", + "isDeprecated": false, + "name": "voiceActor", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "MediaCharacter", + "possibleTypes": null + }, + { + "description": "A submission for a character that features in an anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the submission", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Character that the submission is referencing", + "isDeprecated": false, + "name": "character", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character submission changes", + "isDeprecated": false, + "name": "submission", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Submitter for the submission", + "isDeprecated": false, + "name": "submitter", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Data Mod assigned to handle the submission", + "isDeprecated": false, + "name": "assignee", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Status of the submission", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Inner details of submission status", + "isDeprecated": false, + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "source", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the submission is locked", + "isDeprecated": false, + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterSubmission", + "possibleTypes": null + }, + { + "description": "A submission for a staff that features in an anime or manga", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the submission", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Staff that the submission is referencing", + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The staff submission changes", + "isDeprecated": false, + "name": "submission", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Submitter for the submission", + "isDeprecated": false, + "name": "submitter", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Data Mod assigned to handle the submission", + "isDeprecated": false, + "name": "assignee", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Status of the submission", + "isDeprecated": false, + "name": "status", + "type": { + "kind": "ENUM", + "name": "SubmissionStatus", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Inner details of submission status", + "isDeprecated": false, + "name": "notes", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "source", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "Whether the submission is locked", + "isDeprecated": false, + "name": "locked", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "StaffSubmission", + "possibleTypes": null + }, + { + "description": "Feed of mod edit activity", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the media", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The action taken on the objects", + "isDeprecated": false, + "name": "action", + "type": { + "kind": "ENUM", + "name": "RevisionHistoryAction", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A JSON object of the fields that changed", + "isDeprecated": false, + "name": "changes", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The user who made the edit to the object", + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The media the mod feed entry references", + "isDeprecated": false, + "name": "media", + "type": { + "kind": "OBJECT", + "name": "Media", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The character the mod feed entry references", + "isDeprecated": false, + "name": "character", + "type": { + "kind": "OBJECT", + "name": "Character", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The staff member the mod feed entry references", + "isDeprecated": false, + "name": "staff", + "type": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The studio the mod feed entry references", + "isDeprecated": false, + "name": "studio", + "type": { + "kind": "OBJECT", + "name": "Studio", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The external link source the mod feed entry references", + "isDeprecated": false, + "name": "externalLink", + "type": { + "kind": "OBJECT", + "name": "MediaExternalLink", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the mod feed entry was created", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "RevisionHistory", + "possibleTypes": null + }, + { + "description": "Revision history actions", + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "CREATE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EDIT" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "RevisionHistoryAction", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reporter", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reported", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "reason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "When the entry data was created", + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "cleared", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "Report", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "The id of the action", + "isDeprecated": false, + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "user", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "mod", + "type": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "type", + "type": { + "kind": "ENUM", + "name": "ModActionType", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "objectId", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "objectType", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "data", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "createdAt", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "ModAction", + "possibleTypes": null + }, + { + "description": null, + "enumValues": [ + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "NOTE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "BAN" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "DELETE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EDIT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "EXPIRE" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "REPORT" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "RESET" + }, + { + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ANON" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "ModActionType", + "possibleTypes": null + }, + { + "description": "The official titles of the media in various languages", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The romanization of the native language title", + "name": "romaji", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The official english title", + "name": "english", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Official title in it's native language", + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "MediaTitleInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": null, + "name": "airingAt", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "episode", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "defaultValue": null, + "description": null, + "name": "timeUntilAiring", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "AiringScheduleInput", + "possibleTypes": null + }, + { + "description": "An external link to another site related to the media", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The id of the external link", + "name": "id", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The url of the external link", + "name": "url", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "The site location of the external link", + "name": "site", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "MediaExternalLinkInput", + "possibleTypes": null + }, + { + "description": "The names of the character", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The character's given name", + "name": "first", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The character's middle name", + "name": "middle", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The character's surname", + "name": "last", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The character's full name in their native language", + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Other names the character might be referred by", + "name": "alternative", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "defaultValue": null, + "description": "Other names the character might be referred to as but are spoilers", + "name": "alternativeSpoiler", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "CharacterNameInput", + "possibleTypes": null + }, + { + "description": null, + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "edges", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CharacterSubmissionEdge", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "nodes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "CharacterSubmission", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The pagination information", + "isDeprecated": false, + "name": "pageInfo", + "type": { + "kind": "OBJECT", + "name": "PageInfo", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterSubmissionConnection", + "possibleTypes": null + }, + { + "description": "CharacterSubmission connection edge", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "node", + "type": { + "kind": "OBJECT", + "name": "CharacterSubmission", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The characters role in the media", + "isDeprecated": false, + "name": "role", + "type": { + "kind": "ENUM", + "name": "CharacterRole", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The voice actors of the character", + "isDeprecated": false, + "name": "voiceActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "Staff", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The submitted voice actors of the character", + "isDeprecated": false, + "name": "submittedVoiceActors", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "StaffSubmission", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "CharacterSubmissionEdge", + "possibleTypes": null + }, + { + "description": "The names of the staff member", + "enumValues": null, + "fields": null, + "inputFields": [ + { + "defaultValue": null, + "description": "The person's given name", + "name": "first", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The person's middle name", + "name": "middle", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The person's surname", + "name": "last", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "The person's full name in their native language", + "name": "native", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "defaultValue": null, + "description": "Other names the character might be referred by", + "name": "alternative", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + } + ], + "interfaces": null, + "kind": "INPUT_OBJECT", + "name": "StaffNameInput", + "possibleTypes": null + }, + { + "description": "User data for moderators", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "alts", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "User", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "bans", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ip", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "counts", + "type": { + "kind": "SCALAR", + "name": "Json", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "privacy", + "type": { + "kind": "SCALAR", + "name": "Int", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "email", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "UserModData", + "possibleTypes": null + }, + { + "description": "The `ID` scalar type represents a unique identifier, often used to\nrefetch an object or as key for a cache. The ID type appears in a JSON\nresponse as a String; however, it is not intended to be human-readable.\nWhen expected as an input type, any string (such as `\"4\"`) or integer\n(such as `4`) input value will be accepted as an ID.", + "enumValues": null, + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "SCALAR", + "name": "ID", + "possibleTypes": null + }, + { + "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": "A list of all types supported by this server.", + "isDeprecated": false, + "name": "types", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "The type that query operations will be rooted at.", + "isDeprecated": false, + "name": "queryType", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If this server supports mutation, the type that mutation operations will be rooted at.", + "isDeprecated": false, + "name": "mutationType", + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "If this server support subscription, the type that subscription operations will be rooted at.", + "isDeprecated": false, + "name": "subscriptionType", + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A list of all directives supported by this server.", + "isDeprecated": false, + "name": "directives", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Directive", + "ofType": null + } + } + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__Schema", + "possibleTypes": null + }, + { + "description": "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "kind", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "__TypeKind", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [ + { + "defaultValue": "false", + "description": null, + "name": "includeDeprecated", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "fields", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Field", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "interfaces", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "possibleTypes", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + } + }, + { + "args": [ + { + "defaultValue": "false", + "description": null, + "name": "includeDeprecated", + "type": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + ], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "enumValues", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__EnumValue", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "inputFields", + "type": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "ofType", + "type": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__Type", + "possibleTypes": null + }, + { + "description": "An enum describing what kind of type a given `__Type` is.", + "enumValues": [ + { + "deprecationReason": null, + "description": "Indicates this type is a scalar.", + "isDeprecated": false, + "name": "SCALAR" + }, + { + "deprecationReason": null, + "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", + "isDeprecated": false, + "name": "OBJECT" + }, + { + "deprecationReason": null, + "description": "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.", + "isDeprecated": false, + "name": "INTERFACE" + }, + { + "deprecationReason": null, + "description": "Indicates this type is a union. `possibleTypes` is a valid field.", + "isDeprecated": false, + "name": "UNION" + }, + { + "deprecationReason": null, + "description": "Indicates this type is an enum. `enumValues` is a valid field.", + "isDeprecated": false, + "name": "ENUM" + }, + { + "deprecationReason": null, + "description": "Indicates this type is an input object. `inputFields` is a valid field.", + "isDeprecated": false, + "name": "INPUT_OBJECT" + }, + { + "deprecationReason": null, + "description": "Indicates this type is a list. `ofType` is a valid field.", + "isDeprecated": false, + "name": "LIST" + }, + { + "deprecationReason": null, + "description": "Indicates this type is a non-null. `ofType` is a valid field.", + "isDeprecated": false, + "name": "NON_NULL" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "__TypeKind", + "possibleTypes": null + }, + { + "description": "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "args", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isDeprecated", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "deprecationReason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__Field", + "possibleTypes": null + }, + { + "description": "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "type", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__Type", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": "A GraphQL-formatted string representing the default value for this input value.", + "isDeprecated": false, + "name": "defaultValue", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__InputValue", + "possibleTypes": null + }, + { + "description": "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "isDeprecated", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "deprecationReason", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__EnumValue", + "possibleTypes": null + }, + { + "description": "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", + "enumValues": null, + "fields": [ + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "name", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "description", + "type": { + "kind": "SCALAR", + "name": "String", + "ofType": null + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "locations", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "ENUM", + "name": "__DirectiveLocation", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": null, + "description": null, + "isDeprecated": false, + "name": "args", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "LIST", + "name": null, + "ofType": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "OBJECT", + "name": "__InputValue", + "ofType": null + } + } + } + } + }, + { + "args": [], + "deprecationReason": "Use `locations`.", + "description": null, + "isDeprecated": true, + "name": "onOperation", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": "Use `locations`.", + "description": null, + "isDeprecated": true, + "name": "onFragment", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + }, + { + "args": [], + "deprecationReason": "Use `locations`.", + "description": null, + "isDeprecated": true, + "name": "onField", + "type": { + "kind": "NON_NULL", + "name": null, + "ofType": { + "kind": "SCALAR", + "name": "Boolean", + "ofType": null + } + } + } + ], + "inputFields": null, + "interfaces": [], + "kind": "OBJECT", + "name": "__Directive", + "possibleTypes": null + }, + { + "description": "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", + "enumValues": [ + { + "deprecationReason": null, + "description": "Location adjacent to a query operation.", + "isDeprecated": false, + "name": "QUERY" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a mutation operation.", + "isDeprecated": false, + "name": "MUTATION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a subscription operation.", + "isDeprecated": false, + "name": "SUBSCRIPTION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a field.", + "isDeprecated": false, + "name": "FIELD" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a fragment definition.", + "isDeprecated": false, + "name": "FRAGMENT_DEFINITION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a fragment spread.", + "isDeprecated": false, + "name": "FRAGMENT_SPREAD" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an inline fragment.", + "isDeprecated": false, + "name": "INLINE_FRAGMENT" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a schema definition.", + "isDeprecated": false, + "name": "SCHEMA" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a scalar definition.", + "isDeprecated": false, + "name": "SCALAR" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an object type definition.", + "isDeprecated": false, + "name": "OBJECT" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a field definition.", + "isDeprecated": false, + "name": "FIELD_DEFINITION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an argument definition.", + "isDeprecated": false, + "name": "ARGUMENT_DEFINITION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an interface definition.", + "isDeprecated": false, + "name": "INTERFACE" + }, + { + "deprecationReason": null, + "description": "Location adjacent to a union definition.", + "isDeprecated": false, + "name": "UNION" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an enum definition.", + "isDeprecated": false, + "name": "ENUM" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an enum value definition.", + "isDeprecated": false, + "name": "ENUM_VALUE" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an input object type definition.", + "isDeprecated": false, + "name": "INPUT_OBJECT" + }, + { + "deprecationReason": null, + "description": "Location adjacent to an input object field definition.", + "isDeprecated": false, + "name": "INPUT_FIELD_DEFINITION" + } + ], + "fields": null, + "inputFields": null, + "interfaces": null, + "kind": "ENUM", + "name": "__DirectiveLocation", + "possibleTypes": null + } + ] + } + } +} \ No newline at end of file diff --git a/graphql.py b/graphql.py deleted file mode 100644 index b7790fb..0000000 --- a/graphql.py +++ /dev/null @@ -1,183 +0,0 @@ -# coding=utf-8 -import collections -import json -import logging -import time -from typing import Any, Dict - -import requests - -logger = logging.getLogger("PlexAniSync") - -ANILIST_ACCESS_TOKEN = "" -ANILIST_SKIP_UPDATE = False - - -def search_by_id(anilist_id: int): - query = """ - query ($id: Int) { - media: Media (id: $id, type: ANIME) { - id - type - format - status - source - season - episodes - title { - romaji - english - native - } - synonyms - startDate { - year - } - endDate { - year - } - } - } - """ - - variables = {"id": anilist_id} - - response = send_graphql_request(query, variables) - return json.loads(response.content, object_hook=to_object) - - -def search_by_name(anilist_show_name: str): - query = """ - query ($page: Int, $perPage: Int, $search: String) { - Page (page: $page, perPage: $perPage) { - pageInfo { - total - currentPage - lastPage - hasNextPage - perPage - } - media (search: $search, type: ANIME) { - id - type - format - status - source - season - episodes - title { - romaji - english - native - } - synonyms - startDate { - year - } - endDate { - year - } - } - } - } - """ - variables = {"search": anilist_show_name, "page": 1, "perPage": 50} - - response = send_graphql_request(query, variables) - return json.loads(response.content, object_hook=to_object) - - -def fetch_user_list(username: str): - query = """ - query ($username: String) { - MediaListCollection(userName: $username, type: ANIME) { - lists { - name - status - isCustomList - entries { - id - progress - status - repeat - media { - id - type - format - status - source - season - episodes - startDate { - year - } - endDate { - year - } - title { - romaji - english - native - } - synonyms - } - } - } - } - } - """ - - variables = {"username": username} - - response = send_graphql_request(query, variables) - return json.loads(response.content, object_hook=to_object) - - -def update_series(media_id: int, progress: int, status: str): - if ANILIST_SKIP_UPDATE: - logger.warning("[ANILIST] Skip update is enabled in settings so not updating this item") - return - query = """ - mutation ($mediaId: Int, $status: MediaListStatus, $progress: Int) { - SaveMediaListEntry (mediaId: $mediaId, status: $status, progress: $progress) { - id - status, - progress - } - } - """ - - variables = {"mediaId": media_id, "status": status, "progress": int(progress)} - - send_graphql_request(query, variables) - - -def send_graphql_request(query: str, variables: Dict[str, Any]): - url = "https://graphql.anilist.co" - headers = { - "Authorization": "Bearer " + ANILIST_ACCESS_TOKEN, - "Accept": "application/json", - "Content-Type": "application/json", - } - - while True: - response = requests.post( - url, headers=headers, json={"query": query, "variables": variables} - ) - if response.status_code == 429: - wait_time = int(response.headers.get('retry-after', 0)) - logger.warning(f"[ANILIST] Rate limit hit, waiting for {wait_time}s") - time.sleep(wait_time + 1) - - else: - response.raise_for_status() - - # wait a bit to not overload AniList API - time.sleep(0.20) - return response - - -def to_object(obj): - keys, values = zip(*obj.items()) - # print(keys, values) - return collections.namedtuple("X", keys)(*values) diff --git a/__init__.py b/plexanisync/__init__.py similarity index 100% rename from __init__.py rename to plexanisync/__init__.py diff --git a/_version.py b/plexanisync/_version.py similarity index 100% rename from _version.py rename to plexanisync/_version.py diff --git a/anilist.py b/plexanisync/anilist.py similarity index 68% rename from anilist.py rename to plexanisync/anilist.py index 087962f..776152a 100644 --- a/anilist.py +++ b/plexanisync/anilist.py @@ -6,11 +6,12 @@ import inflect -from custom_mappings import AnilistCustomMapping -from graphql import fetch_user_list, search_by_name, search_by_id, update_series -from plexmodule import PlexWatchedSeries +from plexanisync.custom_mappings import AnilistCustomMapping +from plexanisync.graphql import fetch_user_list, search_by_name, search_by_id, update_series +from plexanisync.plexmodule import PlexWatchedSeries +from plexanisync.logger_adapter import PrefixLoggerAdapter -logger = logging.getLogger("PlexAniSync") +logger = PrefixLoggerAdapter(logging.getLogger("PlexAniSync"), {"prefix": "ANILIST"}) CUSTOM_MAPPINGS: Dict[str, List[AnilistCustomMapping]] = {} ANILIST_PLEX_EPISODE_COUNT_PRIORITY = False @@ -33,15 +34,15 @@ def int_to_roman_numeral(decimal: int) -> str: def log_to_file(message: str): - file = open("failed_matches.txt", "a+", encoding="utf-8") - file.write(f"{message}\n") - file.close() + with open("failed_matches.txt", "a+", encoding="utf-8") as file: + file.write(f"{message}\n") def clean_failed_matches_file(): try: # create or overwrite the file with empty content - open("failed_matches.txt", 'w', encoding="utf-8").close() + with open("failed_matches.txt", 'w', encoding="utf-8"): + pass except BaseException: pass @@ -65,29 +66,26 @@ class AnilistSeries: def process_user_list(username: str) -> Optional[List[AnilistSeries]]: - logger.info(f"[ANILIST] Retrieving AniList list for user: {username}") + logger.info(f"Retrieving AniList list for user: {username}") anilist_series = [] try: list_items = fetch_user_list(username) if not list_items: - logger.critical(f"[ANILIST] Failed to return list for user: {username}") + logger.critical(f"Failed to return list for user: {username}") return None else: - for item in list_items: - for media_collection in item.MediaListCollection.lists: - if hasattr(media_collection, "entries"): - for list_entry in media_collection.entries: - if (hasattr(list_entry, "status") - and list_entry.status in ["CURRENT", "PLANNING", "COMPLETED", "DROPPED", "PAUSED", - "REPEATING"] - and list_entry.media is not None): - series_obj = mediaitem_to_object(list_entry) - anilist_series.append(series_obj) + for media_collection in list_items.lists: + if hasattr(media_collection, "entries"): + for list_entry in media_collection.entries: + if (hasattr(list_entry, "status") + and list_entry.media): + series_obj = mediaitem_to_object(list_entry) + anilist_series.append(series_obj) except BaseException as exception: - logger.critical(f"[ANILIST] Failed to return list for user: {username}", exception) + logger.critical(f"Failed to return list for user: {username}", exception) return None - logger.info(f"[ANILIST] Found {len(anilist_series)} anime series on list") + logger.info(f"Found {len(anilist_series)} anime series on list") return anilist_series @@ -138,10 +136,10 @@ def mediaitem_to_object(media_item) -> AnilistSeries: title_romaji = media_item.media.title.romaji if hasattr(media_item.media, "synonyms"): synonyms = media_item.media.synonyms - if hasattr(media_item.media.startDate, "year"): - started_year = media_item.media.startDate.year - if hasattr(media_item.media.endDate, "year"): - ended_year = media_item.media.endDate.year + if hasattr(media_item.media.start_date, "year"): + started_year = media_item.media.start_date.year + if hasattr(media_item.media.end_date, "year"): + ended_year = media_item.media.end_date.year series = AnilistSeries( anilist_id, @@ -157,13 +155,13 @@ def mediaitem_to_object(media_item) -> AnilistSeries: title_romaji, synonyms, started_year, - ended_year, + ended_year ) return series def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List[PlexWatchedSeries]): - logger.info("[ANILIST] Matching Plex series to Anilist") + logger.info("Matching Plex series to Anilist") for plex_series in plex_series_watched: plex_title = plex_series.title plex_title_sort = plex_series.title_sort @@ -215,16 +213,18 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List for match in anilist_matches: logger.info( - "[MAPPING] Custom Mapping of Title found | " + "Custom Mapping of Title found | " f"title: {plex_title} | anilist id: {match['anilist_id']} | " f"total watched episodes: {match['watched_episodes']} | " f"seasons with the same anilist id: {match['mapped_seasons']}" ) add_or_update_show_by_id( - anilist_series, plex_title, + anilist_series, + plex_title, plex_year, - True, match['watched_episodes'], + True, + match['watched_episodes'], match['anilist_id'] ) @@ -237,7 +237,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List plex_watched_episode_count = plex_season.watched_episodes if plex_watched_episode_count == 0: logger.info( - f"[ANILIST] Series {plex_title} has 0 watched episodes for " + f"Series {plex_title} has 0 watched episodes for " f"season {season_number}, skipping" ) continue @@ -282,7 +282,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List for anime_id, watchcount in watchcounts.items(): logger.info( - f"[ANILIST] Used custom mapping | title: {plex_title} | season: {season_number} | anilist id: {anime_id}" + f"Used custom mapping | title: {plex_title} | season: {season_number} | anilist id: {anime_id}" ) add_or_update_show_by_id(anilist_series, plex_title, plex_year, True, watchcount, anime_id) @@ -293,7 +293,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List # Reordered checks from above to ensure that custom mappings always take precedent if plex_anilist_id: logger.info( - f"[ANILIST] Series {plex_title} has Anilist ID {plex_anilist_id} in its metadata, using that for updating") + f"Series {plex_title} has Anilist ID {plex_anilist_id} in its metadata, using that for updating") add_or_update_show_by_id(anilist_series, plex_title, plex_year, True, plex_watched_episode_count, plex_anilist_id) continue @@ -305,7 +305,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List # Series not listed so search for it if not all(matched_anilist_series) or not matched_anilist_series: - logger.warning(f"[ANILIST] Plex series was not on your AniList list: {plex_title}") + logger.warning(f"Plex series was not on your AniList list: {plex_title}") potential_titles_search = [ plex_title.lower(), @@ -328,13 +328,13 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List media_id_search = None for potential_title in potential_titles_search: logger.warning( - f"[ANILIST] Searching best match using title: {potential_title}" + f"Searching best match using title: {potential_title}" ) media_id_search = find_id_best_match(potential_title, plex_year) if media_id_search: logger.warning( - f"[ANILIST] Adding new series id to list: {media_id_search} | Plex episodes watched: {plex_watched_episode_count}" + f"Adding new series id to list: {media_id_search} | Plex episodes watched: {plex_watched_episode_count}" ) add_by_id( media_id_search, @@ -347,7 +347,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List if not media_id_search: error_message = ( - f"[ANILIST] Failed to find valid match on AniList for: {plex_title}" + f"Failed to find valid match on AniList for: {plex_title}" ) logger.error(error_message) if ANILIST_LOG_FAILED_MATCHES: @@ -373,20 +373,20 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List for anime_id, watchcount in watchcounts.items(): logger.info( - f"[ANILIST] Used custom mapping | title: {plex_title} | season: {season_number} | anilist id: {anime_id}" + f"Used custom mapping | title: {plex_title} | season: {season_number} | anilist id: {anime_id}" ) add_or_update_show_by_id(anilist_series, plex_title, plex_year, True, watchcount, anime_id) # If custom match found continue to next continue else: - if plex_year is not None: + if plex_year: media_id_search = find_id_season_best_match( plex_title, season_number, plex_year ) else: logger.error( - "[ANILIST] Skipped season lookup as Plex did not supply " + "Skipped season lookup as Plex did not supply " "a show year for {plex_title}, recommend checking Plex Web " "and correcting the show year manually." ) @@ -397,7 +397,7 @@ def match_to_plex(anilist_series: List[AnilistSeries], plex_series_watched: List plex_watched_episode_count, media_id_search) else: error_message = ( - f"[ANILIST] Failed to find valid season title match on AniList for: {plex_title_lookup} season {season_number}" + f"Failed to find valid season title match on AniList for: {plex_title_lookup} season {season_number}" ) logger.error(error_message) @@ -441,7 +441,7 @@ def match_series_against_potential_titles( def find_id_season_best_match(title: str, season: int, year: int) -> Optional[int]: media_id = None - # logger.warning('[ANILIST] Searching AniList for title: %s | season: %s' % (title, season)) + # logger.warning('Searching AniList for title: %s | season: %s' % (title, season)) match_title = clean_title(title) match_year = int(year) @@ -479,141 +479,137 @@ def find_id_season_best_match(title: str, season: int, year: int) -> Optional[in match_title_season_suffix6.lower().strip(), ] - list_items = search_by_name(title) - if list_items: - for item in list_items: - if item[0] is not None and item[0].media: - for media_item in item[0].media: - title_english = "" - title_english_for_matching = "" - title_romaji = "" - title_romaji_for_matching = "" - started_year = "" - - if hasattr(media_item.title, "english") and media_item.title.english is not None: - title_english = media_item.title.english - title_english_for_matching = clean_title(title_english) - if hasattr(media_item.title, "romaji") and media_item.title.romaji is not None: - title_romaji = media_item.title.romaji - title_romaji_for_matching = clean_title(title_romaji) - if hasattr(media_item.startDate, "year") and media_item.startDate.year is not None: - started_year = int(media_item.startDate.year) + matches = search_by_name(title) + if matches: + for match in matches: + title_english = "" + title_english_for_matching = "" + title_romaji = "" + title_romaji_for_matching = "" + started_year = "" + + if hasattr(match.title, "english") and match.title.english: + title_english = match.title.english + title_english_for_matching = clean_title(title_english) + if hasattr(match.title, "romaji") and match.title.romaji: + title_romaji = match.title.romaji + title_romaji_for_matching = clean_title(title_romaji) + if hasattr(match.start_date, "year") and match.start_date.year: + started_year = int(match.start_date.year) + else: + logger.warning( + "Anilist series did not have year attribute so skipping this result and moving to next: " + f"{title_english} | {title_romaji}" + ) + continue + + for potential_title in potential_titles: + potential_title = clean_title(potential_title) + # logger.info('Comparing AniList: %s | %s[%s] <===> %s' % + # (title_english_for_matching, title_romaji_for_matching, started_year, potential_title)) + if title_english_for_matching == potential_title: + if started_year < match_year: + logger.warning( + f"Found match: {title_english} [{media_id}] | " + f"skipping as it was released before first season ({started_year} <==> {match_year})" + ) else: + media_id = match.id + logger.info( + f"Found match: {title_english} [{media_id}]" + ) + break + if title_romaji_for_matching == potential_title: + if started_year < match_year: logger.warning( - "[ANILIST] Anilist series did not have year attribute so skipping this result and moving to next: " - f"{title_english} | {title_romaji}" + f"Found match: {title_romaji} [{media_id}] | " + f"skipping as it was released before first season ({started_year} <==> {match_year})" ) - continue - - for potential_title in potential_titles: - potential_title = clean_title(potential_title) - # logger.info('Comparing AniList: %s | %s[%s] <===> %s' % - # (title_english_for_matching, title_romaji_for_matching, started_year, potential_title)) - if title_english_for_matching == potential_title: - if started_year < match_year: - logger.warning( - f"[ANILIST] Found match: {title_english} [{media_id}] | " - f"skipping as it was released before first season ({started_year} <==> {match_year})" - ) - else: - media_id = media_item.id - logger.info( - f"[ANILIST] Found match: {title_english} [{media_id}]" - ) - break - if title_romaji_for_matching == potential_title: - if started_year < match_year: - logger.warning( - f"[ANILIST] Found match: {title_romaji} [{media_id}] | " - f"skipping as it was released before first season ({started_year} <==> {match_year})" - ) - else: - media_id = media_item.id - logger.info( - f"[ANILIST] Found match: {title_romaji} [{media_id}]" - ) - break + else: + media_id = match.id + logger.info( + f"Found match: {title_romaji} [{media_id}]" + ) + break if media_id == 0: - logger.error(f"[ANILIST] No match found for title: {title}") + logger.error(f"No match found for title: {title}") return media_id def find_id_best_match(title: str, year: int) -> Optional[int]: media_id = None - # logger.warning('[ANILIST] Searching AniList for title: %s' % (title)) + # logger.warning('Searching AniList for title: %s' % (title)) match_title = clean_title(title) match_year = str(year) - list_items = search_by_name(title) - if list_items: - for item in list_items: - if item[0] is not None and item[0].media: - for media_item in item[0].media: - title_english = "" - title_english_for_matching = "" - title_romaji = "" - title_romaji_for_matching = "" - synonyms = "" - synonyms_for_matching = "" - started_year = "" - - if hasattr(media_item.title, "english") and media_item.title.english is not None: - title_english = media_item.title.english - title_english_for_matching = clean_title(title_english) - if hasattr(media_item.title, "romaji") and media_item.title.romaji is not None: - title_romaji = media_item.title.romaji - title_romaji_for_matching = clean_title(title_romaji) - if hasattr(media_item.startDate, "year"): - started_year = str(media_item.startDate.year) - - # logger.info('Comparing AniList: %s | %s[%s] <===> %s[%s]' % (title_english, title_romaji, started_year, match_title, match_year)) - if ( - match_title == title_english_for_matching - and match_year == started_year - ): - media_id = media_item.id - logger.warning( - f"[ANILIST] Found match: {title_english} [{media_id}]" - ) - break + matches = search_by_name(title) + if matches: + for match in matches: + title_english = "" + title_english_for_matching = "" + title_romaji = "" + title_romaji_for_matching = "" + synonyms = "" + synonyms_for_matching = "" + started_year = "" + + if hasattr(match.title, "english") and match.title.english: + title_english = match.title.english + title_english_for_matching = clean_title(title_english) + if hasattr(match.title, "romaji") and match.title.romaji: + title_romaji = match.title.romaji + title_romaji_for_matching = clean_title(title_romaji) + if hasattr(match.start_date, "year"): + started_year = str(match.start_date.year) + + # logger.info('Comparing AniList: %s | %s[%s] <===> %s[%s]' % (title_english, title_romaji, started_year, match_title, match_year)) + if ( + match_title == title_english_for_matching + and match_year == started_year + ): + media_id = match.id + logger.warning( + f"Found match: {title_english} [{media_id}]" + ) + break + if ( + match_title == title_romaji_for_matching + and match_year == started_year + ): + media_id = match.id + logger.warning( + f"Found match: {title_romaji} [{media_id}]" + ) + break + if hasattr(match, "synonyms") and match.synonyms: + for synonym in match.synonyms: + synonyms = synonym + synonyms_for_matching = clean_title(synonyms) if ( - match_title == title_romaji_for_matching - and match_year == started_year + match_title == synonyms_for_matching + and match_year == started_year ): - media_id = media_item.id + media_id = match.id logger.warning( - f"[ANILIST] Found match: {title_romaji} [{media_id}]" + f"Found match in synonyms: {synonyms} [{media_id}]" ) break - if hasattr(media_item, "synonyms") and media_item.synonyms is not None: - for synonym in media_item.synonyms: - synonyms = synonym - synonyms_for_matching = clean_title(synonyms) - if ( - match_title == synonyms_for_matching - and match_year == started_year - ): - media_id = media_item.id - logger.warning( - f"[ANILIST] Found match in synonyms: {synonyms} [{media_id}]" - ) - break - if ( - match_title == title_romaji_for_matching - and match_year != started_year - ): - logger.info( - f"[ANILIST] Found match however started year is a mismatch: {title_romaji} [AL: {started_year} <==> Plex: {match_year}] " - ) - elif ( - match_title == title_english_for_matching - and match_year != started_year - ): - logger.info( - f"[ANILIST] Found match however started year is a mismatch: {title_english} [AL: {started_year} <==> Plex: {match_year}] " - ) + if ( + match_title == title_romaji_for_matching + and match_year != started_year + ): + logger.info( + f"Found match however started year is a mismatch: {title_romaji} [AL: {started_year} <==> Plex: {match_year}] " + ) + elif ( + match_title == title_english_for_matching + and match_year != started_year + ): + logger.info( + f"Found match however started year is a mismatch: {title_english} [AL: {started_year} <==> Plex: {match_year}] " + ) if media_id is None: - logger.error(f"[ANILIST] No match found for title: {title}") + logger.error(f"No match found for title: {title}") return media_id @@ -622,7 +618,7 @@ def add_or_update_show_by_id(anilist_series: List[AnilistSeries], plex_title: st series = find_mapped_series(anilist_series, anime_id) if series: logger.info( - f"[ANILIST] Updating series: {series.title_english} | Episodes watched: {watched_episodes}" + f"Updating series: {series.title_english} | Episodes watched: {watched_episodes}" ) update_entry( plex_title, @@ -633,7 +629,7 @@ def add_or_update_show_by_id(anilist_series: List[AnilistSeries], plex_title: st ) else: logger.warning( - f"[ANILIST] Adding new series id to list: {anime_id} | Episodes watched: {watched_episodes}" + f"Adding new series id to list: {anime_id} | Episodes watched: {watched_episodes}" ) add_by_id( anime_id, @@ -660,11 +656,11 @@ def add_by_id( ) else: logger.error( - "[ANILIST] failed to get anilist object for list adding, skipping series" + "failed to get anilist object for list adding, skipping series" ) else: logger.error( - f"[ANILIST] failed to get anilist search result for id: {anilist_id}" + f"failed to get anilist search result for id: {anilist_id}" ) @@ -674,24 +670,24 @@ def update_entry( ): for series in matched_anilist_series: status = "" - logger.info(f"[ANILIST] Found AniList entry for Plex title: {title}") + logger.info(f"Found AniList entry for Plex title: {title}") if hasattr(series, "status"): status = series.status if status == "COMPLETED": logger.info( - "[ANILIST] Series is already marked as completed on AniList so skipping update" + "Series is already marked as completed on AniList so skipping update" ) return if hasattr(series, "started_year") and year != series.started_year: if ignore_year is False: logger.error( - f"[ANILIST] Series year did not match (skipping update) => Plex has {year} and AniList has {series.started_year}" + f"Series year did not match (skipping update) => Plex has {year} and AniList has {series.started_year}" ) continue elif ignore_year is True: logger.info( - f"[ANILIST] Series year did not match however skip year check was given so adding anyway => " + f"Series year did not match however skip year check was given so adding anyway => " f"Plex has {year} and AniList has {series.started_year}" ) @@ -702,7 +698,7 @@ def update_entry( if hasattr(series, "media_status"): anilist_media_status = series.media_status if hasattr(series, "episodes"): - if series.episodes is not None: + if series.episodes: try: anilist_total_episodes = int(series.episodes) except BaseException: @@ -730,7 +726,7 @@ def update_entry( ): # series completed watched logger.warning( - f"[ANILIST] Plex episode watch count [{watched_episode_count}] was higher than the " + f"Plex episode watch count [{watched_episode_count}] was higher than the " f"one on AniList total episodes for that series [{anilist_total_episodes}] | updating " "AniList entry to completed" ) @@ -744,17 +740,16 @@ def update_entry( # episode watch count higher than plex new_status = status if status == "REPEATING" else "CURRENT" logger.warning( - f"[ANILIST] Plex episode watch count [{watched_episode_count}] was higher than the one" + f"Plex episode watch count [{watched_episode_count}] was higher than the one" f" on AniList [{anilist_episodes_watched}] which has total of {anilist_total_episodes} " f"episodes | updating AniList entry to {new_status}" ) update_episode_incremental(series, watched_episode_count, anilist_episodes_watched, new_status) return - elif watched_episode_count == anilist_episodes_watched: logger.info( - "[ANILIST] Episodes watched was the same on AniList and Plex so skipping update" + "Episodes watched was the same on AniList and Plex so skipping update" ) return elif ( @@ -763,7 +758,7 @@ def update_entry( ): if watched_episode_count > 0: logger.info( - f"[ANILIST] Episodes watched was higher on AniList [{anilist_episodes_watched}] than on Plex [{watched_episode_count}] " + f"Episodes watched was higher on AniList [{anilist_episodes_watched}] than on Plex [{watched_episode_count}] " "however Plex episode count override is active so updating" ) @@ -774,17 +769,17 @@ def update_entry( return else: logger.info( - f"[ANILIST] Episodes watched was higher on AniList [{anilist_episodes_watched}] than " + f"Episodes watched was higher on AniList [{anilist_episodes_watched}] than " f"on Plex [{watched_episode_count}] with Plex episode count override active however " "Plex watched count is 0 so skipping update" ) elif anilist_episodes_watched > watched_episode_count: logger.info( - f"[ANILIST] Episodes watched was higher on AniList [{anilist_episodes_watched}] than on Plex [{watched_episode_count}] so skipping update" + f"Episodes watched was higher on AniList [{anilist_episodes_watched}] than on Plex [{watched_episode_count}] so skipping update" ) elif anilist_total_episodes <= 0: logger.info( - "[ANILIST] AniList total episodes was 0 so most likely invalid data" + "AniList total episodes was 0 so most likely invalid data" ) @@ -827,7 +822,7 @@ def map_watchcount_to_seasons(title: str, season_mappings: List[AnilistCustomMap if total_mapped_episodes < watched_episodes: logger.warning( - f"[ANILIST] Custom mapping is incomplete for {title} season {season}. " + f"Custom mapping is incomplete for {title} season {season}. " f"Watch count is {watched_episodes}, but number of mapped episodes is {total_mapped_episodes}" ) diff --git a/plexanisync/anilist_schema.py b/plexanisync/anilist_schema.py new file mode 100644 index 0000000..36fed54 --- /dev/null +++ b/plexanisync/anilist_schema.py @@ -0,0 +1,3243 @@ +# flake8: noqa +# pylint: skip-file +# type: ignore +import sgqlc.types +import sgqlc.types.relay + + +anilist_schema = sgqlc.types.Schema() + + +# Unexport Node/PageInfo, let schema re-declare them +anilist_schema -= sgqlc.types.relay.Node +anilist_schema -= sgqlc.types.relay.PageInfo + + + +######################################################################## +# Scalars and Enumerations +######################################################################## +class ActivitySort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ID', 'ID_DESC', 'PINNED') + + +class ActivityType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ANIME_LIST', 'MANGA_LIST', 'MEDIA_LIST', 'MESSAGE', 'TEXT') + + +class AiringSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('EPISODE', 'EPISODE_DESC', 'ID', 'ID_DESC', 'MEDIA_ID', 'MEDIA_ID_DESC', 'TIME', 'TIME_DESC') + + +Boolean = sgqlc.types.Boolean + +class CharacterRole(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('BACKGROUND', 'MAIN', 'SUPPORTING') + + +class CharacterSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('FAVOURITES', 'FAVOURITES_DESC', 'ID', 'ID_DESC', 'RELEVANCE', 'ROLE', 'ROLE_DESC', 'SEARCH_MATCH') + + +class CountryCode(sgqlc.types.Scalar): + __schema__ = anilist_schema + + +class ExternalLinkMediaType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ANIME', 'MANGA', 'STAFF') + + +class ExternalLinkType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('INFO', 'SOCIAL', 'STREAMING') + + +Float = sgqlc.types.Float + +class FuzzyDateInt(sgqlc.types.Scalar): + __schema__ = anilist_schema + + +ID = sgqlc.types.ID + +Int = sgqlc.types.Int + +class Json(sgqlc.types.Scalar): + __schema__ = anilist_schema + + +class LikeableType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ACTIVITY', 'ACTIVITY_REPLY', 'THREAD', 'THREAD_COMMENT') + + +class MediaFormat(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('MANGA', 'MOVIE', 'MUSIC', 'NOVEL', 'ONA', 'ONE_SHOT', 'OVA', 'SPECIAL', 'TV', 'TV_SHORT') + + +class MediaListSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ADDED_TIME', 'ADDED_TIME_DESC', 'FINISHED_ON', 'FINISHED_ON_DESC', 'MEDIA_ID', 'MEDIA_ID_DESC', 'MEDIA_POPULARITY', 'MEDIA_POPULARITY_DESC', 'MEDIA_TITLE_ENGLISH', 'MEDIA_TITLE_ENGLISH_DESC', 'MEDIA_TITLE_NATIVE', 'MEDIA_TITLE_NATIVE_DESC', 'MEDIA_TITLE_ROMAJI', 'MEDIA_TITLE_ROMAJI_DESC', 'PRIORITY', 'PRIORITY_DESC', 'PROGRESS', 'PROGRESS_DESC', 'PROGRESS_VOLUMES', 'PROGRESS_VOLUMES_DESC', 'REPEAT', 'REPEAT_DESC', 'SCORE', 'SCORE_DESC', 'STARTED_ON', 'STARTED_ON_DESC', 'STATUS', 'STATUS_DESC', 'UPDATED_TIME', 'UPDATED_TIME_DESC') + + +class MediaListStatus(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('COMPLETED', 'CURRENT', 'DROPPED', 'PAUSED', 'PLANNING', 'REPEATING') + + +class MediaRankType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('POPULAR', 'RATED') + + +class MediaRelation(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ADAPTATION', 'ALTERNATIVE', 'CHARACTER', 'COMPILATION', 'CONTAINS', 'OTHER', 'PARENT', 'PREQUEL', 'SEQUEL', 'SIDE_STORY', 'SOURCE', 'SPIN_OFF', 'SUMMARY') + + +class MediaSeason(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('FALL', 'SPRING', 'SUMMER', 'WINTER') + + +class MediaSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CHAPTERS', 'CHAPTERS_DESC', 'DURATION', 'DURATION_DESC', 'END_DATE', 'END_DATE_DESC', 'EPISODES', 'EPISODES_DESC', 'FAVOURITES', 'FAVOURITES_DESC', 'FORMAT', 'FORMAT_DESC', 'ID', 'ID_DESC', 'POPULARITY', 'POPULARITY_DESC', 'SCORE', 'SCORE_DESC', 'SEARCH_MATCH', 'START_DATE', 'START_DATE_DESC', 'STATUS', 'STATUS_DESC', 'TITLE_ENGLISH', 'TITLE_ENGLISH_DESC', 'TITLE_NATIVE', 'TITLE_NATIVE_DESC', 'TITLE_ROMAJI', 'TITLE_ROMAJI_DESC', 'TRENDING', 'TRENDING_DESC', 'TYPE', 'TYPE_DESC', 'UPDATED_AT', 'UPDATED_AT_DESC', 'VOLUMES', 'VOLUMES_DESC') + + +class MediaSource(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ANIME', 'COMIC', 'DOUJINSHI', 'GAME', 'LIGHT_NOVEL', 'LIVE_ACTION', 'MANGA', 'MULTIMEDIA_PROJECT', 'NOVEL', 'ORIGINAL', 'OTHER', 'PICTURE_BOOK', 'VIDEO_GAME', 'VISUAL_NOVEL', 'WEB_NOVEL') + + +class MediaStatus(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CANCELLED', 'FINISHED', 'HIATUS', 'NOT_YET_RELEASED', 'RELEASING') + + +class MediaTrendSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('DATE', 'DATE_DESC', 'EPISODE', 'EPISODE_DESC', 'ID', 'ID_DESC', 'MEDIA_ID', 'MEDIA_ID_DESC', 'POPULARITY', 'POPULARITY_DESC', 'SCORE', 'SCORE_DESC', 'TRENDING', 'TRENDING_DESC') + + +class MediaType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ANIME', 'MANGA') + + +class ModActionType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ANON', 'BAN', 'DELETE', 'EDIT', 'EXPIRE', 'NOTE', 'REPORT', 'RESET') + + +class ModRole(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ADMIN', 'ANIME_DATA', 'COMMUNITY', 'DEVELOPER', 'DISCORD_COMMUNITY', 'LEAD_ANIME_DATA', 'LEAD_COMMUNITY', 'LEAD_DEVELOPER', 'LEAD_MANGA_DATA', 'LEAD_SOCIAL_MEDIA', 'MANGA_DATA', 'RETIRED', 'SOCIAL_MEDIA') + + +class NotificationType(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ACTIVITY_LIKE', 'ACTIVITY_MENTION', 'ACTIVITY_MESSAGE', 'ACTIVITY_REPLY', 'ACTIVITY_REPLY_LIKE', 'ACTIVITY_REPLY_SUBSCRIBED', 'AIRING', 'FOLLOWING', 'MEDIA_DATA_CHANGE', 'MEDIA_DELETION', 'MEDIA_MERGE', 'RELATED_MEDIA_ADDITION', 'THREAD_COMMENT_LIKE', 'THREAD_COMMENT_MENTION', 'THREAD_COMMENT_REPLY', 'THREAD_LIKE', 'THREAD_SUBSCRIBED') + + +class RecommendationRating(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('NO_RATING', 'RATE_DOWN', 'RATE_UP') + + +class RecommendationSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ID', 'ID_DESC', 'RATING', 'RATING_DESC') + + +class ReviewRating(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('DOWN_VOTE', 'NO_VOTE', 'UP_VOTE') + + +class ReviewSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CREATED_AT', 'CREATED_AT_DESC', 'ID', 'ID_DESC', 'RATING', 'RATING_DESC', 'SCORE', 'SCORE_DESC', 'UPDATED_AT', 'UPDATED_AT_DESC') + + +class RevisionHistoryAction(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CREATE', 'EDIT') + + +class ScoreFormat(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('POINT_10', 'POINT_100', 'POINT_10_DECIMAL', 'POINT_3', 'POINT_5') + + +class SiteTrendSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CHANGE', 'CHANGE_DESC', 'COUNT', 'COUNT_DESC', 'DATE', 'DATE_DESC') + + +class StaffLanguage(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ENGLISH', 'FRENCH', 'GERMAN', 'HEBREW', 'HUNGARIAN', 'ITALIAN', 'JAPANESE', 'KOREAN', 'PORTUGUESE', 'SPANISH') + + +class StaffSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('FAVOURITES', 'FAVOURITES_DESC', 'ID', 'ID_DESC', 'LANGUAGE', 'LANGUAGE_DESC', 'RELEVANCE', 'ROLE', 'ROLE_DESC', 'SEARCH_MATCH') + + +String = sgqlc.types.String + +class StudioSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('FAVOURITES', 'FAVOURITES_DESC', 'ID', 'ID_DESC', 'NAME', 'NAME_DESC', 'SEARCH_MATCH') + + +class SubmissionSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ID', 'ID_DESC') + + +class SubmissionStatus(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ACCEPTED', 'PARTIALLY_ACCEPTED', 'PENDING', 'REJECTED') + + +class ThreadCommentSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ID', 'ID_DESC') + + +class ThreadSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CREATED_AT', 'CREATED_AT_DESC', 'ID', 'ID_DESC', 'IS_STICKY', 'REPLIED_AT', 'REPLIED_AT_DESC', 'REPLY_COUNT', 'REPLY_COUNT_DESC', 'SEARCH_MATCH', 'TITLE', 'TITLE_DESC', 'UPDATED_AT', 'UPDATED_AT_DESC', 'VIEW_COUNT', 'VIEW_COUNT_DESC') + + +class UserSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('CHAPTERS_READ', 'CHAPTERS_READ_DESC', 'ID', 'ID_DESC', 'SEARCH_MATCH', 'USERNAME', 'USERNAME_DESC', 'WATCHED_TIME', 'WATCHED_TIME_DESC') + + +class UserStaffNameLanguage(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('NATIVE', 'ROMAJI', 'ROMAJI_WESTERN') + + +class UserStatisticsSort(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('COUNT', 'COUNT_DESC', 'ID', 'ID_DESC', 'MEAN_SCORE', 'MEAN_SCORE_DESC', 'PROGRESS', 'PROGRESS_DESC') + + +class UserTitleLanguage(sgqlc.types.Enum): + __schema__ = anilist_schema + __choices__ = ('ENGLISH', 'ENGLISH_STYLISED', 'NATIVE', 'NATIVE_STYLISED', 'ROMAJI', 'ROMAJI_STYLISED') + + + +######################################################################## +# Input Objects +######################################################################## +class AiringScheduleInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('airing_at', 'episode', 'time_until_airing') + airing_at = sgqlc.types.Field(Int, graphql_name='airingAt') + episode = sgqlc.types.Field(Int, graphql_name='episode') + time_until_airing = sgqlc.types.Field(Int, graphql_name='timeUntilAiring') + + +class AniChartHighlightInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('media_id', 'highlight') + media_id = sgqlc.types.Field(Int, graphql_name='mediaId') + highlight = sgqlc.types.Field(String, graphql_name='highlight') + + +class CharacterNameInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('first', 'middle', 'last', 'native', 'alternative', 'alternative_spoiler') + first = sgqlc.types.Field(String, graphql_name='first') + middle = sgqlc.types.Field(String, graphql_name='middle') + last = sgqlc.types.Field(String, graphql_name='last') + native = sgqlc.types.Field(String, graphql_name='native') + alternative = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternative') + alternative_spoiler = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternativeSpoiler') + + +class FuzzyDateInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('year', 'month', 'day') + year = sgqlc.types.Field(Int, graphql_name='year') + month = sgqlc.types.Field(Int, graphql_name='month') + day = sgqlc.types.Field(Int, graphql_name='day') + + +class ListActivityOptionInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('disabled', 'type') + disabled = sgqlc.types.Field(Boolean, graphql_name='disabled') + type = sgqlc.types.Field(MediaListStatus, graphql_name='type') + + +class MediaExternalLinkInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('id', 'url', 'site') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + url = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='url') + site = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='site') + + +class MediaListOptionsInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('section_order', 'split_completed_section_by_format', 'custom_lists', 'advanced_scoring', 'advanced_scoring_enabled', 'theme') + section_order = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='sectionOrder') + split_completed_section_by_format = sgqlc.types.Field(Boolean, graphql_name='splitCompletedSectionByFormat') + custom_lists = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='customLists') + advanced_scoring = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='advancedScoring') + advanced_scoring_enabled = sgqlc.types.Field(Boolean, graphql_name='advancedScoringEnabled') + theme = sgqlc.types.Field(String, graphql_name='theme') + + +class MediaTitleInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('romaji', 'english', 'native') + romaji = sgqlc.types.Field(String, graphql_name='romaji') + english = sgqlc.types.Field(String, graphql_name='english') + native = sgqlc.types.Field(String, graphql_name='native') + + +class NotificationOptionInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('type', 'enabled') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + enabled = sgqlc.types.Field(Boolean, graphql_name='enabled') + + +class StaffNameInput(sgqlc.types.Input): + __schema__ = anilist_schema + __field_names__ = ('first', 'middle', 'last', 'native', 'alternative') + first = sgqlc.types.Field(String, graphql_name='first') + middle = sgqlc.types.Field(String, graphql_name='middle') + last = sgqlc.types.Field(String, graphql_name='last') + native = sgqlc.types.Field(String, graphql_name='native') + alternative = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternative') + + + +######################################################################## +# Output Objects and Interfaces +######################################################################## +class ActivityLikeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'activity', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + activity = sgqlc.types.Field('ActivityUnion', graphql_name='activity') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ActivityMentionNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'activity', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + activity = sgqlc.types.Field('ActivityUnion', graphql_name='activity') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ActivityMessageNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'message', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + message = sgqlc.types.Field('MessageActivity', graphql_name='message') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ActivityReply(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'activity_id', 'text', 'like_count', 'is_liked', 'created_at', 'user', 'likes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(Int, graphql_name='userId') + activity_id = sgqlc.types.Field(Int, graphql_name='activityId') + text = sgqlc.types.Field(String, graphql_name='text', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + user = sgqlc.types.Field('User', graphql_name='user') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + + +class ActivityReplyLikeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'activity', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + activity = sgqlc.types.Field('ActivityUnion', graphql_name='activity') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ActivityReplyNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'activity', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + activity = sgqlc.types.Field('ActivityUnion', graphql_name='activity') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ActivityReplySubscribedNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'activity_id', 'context', 'created_at', 'activity', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + activity_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='activityId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + activity = sgqlc.types.Field('ActivityUnion', graphql_name='activity') + user = sgqlc.types.Field('User', graphql_name='user') + + +class AiringNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'type', 'anime_id', 'episode', 'contexts', 'created_at', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + anime_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='animeId') + episode = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='episode') + contexts = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='contexts') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + media = sgqlc.types.Field('Media', graphql_name='media') + + +class AiringProgression(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('episode', 'score', 'watching') + episode = sgqlc.types.Field(Float, graphql_name='episode') + score = sgqlc.types.Field(Float, graphql_name='score') + watching = sgqlc.types.Field(Int, graphql_name='watching') + + +class AiringSchedule(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'airing_at', 'time_until_airing', 'episode', 'media_id', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + airing_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='airingAt') + time_until_airing = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='timeUntilAiring') + episode = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='episode') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + media = sgqlc.types.Field('Media', graphql_name='media') + + +class AiringScheduleConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('AiringScheduleEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(AiringSchedule), graphql_name='nodes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + + +class AiringScheduleEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'id') + node = sgqlc.types.Field(AiringSchedule, graphql_name='node') + id = sgqlc.types.Field(Int, graphql_name='id') + + +class AniChartUser(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('user', 'settings', 'highlights') + user = sgqlc.types.Field('User', graphql_name='user') + settings = sgqlc.types.Field(Json, graphql_name='settings') + highlights = sgqlc.types.Field(Json, graphql_name='highlights') + + +class Character(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name', 'image', 'description', 'gender', 'date_of_birth', 'age', 'blood_type', 'is_favourite', 'is_favourite_blocked', 'site_url', 'media', 'updated_at', 'favourites', 'mod_notes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field('CharacterName', graphql_name='name') + image = sgqlc.types.Field('CharacterImage', graphql_name='image') + description = sgqlc.types.Field(String, graphql_name='description', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + gender = sgqlc.types.Field(String, graphql_name='gender') + date_of_birth = sgqlc.types.Field('FuzzyDate', graphql_name='dateOfBirth') + age = sgqlc.types.Field(String, graphql_name='age') + blood_type = sgqlc.types.Field(String, graphql_name='bloodType') + is_favourite = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavourite') + is_favourite_blocked = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavouriteBlocked') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + media = sgqlc.types.Field('MediaConnection', graphql_name='media', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + favourites = sgqlc.types.Field(Int, graphql_name='favourites') + mod_notes = sgqlc.types.Field(String, graphql_name='modNotes') + + +class CharacterConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('CharacterEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Character), graphql_name='nodes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + + +class CharacterEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'id', 'role', 'name', 'voice_actors', 'voice_actor_roles', 'media', 'favourite_order') + node = sgqlc.types.Field(Character, graphql_name='node') + id = sgqlc.types.Field(Int, graphql_name='id') + role = sgqlc.types.Field(CharacterRole, graphql_name='role') + name = sgqlc.types.Field(String, graphql_name='name') + voice_actors = sgqlc.types.Field(sgqlc.types.list_of('Staff'), graphql_name='voiceActors', args=sgqlc.types.ArgDict(( + ('language', sgqlc.types.Arg(StaffLanguage, graphql_name='language', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + voice_actor_roles = sgqlc.types.Field(sgqlc.types.list_of('StaffRoleType'), graphql_name='voiceActorRoles', args=sgqlc.types.ArgDict(( + ('language', sgqlc.types.Arg(StaffLanguage, graphql_name='language', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + media = sgqlc.types.Field(sgqlc.types.list_of('Media'), graphql_name='media') + favourite_order = sgqlc.types.Field(Int, graphql_name='favouriteOrder') + + +class CharacterImage(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('large', 'medium') + large = sgqlc.types.Field(String, graphql_name='large') + medium = sgqlc.types.Field(String, graphql_name='medium') + + +class CharacterName(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('first', 'middle', 'last', 'full', 'native', 'alternative', 'alternative_spoiler', 'user_preferred') + first = sgqlc.types.Field(String, graphql_name='first') + middle = sgqlc.types.Field(String, graphql_name='middle') + last = sgqlc.types.Field(String, graphql_name='last') + full = sgqlc.types.Field(String, graphql_name='full') + native = sgqlc.types.Field(String, graphql_name='native') + alternative = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternative') + alternative_spoiler = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternativeSpoiler') + user_preferred = sgqlc.types.Field(String, graphql_name='userPreferred') + + +class CharacterSubmission(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'character', 'submission', 'submitter', 'assignee', 'status', 'notes', 'source', 'locked', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + character = sgqlc.types.Field(Character, graphql_name='character') + submission = sgqlc.types.Field(Character, graphql_name='submission') + submitter = sgqlc.types.Field('User', graphql_name='submitter') + assignee = sgqlc.types.Field('User', graphql_name='assignee') + status = sgqlc.types.Field(SubmissionStatus, graphql_name='status') + notes = sgqlc.types.Field(String, graphql_name='notes') + source = sgqlc.types.Field(String, graphql_name='source') + locked = sgqlc.types.Field(Boolean, graphql_name='locked') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + + +class CharacterSubmissionConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('CharacterSubmissionEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(CharacterSubmission), graphql_name='nodes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + + +class CharacterSubmissionEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'role', 'voice_actors', 'submitted_voice_actors') + node = sgqlc.types.Field(CharacterSubmission, graphql_name='node') + role = sgqlc.types.Field(CharacterRole, graphql_name='role') + voice_actors = sgqlc.types.Field(sgqlc.types.list_of('Staff'), graphql_name='voiceActors') + submitted_voice_actors = sgqlc.types.Field(sgqlc.types.list_of('StaffSubmission'), graphql_name='submittedVoiceActors') + + +class Deleted(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('deleted',) + deleted = sgqlc.types.Field(Boolean, graphql_name='deleted') + + +class Favourites(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('anime', 'manga', 'characters', 'staff', 'studios') + anime = sgqlc.types.Field('MediaConnection', graphql_name='anime', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + manga = sgqlc.types.Field('MediaConnection', graphql_name='manga', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + characters = sgqlc.types.Field(CharacterConnection, graphql_name='characters', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + staff = sgqlc.types.Field('StaffConnection', graphql_name='staff', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + studios = sgqlc.types.Field('StudioConnection', graphql_name='studios', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + + +class FollowingNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'context', 'created_at', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + user = sgqlc.types.Field('User', graphql_name='user') + + +class FormatStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('format', 'amount') + format = sgqlc.types.Field(MediaFormat, graphql_name='format') + amount = sgqlc.types.Field(Int, graphql_name='amount') + + +class FuzzyDate(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('year', 'month', 'day') + year = sgqlc.types.Field(Int, graphql_name='year') + month = sgqlc.types.Field(Int, graphql_name='month') + day = sgqlc.types.Field(Int, graphql_name='day') + + +class GenreStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('genre', 'amount', 'mean_score', 'time_watched') + genre = sgqlc.types.Field(String, graphql_name='genre') + amount = sgqlc.types.Field(Int, graphql_name='amount') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + time_watched = sgqlc.types.Field(Int, graphql_name='timeWatched') + + +class InternalPage(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('media_submissions', 'character_submissions', 'staff_submissions', 'revision_history', 'reports', 'mod_actions', 'user_block_search', 'page_info', 'users', 'media', 'characters', 'staff', 'studios', 'media_list', 'airing_schedules', 'media_trends', 'notifications', 'followers', 'following', 'activities', 'activity_replies', 'threads', 'thread_comments', 'reviews', 'recommendations', 'likes') + media_submissions = sgqlc.types.Field(sgqlc.types.list_of('MediaSubmission'), graphql_name='mediaSubmissions', args=sgqlc.types.ArgDict(( + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('submission_id', sgqlc.types.Arg(Int, graphql_name='submissionId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('assignee_id', sgqlc.types.Arg(Int, graphql_name='assigneeId', default=None)), + ('status', sgqlc.types.Arg(SubmissionStatus, graphql_name='status', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SubmissionSort), graphql_name='sort', default=None)), +)) + ) + character_submissions = sgqlc.types.Field(sgqlc.types.list_of(CharacterSubmission), graphql_name='characterSubmissions', args=sgqlc.types.ArgDict(( + ('character_id', sgqlc.types.Arg(Int, graphql_name='characterId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('assignee_id', sgqlc.types.Arg(Int, graphql_name='assigneeId', default=None)), + ('status', sgqlc.types.Arg(SubmissionStatus, graphql_name='status', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SubmissionSort), graphql_name='sort', default=None)), +)) + ) + staff_submissions = sgqlc.types.Field(sgqlc.types.list_of('StaffSubmission'), graphql_name='staffSubmissions', args=sgqlc.types.ArgDict(( + ('staff_id', sgqlc.types.Arg(Int, graphql_name='staffId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('assignee_id', sgqlc.types.Arg(Int, graphql_name='assigneeId', default=None)), + ('status', sgqlc.types.Arg(SubmissionStatus, graphql_name='status', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SubmissionSort), graphql_name='sort', default=None)), +)) + ) + revision_history = sgqlc.types.Field(sgqlc.types.list_of('RevisionHistory'), graphql_name='revisionHistory', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('character_id', sgqlc.types.Arg(Int, graphql_name='characterId', default=None)), + ('staff_id', sgqlc.types.Arg(Int, graphql_name='staffId', default=None)), + ('studio_id', sgqlc.types.Arg(Int, graphql_name='studioId', default=None)), +)) + ) + reports = sgqlc.types.Field(sgqlc.types.list_of('Report'), graphql_name='reports', args=sgqlc.types.ArgDict(( + ('reporter_id', sgqlc.types.Arg(Int, graphql_name='reporterId', default=None)), + ('reported_id', sgqlc.types.Arg(Int, graphql_name='reportedId', default=None)), +)) + ) + mod_actions = sgqlc.types.Field(sgqlc.types.list_of('ModAction'), graphql_name='modActions', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('mod_id', sgqlc.types.Arg(Int, graphql_name='modId', default=None)), +)) + ) + user_block_search = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='userBlockSearch', args=sgqlc.types.ArgDict(( + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), +)) + ) + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + users = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='users', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('name', sgqlc.types.Arg(String, graphql_name='name', default=None)), + ('is_moderator', sgqlc.types.Arg(Boolean, graphql_name='isModerator', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + media = sgqlc.types.Field(sgqlc.types.list_of('Media'), graphql_name='media', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('id_mal', sgqlc.types.Arg(Int, graphql_name='idMal', default=None)), + ('start_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate', default=None)), + ('end_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate', default=None)), + ('season', sgqlc.types.Arg(MediaSeason, graphql_name='season', default=None)), + ('season_year', sgqlc.types.Arg(Int, graphql_name='seasonYear', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('format', sgqlc.types.Arg(MediaFormat, graphql_name='format', default=None)), + ('status', sgqlc.types.Arg(MediaStatus, graphql_name='status', default=None)), + ('episodes', sgqlc.types.Arg(Int, graphql_name='episodes', default=None)), + ('duration', sgqlc.types.Arg(Int, graphql_name='duration', default=None)), + ('chapters', sgqlc.types.Arg(Int, graphql_name='chapters', default=None)), + ('volumes', sgqlc.types.Arg(Int, graphql_name='volumes', default=None)), + ('is_adult', sgqlc.types.Arg(Boolean, graphql_name='isAdult', default=None)), + ('genre', sgqlc.types.Arg(String, graphql_name='genre', default=None)), + ('tag', sgqlc.types.Arg(String, graphql_name='tag', default=None)), + ('minimum_tag_rank', sgqlc.types.Arg(Int, graphql_name='minimumTagRank', default=None)), + ('tag_category', sgqlc.types.Arg(String, graphql_name='tagCategory', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('licensed_by', sgqlc.types.Arg(String, graphql_name='licensedBy', default=None)), + ('licensed_by_id', sgqlc.types.Arg(Int, graphql_name='licensedById', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('source', sgqlc.types.Arg(MediaSource, graphql_name='source', default=None)), + ('country_of_origin', sgqlc.types.Arg(CountryCode, graphql_name='countryOfOrigin', default=None)), + ('is_licensed', sgqlc.types.Arg(Boolean, graphql_name='isLicensed', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('id_mal_not', sgqlc.types.Arg(Int, graphql_name='idMal_not', default=None)), + ('id_mal_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_in', default=None)), + ('id_mal_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_not_in', default=None)), + ('start_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_greater', default=None)), + ('start_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_lesser', default=None)), + ('start_date_like', sgqlc.types.Arg(String, graphql_name='startDate_like', default=None)), + ('end_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_greater', default=None)), + ('end_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_lesser', default=None)), + ('end_date_like', sgqlc.types.Arg(String, graphql_name='endDate_like', default=None)), + ('format_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_in', default=None)), + ('format_not', sgqlc.types.Arg(MediaFormat, graphql_name='format_not', default=None)), + ('format_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_not_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaStatus, graphql_name='status_not', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_not_in', default=None)), + ('episodes_greater', sgqlc.types.Arg(Int, graphql_name='episodes_greater', default=None)), + ('episodes_lesser', sgqlc.types.Arg(Int, graphql_name='episodes_lesser', default=None)), + ('duration_greater', sgqlc.types.Arg(Int, graphql_name='duration_greater', default=None)), + ('duration_lesser', sgqlc.types.Arg(Int, graphql_name='duration_lesser', default=None)), + ('chapters_greater', sgqlc.types.Arg(Int, graphql_name='chapters_greater', default=None)), + ('chapters_lesser', sgqlc.types.Arg(Int, graphql_name='chapters_lesser', default=None)), + ('volumes_greater', sgqlc.types.Arg(Int, graphql_name='volumes_greater', default=None)), + ('volumes_lesser', sgqlc.types.Arg(Int, graphql_name='volumes_lesser', default=None)), + ('genre_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_in', default=None)), + ('genre_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_not_in', default=None)), + ('tag_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_in', default=None)), + ('tag_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_not_in', default=None)), + ('tag_category_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_in', default=None)), + ('tag_category_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_not_in', default=None)), + ('licensed_by_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='licensedBy_in', default=None)), + ('licensed_by_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='licensedById_in', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('source_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaSource), graphql_name='source_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), +)) + ) + characters = sgqlc.types.Field(sgqlc.types.list_of(Character), graphql_name='characters', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(CharacterSort), graphql_name='sort', default=None)), +)) + ) + staff = sgqlc.types.Field(sgqlc.types.list_of('Staff'), graphql_name='staff', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + studios = sgqlc.types.Field(sgqlc.types.list_of('Studio'), graphql_name='studios', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StudioSort), graphql_name='sort', default=None)), +)) + ) + media_list = sgqlc.types.Field(sgqlc.types.list_of('MediaList'), graphql_name='mediaList', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('user_name', sgqlc.types.Arg(String, graphql_name='userName', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt', default=None)), + ('compare_with_auth_list', sgqlc.types.Arg(Boolean, graphql_name='compareWithAuthList', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_in', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_not_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaListStatus, graphql_name='status_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('notes_like', sgqlc.types.Arg(String, graphql_name='notes_like', default=None)), + ('started_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_greater', default=None)), + ('started_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_lesser', default=None)), + ('started_at_like', sgqlc.types.Arg(String, graphql_name='startedAt_like', default=None)), + ('completed_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_greater', default=None)), + ('completed_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_lesser', default=None)), + ('completed_at_like', sgqlc.types.Arg(String, graphql_name='completedAt_like', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaListSort), graphql_name='sort', default=None)), +)) + ) + airing_schedules = sgqlc.types.Field(sgqlc.types.list_of(AiringSchedule), graphql_name='airingSchedules', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('airing_at', sgqlc.types.Arg(Int, graphql_name='airingAt', default=None)), + ('not_yet_aired', sgqlc.types.Arg(Boolean, graphql_name='notYetAired', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('episode_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_in', default=None)), + ('episode_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_not_in', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('airing_at_greater', sgqlc.types.Arg(Int, graphql_name='airingAt_greater', default=None)), + ('airing_at_lesser', sgqlc.types.Arg(Int, graphql_name='airingAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(AiringSort), graphql_name='sort', default=None)), +)) + ) + media_trends = sgqlc.types.Field(sgqlc.types.list_of('MediaTrend'), graphql_name='mediaTrends', args=sgqlc.types.ArgDict(( + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('date', sgqlc.types.Arg(Int, graphql_name='date', default=None)), + ('trending', sgqlc.types.Arg(Int, graphql_name='trending', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('releasing', sgqlc.types.Arg(Boolean, graphql_name='releasing', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('date_greater', sgqlc.types.Arg(Int, graphql_name='date_greater', default=None)), + ('date_lesser', sgqlc.types.Arg(Int, graphql_name='date_lesser', default=None)), + ('trending_greater', sgqlc.types.Arg(Int, graphql_name='trending_greater', default=None)), + ('trending_lesser', sgqlc.types.Arg(Int, graphql_name='trending_lesser', default=None)), + ('trending_not', sgqlc.types.Arg(Int, graphql_name='trending_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaTrendSort), graphql_name='sort', default=None)), +)) + ) + notifications = sgqlc.types.Field(sgqlc.types.list_of('NotificationUnion'), graphql_name='notifications', args=sgqlc.types.ArgDict(( + ('type', sgqlc.types.Arg(NotificationType, graphql_name='type', default=None)), + ('reset_notification_count', sgqlc.types.Arg(Boolean, graphql_name='resetNotificationCount', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(NotificationType), graphql_name='type_in', default=None)), +)) + ) + followers = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='followers', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + following = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='following', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + activities = sgqlc.types.Field(sgqlc.types.list_of('ActivityUnion'), graphql_name='activities', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('messenger_id', sgqlc.types.Arg(Int, graphql_name='messengerId', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('type', sgqlc.types.Arg(ActivityType, graphql_name='type', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('has_replies', sgqlc.types.Arg(Boolean, graphql_name='hasReplies', default=None)), + ('has_replies_or_type_text', sgqlc.types.Arg(Boolean, graphql_name='hasRepliesOrTypeText', default=None)), + ('created_at', sgqlc.types.Arg(Int, graphql_name='createdAt', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('user_id_not', sgqlc.types.Arg(Int, graphql_name='userId_not', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('user_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_not_in', default=None)), + ('messenger_id_not', sgqlc.types.Arg(Int, graphql_name='messengerId_not', default=None)), + ('messenger_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_in', default=None)), + ('messenger_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('type_not', sgqlc.types.Arg(ActivityType, graphql_name='type_not', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_in', default=None)), + ('type_not_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_not_in', default=None)), + ('created_at_greater', sgqlc.types.Arg(Int, graphql_name='createdAt_greater', default=None)), + ('created_at_lesser', sgqlc.types.Arg(Int, graphql_name='createdAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ActivitySort), graphql_name='sort', default=None)), +)) + ) + activity_replies = sgqlc.types.Field(sgqlc.types.list_of(ActivityReply), graphql_name='activityReplies', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('activity_id', sgqlc.types.Arg(Int, graphql_name='activityId', default=None)), +)) + ) + threads = sgqlc.types.Field(sgqlc.types.list_of('Thread'), graphql_name='threads', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('reply_user_id', sgqlc.types.Arg(Int, graphql_name='replyUserId', default=None)), + ('subscribed', sgqlc.types.Arg(Boolean, graphql_name='subscribed', default=None)), + ('category_id', sgqlc.types.Arg(Int, graphql_name='categoryId', default=None)), + ('media_category_id', sgqlc.types.Arg(Int, graphql_name='mediaCategoryId', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadSort), graphql_name='sort', default=None)), +)) + ) + thread_comments = sgqlc.types.Field(sgqlc.types.list_of('ThreadComment'), graphql_name='threadComments', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('thread_id', sgqlc.types.Arg(Int, graphql_name='threadId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadCommentSort), graphql_name='sort', default=None)), +)) + ) + reviews = sgqlc.types.Field(sgqlc.types.list_of('Review'), graphql_name='reviews', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('media_type', sgqlc.types.Arg(MediaType, graphql_name='mediaType', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ReviewSort), graphql_name='sort', default=None)), +)) + ) + recommendations = sgqlc.types.Field(sgqlc.types.list_of('Recommendation'), graphql_name='recommendations', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('media_recommendation_id', sgqlc.types.Arg(Int, graphql_name='mediaRecommendationId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('rating', sgqlc.types.Arg(Int, graphql_name='rating', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('rating_greater', sgqlc.types.Arg(Int, graphql_name='rating_greater', default=None)), + ('rating_lesser', sgqlc.types.Arg(Int, graphql_name='rating_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(RecommendationSort), graphql_name='sort', default=None)), +)) + ) + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes', args=sgqlc.types.ArgDict(( + ('likeable_id', sgqlc.types.Arg(Int, graphql_name='likeableId', default=None)), + ('type', sgqlc.types.Arg(LikeableType, graphql_name='type', default=None)), +)) + ) + + +class ListActivity(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'reply_count', 'status', 'progress', 'is_locked', 'is_subscribed', 'like_count', 'is_liked', 'is_pinned', 'site_url', 'created_at', 'user', 'media', 'replies', 'likes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(Int, graphql_name='userId') + type = sgqlc.types.Field(ActivityType, graphql_name='type') + reply_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='replyCount') + status = sgqlc.types.Field(String, graphql_name='status') + progress = sgqlc.types.Field(String, graphql_name='progress') + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + is_subscribed = sgqlc.types.Field(Boolean, graphql_name='isSubscribed') + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + is_pinned = sgqlc.types.Field(Boolean, graphql_name='isPinned') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + user = sgqlc.types.Field('User', graphql_name='user') + media = sgqlc.types.Field('Media', graphql_name='media') + replies = sgqlc.types.Field(sgqlc.types.list_of(ActivityReply), graphql_name='replies') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + + +class ListActivityOption(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('disabled', 'type') + disabled = sgqlc.types.Field(Boolean, graphql_name='disabled') + type = sgqlc.types.Field(MediaListStatus, graphql_name='type') + + +class ListScoreStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('mean_score', 'standard_deviation') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + standard_deviation = sgqlc.types.Field(Int, graphql_name='standardDeviation') + + +class Media(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'id_mal', 'title', 'type', 'format', 'status', 'description', 'start_date', 'end_date', 'season', 'season_year', 'season_int', 'episodes', 'duration', 'chapters', 'volumes', 'country_of_origin', 'is_licensed', 'source', 'hashtag', 'trailer', 'updated_at', 'cover_image', 'banner_image', 'genres', 'synonyms', 'average_score', 'mean_score', 'popularity', 'is_locked', 'trending', 'favourites', 'tags', 'relations', 'characters', 'staff', 'studios', 'is_favourite', 'is_favourite_blocked', 'is_adult', 'next_airing_episode', 'airing_schedule', 'trends', 'external_links', 'streaming_episodes', 'rankings', 'media_list_entry', 'reviews', 'recommendations', 'stats', 'site_url', 'auto_create_forum_thread', 'is_recommendation_blocked', 'is_review_blocked', 'mod_notes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + id_mal = sgqlc.types.Field(Int, graphql_name='idMal') + title = sgqlc.types.Field('MediaTitle', graphql_name='title') + type = sgqlc.types.Field(MediaType, graphql_name='type') + format = sgqlc.types.Field(MediaFormat, graphql_name='format') + status = sgqlc.types.Field(MediaStatus, graphql_name='status', args=sgqlc.types.ArgDict(( + ('version', sgqlc.types.Arg(Int, graphql_name='version', default=None)), +)) + ) + description = sgqlc.types.Field(String, graphql_name='description', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + start_date = sgqlc.types.Field(FuzzyDate, graphql_name='startDate') + end_date = sgqlc.types.Field(FuzzyDate, graphql_name='endDate') + season = sgqlc.types.Field(MediaSeason, graphql_name='season') + season_year = sgqlc.types.Field(Int, graphql_name='seasonYear') + season_int = sgqlc.types.Field(Int, graphql_name='seasonInt') + episodes = sgqlc.types.Field(Int, graphql_name='episodes') + duration = sgqlc.types.Field(Int, graphql_name='duration') + chapters = sgqlc.types.Field(Int, graphql_name='chapters') + volumes = sgqlc.types.Field(Int, graphql_name='volumes') + country_of_origin = sgqlc.types.Field(CountryCode, graphql_name='countryOfOrigin') + is_licensed = sgqlc.types.Field(Boolean, graphql_name='isLicensed') + source = sgqlc.types.Field(MediaSource, graphql_name='source', args=sgqlc.types.ArgDict(( + ('version', sgqlc.types.Arg(Int, graphql_name='version', default=None)), +)) + ) + hashtag = sgqlc.types.Field(String, graphql_name='hashtag') + trailer = sgqlc.types.Field('MediaTrailer', graphql_name='trailer') + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + cover_image = sgqlc.types.Field('MediaCoverImage', graphql_name='coverImage') + banner_image = sgqlc.types.Field(String, graphql_name='bannerImage') + genres = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='genres') + synonyms = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='synonyms') + average_score = sgqlc.types.Field(Int, graphql_name='averageScore') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + popularity = sgqlc.types.Field(Int, graphql_name='popularity') + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + trending = sgqlc.types.Field(Int, graphql_name='trending') + favourites = sgqlc.types.Field(Int, graphql_name='favourites') + tags = sgqlc.types.Field(sgqlc.types.list_of('MediaTag'), graphql_name='tags') + relations = sgqlc.types.Field('MediaConnection', graphql_name='relations') + characters = sgqlc.types.Field(CharacterConnection, graphql_name='characters', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(CharacterSort), graphql_name='sort', default=None)), + ('role', sgqlc.types.Arg(CharacterRole, graphql_name='role', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + staff = sgqlc.types.Field('StaffConnection', graphql_name='staff', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + studios = sgqlc.types.Field('StudioConnection', graphql_name='studios', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StudioSort), graphql_name='sort', default=None)), + ('is_main', sgqlc.types.Arg(Boolean, graphql_name='isMain', default=None)), +)) + ) + is_favourite = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavourite') + is_favourite_blocked = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavouriteBlocked') + is_adult = sgqlc.types.Field(Boolean, graphql_name='isAdult') + next_airing_episode = sgqlc.types.Field(AiringSchedule, graphql_name='nextAiringEpisode') + airing_schedule = sgqlc.types.Field(AiringScheduleConnection, graphql_name='airingSchedule', args=sgqlc.types.ArgDict(( + ('not_yet_aired', sgqlc.types.Arg(Boolean, graphql_name='notYetAired', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + trends = sgqlc.types.Field('MediaTrendConnection', graphql_name='trends', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaTrendSort), graphql_name='sort', default=None)), + ('releasing', sgqlc.types.Arg(Boolean, graphql_name='releasing', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + external_links = sgqlc.types.Field(sgqlc.types.list_of('MediaExternalLink'), graphql_name='externalLinks') + streaming_episodes = sgqlc.types.Field(sgqlc.types.list_of('MediaStreamingEpisode'), graphql_name='streamingEpisodes') + rankings = sgqlc.types.Field(sgqlc.types.list_of('MediaRank'), graphql_name='rankings') + media_list_entry = sgqlc.types.Field('MediaList', graphql_name='mediaListEntry') + reviews = sgqlc.types.Field('ReviewConnection', graphql_name='reviews', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ReviewSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + recommendations = sgqlc.types.Field('RecommendationConnection', graphql_name='recommendations', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(RecommendationSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + stats = sgqlc.types.Field('MediaStats', graphql_name='stats') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + auto_create_forum_thread = sgqlc.types.Field(Boolean, graphql_name='autoCreateForumThread') + is_recommendation_blocked = sgqlc.types.Field(Boolean, graphql_name='isRecommendationBlocked') + is_review_blocked = sgqlc.types.Field(Boolean, graphql_name='isReviewBlocked') + mod_notes = sgqlc.types.Field(String, graphql_name='modNotes') + + +class MediaCharacter(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'role', 'role_notes', 'dub_group', 'character_name', 'character', 'voice_actor') + id = sgqlc.types.Field(Int, graphql_name='id') + role = sgqlc.types.Field(CharacterRole, graphql_name='role') + role_notes = sgqlc.types.Field(String, graphql_name='roleNotes') + dub_group = sgqlc.types.Field(String, graphql_name='dubGroup') + character_name = sgqlc.types.Field(String, graphql_name='characterName') + character = sgqlc.types.Field(Character, graphql_name='character') + voice_actor = sgqlc.types.Field('Staff', graphql_name='voiceActor') + + +class MediaConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('MediaEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Media), graphql_name='nodes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + + +class MediaCoverImage(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('extra_large', 'large', 'medium', 'color') + extra_large = sgqlc.types.Field(String, graphql_name='extraLarge') + large = sgqlc.types.Field(String, graphql_name='large') + medium = sgqlc.types.Field(String, graphql_name='medium') + color = sgqlc.types.Field(String, graphql_name='color') + + +class MediaDataChangeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'type', 'media_id', 'context', 'reason', 'created_at', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + context = sgqlc.types.Field(String, graphql_name='context') + reason = sgqlc.types.Field(String, graphql_name='reason') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class MediaDeletionNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'type', 'deleted_media_title', 'context', 'reason', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + deleted_media_title = sgqlc.types.Field(String, graphql_name='deletedMediaTitle') + context = sgqlc.types.Field(String, graphql_name='context') + reason = sgqlc.types.Field(String, graphql_name='reason') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + + +class MediaEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'id', 'relation_type', 'is_main_studio', 'characters', 'character_role', 'character_name', 'role_notes', 'dub_group', 'staff_role', 'voice_actors', 'voice_actor_roles', 'favourite_order') + node = sgqlc.types.Field(Media, graphql_name='node') + id = sgqlc.types.Field(Int, graphql_name='id') + relation_type = sgqlc.types.Field(MediaRelation, graphql_name='relationType', args=sgqlc.types.ArgDict(( + ('version', sgqlc.types.Arg(Int, graphql_name='version', default=None)), +)) + ) + is_main_studio = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isMainStudio') + characters = sgqlc.types.Field(sgqlc.types.list_of(Character), graphql_name='characters') + character_role = sgqlc.types.Field(CharacterRole, graphql_name='characterRole') + character_name = sgqlc.types.Field(String, graphql_name='characterName') + role_notes = sgqlc.types.Field(String, graphql_name='roleNotes') + dub_group = sgqlc.types.Field(String, graphql_name='dubGroup') + staff_role = sgqlc.types.Field(String, graphql_name='staffRole') + voice_actors = sgqlc.types.Field(sgqlc.types.list_of('Staff'), graphql_name='voiceActors', args=sgqlc.types.ArgDict(( + ('language', sgqlc.types.Arg(StaffLanguage, graphql_name='language', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + voice_actor_roles = sgqlc.types.Field(sgqlc.types.list_of('StaffRoleType'), graphql_name='voiceActorRoles', args=sgqlc.types.ArgDict(( + ('language', sgqlc.types.Arg(StaffLanguage, graphql_name='language', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + favourite_order = sgqlc.types.Field(Int, graphql_name='favouriteOrder') + + +class MediaExternalLink(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'url', 'site', 'site_id', 'type', 'language', 'color', 'icon', 'notes', 'is_disabled') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + url = sgqlc.types.Field(String, graphql_name='url') + site = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='site') + site_id = sgqlc.types.Field(Int, graphql_name='siteId') + type = sgqlc.types.Field(ExternalLinkType, graphql_name='type') + language = sgqlc.types.Field(String, graphql_name='language') + color = sgqlc.types.Field(String, graphql_name='color') + icon = sgqlc.types.Field(String, graphql_name='icon') + notes = sgqlc.types.Field(String, graphql_name='notes') + is_disabled = sgqlc.types.Field(Boolean, graphql_name='isDisabled') + + +class MediaList(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'media_id', 'status', 'score', 'progress', 'progress_volumes', 'repeat', 'priority', 'private', 'notes', 'hidden_from_status_lists', 'custom_lists', 'advanced_scores', 'started_at', 'completed_at', 'updated_at', 'created_at', 'media', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + status = sgqlc.types.Field(MediaListStatus, graphql_name='status') + score = sgqlc.types.Field(Float, graphql_name='score', args=sgqlc.types.ArgDict(( + ('format', sgqlc.types.Arg(ScoreFormat, graphql_name='format', default=None)), +)) + ) + progress = sgqlc.types.Field(Int, graphql_name='progress') + progress_volumes = sgqlc.types.Field(Int, graphql_name='progressVolumes') + repeat = sgqlc.types.Field(Int, graphql_name='repeat') + priority = sgqlc.types.Field(Int, graphql_name='priority') + private = sgqlc.types.Field(Boolean, graphql_name='private') + notes = sgqlc.types.Field(String, graphql_name='notes') + hidden_from_status_lists = sgqlc.types.Field(Boolean, graphql_name='hiddenFromStatusLists') + custom_lists = sgqlc.types.Field(Json, graphql_name='customLists', args=sgqlc.types.ArgDict(( + ('as_array', sgqlc.types.Arg(Boolean, graphql_name='asArray', default=None)), +)) + ) + advanced_scores = sgqlc.types.Field(Json, graphql_name='advancedScores') + started_at = sgqlc.types.Field(FuzzyDate, graphql_name='startedAt') + completed_at = sgqlc.types.Field(FuzzyDate, graphql_name='completedAt') + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + media = sgqlc.types.Field(Media, graphql_name='media') + user = sgqlc.types.Field('User', graphql_name='user') + + +class MediaListCollection(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('lists', 'user', 'has_next_chunk', 'status_lists', 'custom_lists') + lists = sgqlc.types.Field(sgqlc.types.list_of('MediaListGroup'), graphql_name='lists') + user = sgqlc.types.Field('User', graphql_name='user') + has_next_chunk = sgqlc.types.Field(Boolean, graphql_name='hasNextChunk') + status_lists = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.list_of(MediaList)), graphql_name='statusLists', args=sgqlc.types.ArgDict(( + ('as_array', sgqlc.types.Arg(Boolean, graphql_name='asArray', default=None)), +)) + ) + custom_lists = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.list_of(MediaList)), graphql_name='customLists', args=sgqlc.types.ArgDict(( + ('as_array', sgqlc.types.Arg(Boolean, graphql_name='asArray', default=None)), +)) + ) + + +class MediaListGroup(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('entries', 'name', 'is_custom_list', 'is_split_completed_list', 'status') + entries = sgqlc.types.Field(sgqlc.types.list_of(MediaList), graphql_name='entries') + name = sgqlc.types.Field(String, graphql_name='name') + is_custom_list = sgqlc.types.Field(Boolean, graphql_name='isCustomList') + is_split_completed_list = sgqlc.types.Field(Boolean, graphql_name='isSplitCompletedList') + status = sgqlc.types.Field(MediaListStatus, graphql_name='status') + + +class MediaListOptions(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('score_format', 'row_order', 'use_legacy_lists', 'anime_list', 'manga_list', 'shared_theme', 'shared_theme_enabled') + score_format = sgqlc.types.Field(ScoreFormat, graphql_name='scoreFormat') + row_order = sgqlc.types.Field(String, graphql_name='rowOrder') + use_legacy_lists = sgqlc.types.Field(Boolean, graphql_name='useLegacyLists') + anime_list = sgqlc.types.Field('MediaListTypeOptions', graphql_name='animeList') + manga_list = sgqlc.types.Field('MediaListTypeOptions', graphql_name='mangaList') + shared_theme = sgqlc.types.Field(Json, graphql_name='sharedTheme') + shared_theme_enabled = sgqlc.types.Field(Boolean, graphql_name='sharedThemeEnabled') + + +class MediaListTypeOptions(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('section_order', 'split_completed_section_by_format', 'theme', 'custom_lists', 'advanced_scoring', 'advanced_scoring_enabled') + section_order = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='sectionOrder') + split_completed_section_by_format = sgqlc.types.Field(Boolean, graphql_name='splitCompletedSectionByFormat') + theme = sgqlc.types.Field(Json, graphql_name='theme') + custom_lists = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='customLists') + advanced_scoring = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='advancedScoring') + advanced_scoring_enabled = sgqlc.types.Field(Boolean, graphql_name='advancedScoringEnabled') + + +class MediaMergeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'type', 'media_id', 'deleted_media_titles', 'context', 'reason', 'created_at', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + deleted_media_titles = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='deletedMediaTitles') + context = sgqlc.types.Field(String, graphql_name='context') + reason = sgqlc.types.Field(String, graphql_name='reason') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class MediaRank(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'rank', 'type', 'format', 'year', 'season', 'all_time', 'context') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + rank = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='rank') + type = sgqlc.types.Field(sgqlc.types.non_null(MediaRankType), graphql_name='type') + format = sgqlc.types.Field(sgqlc.types.non_null(MediaFormat), graphql_name='format') + year = sgqlc.types.Field(Int, graphql_name='year') + season = sgqlc.types.Field(MediaSeason, graphql_name='season') + all_time = sgqlc.types.Field(Boolean, graphql_name='allTime') + context = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='context') + + +class MediaStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('score_distribution', 'status_distribution', 'airing_progression') + score_distribution = sgqlc.types.Field(sgqlc.types.list_of('ScoreDistribution'), graphql_name='scoreDistribution') + status_distribution = sgqlc.types.Field(sgqlc.types.list_of('StatusDistribution'), graphql_name='statusDistribution') + airing_progression = sgqlc.types.Field(sgqlc.types.list_of(AiringProgression), graphql_name='airingProgression') + + +class MediaStreamingEpisode(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('title', 'thumbnail', 'url', 'site') + title = sgqlc.types.Field(String, graphql_name='title') + thumbnail = sgqlc.types.Field(String, graphql_name='thumbnail') + url = sgqlc.types.Field(String, graphql_name='url') + site = sgqlc.types.Field(String, graphql_name='site') + + +class MediaSubmission(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'submitter', 'assignee', 'status', 'submitter_stats', 'notes', 'source', 'changes', 'locked', 'media', 'submission', 'characters', 'staff', 'studios', 'relations', 'external_links', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + submitter = sgqlc.types.Field('User', graphql_name='submitter') + assignee = sgqlc.types.Field('User', graphql_name='assignee') + status = sgqlc.types.Field(SubmissionStatus, graphql_name='status') + submitter_stats = sgqlc.types.Field(Json, graphql_name='submitterStats') + notes = sgqlc.types.Field(String, graphql_name='notes') + source = sgqlc.types.Field(String, graphql_name='source') + changes = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='changes') + locked = sgqlc.types.Field(Boolean, graphql_name='locked') + media = sgqlc.types.Field(Media, graphql_name='media') + submission = sgqlc.types.Field(Media, graphql_name='submission') + characters = sgqlc.types.Field(sgqlc.types.list_of('MediaSubmissionComparison'), graphql_name='characters') + staff = sgqlc.types.Field(sgqlc.types.list_of('MediaSubmissionComparison'), graphql_name='staff') + studios = sgqlc.types.Field(sgqlc.types.list_of('MediaSubmissionComparison'), graphql_name='studios') + relations = sgqlc.types.Field(sgqlc.types.list_of(MediaEdge), graphql_name='relations') + external_links = sgqlc.types.Field(sgqlc.types.list_of('MediaSubmissionComparison'), graphql_name='externalLinks') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + + +class MediaSubmissionComparison(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('submission', 'character', 'staff', 'studio', 'external_link') + submission = sgqlc.types.Field('MediaSubmissionEdge', graphql_name='submission') + character = sgqlc.types.Field(MediaCharacter, graphql_name='character') + staff = sgqlc.types.Field('StaffEdge', graphql_name='staff') + studio = sgqlc.types.Field('StudioEdge', graphql_name='studio') + external_link = sgqlc.types.Field(MediaExternalLink, graphql_name='externalLink') + + +class MediaSubmissionEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'character_role', 'staff_role', 'role_notes', 'dub_group', 'character_name', 'is_main', 'character', 'character_submission', 'voice_actor', 'voice_actor_submission', 'staff', 'staff_submission', 'studio', 'external_link', 'media') + id = sgqlc.types.Field(Int, graphql_name='id') + character_role = sgqlc.types.Field(CharacterRole, graphql_name='characterRole') + staff_role = sgqlc.types.Field(String, graphql_name='staffRole') + role_notes = sgqlc.types.Field(String, graphql_name='roleNotes') + dub_group = sgqlc.types.Field(String, graphql_name='dubGroup') + character_name = sgqlc.types.Field(String, graphql_name='characterName') + is_main = sgqlc.types.Field(Boolean, graphql_name='isMain') + character = sgqlc.types.Field(Character, graphql_name='character') + character_submission = sgqlc.types.Field(Character, graphql_name='characterSubmission') + voice_actor = sgqlc.types.Field('Staff', graphql_name='voiceActor') + voice_actor_submission = sgqlc.types.Field('Staff', graphql_name='voiceActorSubmission') + staff = sgqlc.types.Field('Staff', graphql_name='staff') + staff_submission = sgqlc.types.Field('Staff', graphql_name='staffSubmission') + studio = sgqlc.types.Field('Studio', graphql_name='studio') + external_link = sgqlc.types.Field(MediaExternalLink, graphql_name='externalLink') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class MediaTag(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name', 'description', 'category', 'rank', 'is_general_spoiler', 'is_media_spoiler', 'is_adult', 'user_id') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') + description = sgqlc.types.Field(String, graphql_name='description') + category = sgqlc.types.Field(String, graphql_name='category') + rank = sgqlc.types.Field(Int, graphql_name='rank') + is_general_spoiler = sgqlc.types.Field(Boolean, graphql_name='isGeneralSpoiler') + is_media_spoiler = sgqlc.types.Field(Boolean, graphql_name='isMediaSpoiler') + is_adult = sgqlc.types.Field(Boolean, graphql_name='isAdult') + user_id = sgqlc.types.Field(Int, graphql_name='userId') + + +class MediaTitle(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('romaji', 'english', 'native', 'user_preferred') + romaji = sgqlc.types.Field(String, graphql_name='romaji', args=sgqlc.types.ArgDict(( + ('stylised', sgqlc.types.Arg(Boolean, graphql_name='stylised', default=None)), +)) + ) + english = sgqlc.types.Field(String, graphql_name='english', args=sgqlc.types.ArgDict(( + ('stylised', sgqlc.types.Arg(Boolean, graphql_name='stylised', default=None)), +)) + ) + native = sgqlc.types.Field(String, graphql_name='native', args=sgqlc.types.ArgDict(( + ('stylised', sgqlc.types.Arg(Boolean, graphql_name='stylised', default=None)), +)) + ) + user_preferred = sgqlc.types.Field(String, graphql_name='userPreferred') + + +class MediaTrailer(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'site', 'thumbnail') + id = sgqlc.types.Field(String, graphql_name='id') + site = sgqlc.types.Field(String, graphql_name='site') + thumbnail = sgqlc.types.Field(String, graphql_name='thumbnail') + + +class MediaTrend(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('media_id', 'date', 'trending', 'average_score', 'popularity', 'in_progress', 'releasing', 'episode', 'media') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + date = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='date') + trending = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='trending') + average_score = sgqlc.types.Field(Int, graphql_name='averageScore') + popularity = sgqlc.types.Field(Int, graphql_name='popularity') + in_progress = sgqlc.types.Field(Int, graphql_name='inProgress') + releasing = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='releasing') + episode = sgqlc.types.Field(Int, graphql_name='episode') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class MediaTrendConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('MediaTrendEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(MediaTrend), graphql_name='nodes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + + +class MediaTrendEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node',) + node = sgqlc.types.Field(MediaTrend, graphql_name='node') + + +class MessageActivity(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'recipient_id', 'messenger_id', 'type', 'reply_count', 'message', 'is_locked', 'is_subscribed', 'like_count', 'is_liked', 'is_private', 'site_url', 'created_at', 'recipient', 'messenger', 'replies', 'likes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + recipient_id = sgqlc.types.Field(Int, graphql_name='recipientId') + messenger_id = sgqlc.types.Field(Int, graphql_name='messengerId') + type = sgqlc.types.Field(ActivityType, graphql_name='type') + reply_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='replyCount') + message = sgqlc.types.Field(String, graphql_name='message', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + is_subscribed = sgqlc.types.Field(Boolean, graphql_name='isSubscribed') + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + is_private = sgqlc.types.Field(Boolean, graphql_name='isPrivate') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + recipient = sgqlc.types.Field('User', graphql_name='recipient') + messenger = sgqlc.types.Field('User', graphql_name='messenger') + replies = sgqlc.types.Field(sgqlc.types.list_of(ActivityReply), graphql_name='replies') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + + +class ModAction(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user', 'mod', 'type', 'object_id', 'object_type', 'data', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user = sgqlc.types.Field('User', graphql_name='user') + mod = sgqlc.types.Field('User', graphql_name='mod') + type = sgqlc.types.Field(ModActionType, graphql_name='type') + object_id = sgqlc.types.Field(Int, graphql_name='objectId') + object_type = sgqlc.types.Field(String, graphql_name='objectType') + data = sgqlc.types.Field(String, graphql_name='data') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + + +class Mutation(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('update_user', 'save_media_list_entry', 'update_media_list_entries', 'delete_media_list_entry', 'delete_custom_list', 'save_text_activity', 'save_message_activity', 'save_list_activity', 'delete_activity', 'toggle_activity_pin', 'toggle_activity_subscription', 'save_activity_reply', 'delete_activity_reply', 'toggle_like', 'toggle_like_v2', 'toggle_follow', 'toggle_favourite', 'update_favourite_order', 'save_review', 'delete_review', 'rate_review', 'save_recommendation', 'save_thread', 'delete_thread', 'toggle_thread_subscription', 'save_thread_comment', 'delete_thread_comment', 'update_ani_chart_settings', 'update_ani_chart_highlights') + update_user = sgqlc.types.Field('User', graphql_name='UpdateUser', args=sgqlc.types.ArgDict(( + ('about', sgqlc.types.Arg(String, graphql_name='about', default=None)), + ('title_language', sgqlc.types.Arg(UserTitleLanguage, graphql_name='titleLanguage', default=None)), + ('display_adult_content', sgqlc.types.Arg(Boolean, graphql_name='displayAdultContent', default=None)), + ('airing_notifications', sgqlc.types.Arg(Boolean, graphql_name='airingNotifications', default=None)), + ('score_format', sgqlc.types.Arg(ScoreFormat, graphql_name='scoreFormat', default=None)), + ('row_order', sgqlc.types.Arg(String, graphql_name='rowOrder', default=None)), + ('profile_color', sgqlc.types.Arg(String, graphql_name='profileColor', default=None)), + ('donator_badge', sgqlc.types.Arg(String, graphql_name='donatorBadge', default=None)), + ('notification_options', sgqlc.types.Arg(sgqlc.types.list_of(NotificationOptionInput), graphql_name='notificationOptions', default=None)), + ('timezone', sgqlc.types.Arg(String, graphql_name='timezone', default=None)), + ('activity_merge_time', sgqlc.types.Arg(Int, graphql_name='activityMergeTime', default=None)), + ('anime_list_options', sgqlc.types.Arg(MediaListOptionsInput, graphql_name='animeListOptions', default=None)), + ('manga_list_options', sgqlc.types.Arg(MediaListOptionsInput, graphql_name='mangaListOptions', default=None)), + ('staff_name_language', sgqlc.types.Arg(UserStaffNameLanguage, graphql_name='staffNameLanguage', default=None)), + ('restrict_messages_to_following', sgqlc.types.Arg(Boolean, graphql_name='restrictMessagesToFollowing', default=None)), + ('disabled_list_activity', sgqlc.types.Arg(sgqlc.types.list_of(ListActivityOptionInput), graphql_name='disabledListActivity', default=None)), +)) + ) + save_media_list_entry = sgqlc.types.Field(MediaList, graphql_name='SaveMediaListEntry', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('score', sgqlc.types.Arg(Float, graphql_name='score', default=None)), + ('score_raw', sgqlc.types.Arg(Int, graphql_name='scoreRaw', default=None)), + ('progress', sgqlc.types.Arg(Int, graphql_name='progress', default=None)), + ('progress_volumes', sgqlc.types.Arg(Int, graphql_name='progressVolumes', default=None)), + ('repeat', sgqlc.types.Arg(Int, graphql_name='repeat', default=None)), + ('priority', sgqlc.types.Arg(Int, graphql_name='priority', default=None)), + ('private', sgqlc.types.Arg(Boolean, graphql_name='private', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('hidden_from_status_lists', sgqlc.types.Arg(Boolean, graphql_name='hiddenFromStatusLists', default=None)), + ('custom_lists', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='customLists', default=None)), + ('advanced_scores', sgqlc.types.Arg(sgqlc.types.list_of(Float), graphql_name='advancedScores', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInput, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInput, graphql_name='completedAt', default=None)), +)) + ) + update_media_list_entries = sgqlc.types.Field(sgqlc.types.list_of(MediaList), graphql_name='UpdateMediaListEntries', args=sgqlc.types.ArgDict(( + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('score', sgqlc.types.Arg(Float, graphql_name='score', default=None)), + ('score_raw', sgqlc.types.Arg(Int, graphql_name='scoreRaw', default=None)), + ('progress', sgqlc.types.Arg(Int, graphql_name='progress', default=None)), + ('progress_volumes', sgqlc.types.Arg(Int, graphql_name='progressVolumes', default=None)), + ('repeat', sgqlc.types.Arg(Int, graphql_name='repeat', default=None)), + ('priority', sgqlc.types.Arg(Int, graphql_name='priority', default=None)), + ('private', sgqlc.types.Arg(Boolean, graphql_name='private', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('hidden_from_status_lists', sgqlc.types.Arg(Boolean, graphql_name='hiddenFromStatusLists', default=None)), + ('advanced_scores', sgqlc.types.Arg(sgqlc.types.list_of(Float), graphql_name='advancedScores', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInput, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInput, graphql_name='completedAt', default=None)), + ('ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='ids', default=None)), +)) + ) + delete_media_list_entry = sgqlc.types.Field(Deleted, graphql_name='DeleteMediaListEntry', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + delete_custom_list = sgqlc.types.Field(Deleted, graphql_name='DeleteCustomList', args=sgqlc.types.ArgDict(( + ('custom_list', sgqlc.types.Arg(String, graphql_name='customList', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), +)) + ) + save_text_activity = sgqlc.types.Field('TextActivity', graphql_name='SaveTextActivity', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('text', sgqlc.types.Arg(String, graphql_name='text', default=None)), + ('locked', sgqlc.types.Arg(Boolean, graphql_name='locked', default=None)), +)) + ) + save_message_activity = sgqlc.types.Field(MessageActivity, graphql_name='SaveMessageActivity', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('message', sgqlc.types.Arg(String, graphql_name='message', default=None)), + ('recipient_id', sgqlc.types.Arg(Int, graphql_name='recipientId', default=None)), + ('private', sgqlc.types.Arg(Boolean, graphql_name='private', default=None)), + ('locked', sgqlc.types.Arg(Boolean, graphql_name='locked', default=None)), + ('as_mod', sgqlc.types.Arg(Boolean, graphql_name='asMod', default=None)), +)) + ) + save_list_activity = sgqlc.types.Field(ListActivity, graphql_name='SaveListActivity', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('locked', sgqlc.types.Arg(Boolean, graphql_name='locked', default=None)), +)) + ) + delete_activity = sgqlc.types.Field(Deleted, graphql_name='DeleteActivity', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + toggle_activity_pin = sgqlc.types.Field('ActivityUnion', graphql_name='ToggleActivityPin', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('pinned', sgqlc.types.Arg(Boolean, graphql_name='pinned', default=None)), +)) + ) + toggle_activity_subscription = sgqlc.types.Field('ActivityUnion', graphql_name='ToggleActivitySubscription', args=sgqlc.types.ArgDict(( + ('activity_id', sgqlc.types.Arg(Int, graphql_name='activityId', default=None)), + ('subscribe', sgqlc.types.Arg(Boolean, graphql_name='subscribe', default=None)), +)) + ) + save_activity_reply = sgqlc.types.Field(ActivityReply, graphql_name='SaveActivityReply', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('activity_id', sgqlc.types.Arg(Int, graphql_name='activityId', default=None)), + ('text', sgqlc.types.Arg(String, graphql_name='text', default=None)), + ('as_mod', sgqlc.types.Arg(Boolean, graphql_name='asMod', default=None)), +)) + ) + delete_activity_reply = sgqlc.types.Field(Deleted, graphql_name='DeleteActivityReply', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + toggle_like = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='ToggleLike', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('type', sgqlc.types.Arg(LikeableType, graphql_name='type', default=None)), +)) + ) + toggle_like_v2 = sgqlc.types.Field('LikeableUnion', graphql_name='ToggleLikeV2', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('type', sgqlc.types.Arg(LikeableType, graphql_name='type', default=None)), +)) + ) + toggle_follow = sgqlc.types.Field('User', graphql_name='ToggleFollow', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), +)) + ) + toggle_favourite = sgqlc.types.Field(Favourites, graphql_name='ToggleFavourite', args=sgqlc.types.ArgDict(( + ('anime_id', sgqlc.types.Arg(Int, graphql_name='animeId', default=None)), + ('manga_id', sgqlc.types.Arg(Int, graphql_name='mangaId', default=None)), + ('character_id', sgqlc.types.Arg(Int, graphql_name='characterId', default=None)), + ('staff_id', sgqlc.types.Arg(Int, graphql_name='staffId', default=None)), + ('studio_id', sgqlc.types.Arg(Int, graphql_name='studioId', default=None)), +)) + ) + update_favourite_order = sgqlc.types.Field(Favourites, graphql_name='UpdateFavouriteOrder', args=sgqlc.types.ArgDict(( + ('anime_ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='animeIds', default=None)), + ('manga_ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mangaIds', default=None)), + ('character_ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='characterIds', default=None)), + ('staff_ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='staffIds', default=None)), + ('studio_ids', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='studioIds', default=None)), + ('anime_order', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='animeOrder', default=None)), + ('manga_order', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mangaOrder', default=None)), + ('character_order', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='characterOrder', default=None)), + ('staff_order', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='staffOrder', default=None)), + ('studio_order', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='studioOrder', default=None)), +)) + ) + save_review = sgqlc.types.Field('Review', graphql_name='SaveReview', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('body', sgqlc.types.Arg(String, graphql_name='body', default=None)), + ('summary', sgqlc.types.Arg(String, graphql_name='summary', default=None)), + ('score', sgqlc.types.Arg(Int, graphql_name='score', default=None)), + ('private', sgqlc.types.Arg(Boolean, graphql_name='private', default=None)), +)) + ) + delete_review = sgqlc.types.Field(Deleted, graphql_name='DeleteReview', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + rate_review = sgqlc.types.Field('Review', graphql_name='RateReview', args=sgqlc.types.ArgDict(( + ('review_id', sgqlc.types.Arg(Int, graphql_name='reviewId', default=None)), + ('rating', sgqlc.types.Arg(ReviewRating, graphql_name='rating', default=None)), +)) + ) + save_recommendation = sgqlc.types.Field('Recommendation', graphql_name='SaveRecommendation', args=sgqlc.types.ArgDict(( + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('media_recommendation_id', sgqlc.types.Arg(Int, graphql_name='mediaRecommendationId', default=None)), + ('rating', sgqlc.types.Arg(RecommendationRating, graphql_name='rating', default=None)), +)) + ) + save_thread = sgqlc.types.Field('Thread', graphql_name='SaveThread', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('title', sgqlc.types.Arg(String, graphql_name='title', default=None)), + ('body', sgqlc.types.Arg(String, graphql_name='body', default=None)), + ('categories', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='categories', default=None)), + ('media_categories', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaCategories', default=None)), + ('sticky', sgqlc.types.Arg(Boolean, graphql_name='sticky', default=None)), + ('locked', sgqlc.types.Arg(Boolean, graphql_name='locked', default=None)), +)) + ) + delete_thread = sgqlc.types.Field(Deleted, graphql_name='DeleteThread', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + toggle_thread_subscription = sgqlc.types.Field('Thread', graphql_name='ToggleThreadSubscription', args=sgqlc.types.ArgDict(( + ('thread_id', sgqlc.types.Arg(Int, graphql_name='threadId', default=None)), + ('subscribe', sgqlc.types.Arg(Boolean, graphql_name='subscribe', default=None)), +)) + ) + save_thread_comment = sgqlc.types.Field('ThreadComment', graphql_name='SaveThreadComment', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('thread_id', sgqlc.types.Arg(Int, graphql_name='threadId', default=None)), + ('parent_comment_id', sgqlc.types.Arg(Int, graphql_name='parentCommentId', default=None)), + ('comment', sgqlc.types.Arg(String, graphql_name='comment', default=None)), + ('locked', sgqlc.types.Arg(Boolean, graphql_name='locked', default=None)), +)) + ) + delete_thread_comment = sgqlc.types.Field(Deleted, graphql_name='DeleteThreadComment', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), +)) + ) + update_ani_chart_settings = sgqlc.types.Field(Json, graphql_name='UpdateAniChartSettings', args=sgqlc.types.ArgDict(( + ('title_language', sgqlc.types.Arg(String, graphql_name='titleLanguage', default=None)), + ('outgoing_link_provider', sgqlc.types.Arg(String, graphql_name='outgoingLinkProvider', default=None)), + ('theme', sgqlc.types.Arg(String, graphql_name='theme', default=None)), + ('sort', sgqlc.types.Arg(String, graphql_name='sort', default=None)), +)) + ) + update_ani_chart_highlights = sgqlc.types.Field(Json, graphql_name='UpdateAniChartHighlights', args=sgqlc.types.ArgDict(( + ('highlights', sgqlc.types.Arg(sgqlc.types.list_of(AniChartHighlightInput), graphql_name='highlights', default=None)), +)) + ) + + +class NotificationOption(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('type', 'enabled') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + enabled = sgqlc.types.Field(Boolean, graphql_name='enabled') + + +class Page(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('page_info', 'users', 'media', 'characters', 'staff', 'studios', 'media_list', 'airing_schedules', 'media_trends', 'notifications', 'followers', 'following', 'activities', 'activity_replies', 'threads', 'thread_comments', 'reviews', 'recommendations', 'likes') + page_info = sgqlc.types.Field('PageInfo', graphql_name='pageInfo') + users = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='users', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('name', sgqlc.types.Arg(String, graphql_name='name', default=None)), + ('is_moderator', sgqlc.types.Arg(Boolean, graphql_name='isModerator', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + media = sgqlc.types.Field(sgqlc.types.list_of(Media), graphql_name='media', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('id_mal', sgqlc.types.Arg(Int, graphql_name='idMal', default=None)), + ('start_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate', default=None)), + ('end_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate', default=None)), + ('season', sgqlc.types.Arg(MediaSeason, graphql_name='season', default=None)), + ('season_year', sgqlc.types.Arg(Int, graphql_name='seasonYear', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('format', sgqlc.types.Arg(MediaFormat, graphql_name='format', default=None)), + ('status', sgqlc.types.Arg(MediaStatus, graphql_name='status', default=None)), + ('episodes', sgqlc.types.Arg(Int, graphql_name='episodes', default=None)), + ('duration', sgqlc.types.Arg(Int, graphql_name='duration', default=None)), + ('chapters', sgqlc.types.Arg(Int, graphql_name='chapters', default=None)), + ('volumes', sgqlc.types.Arg(Int, graphql_name='volumes', default=None)), + ('is_adult', sgqlc.types.Arg(Boolean, graphql_name='isAdult', default=None)), + ('genre', sgqlc.types.Arg(String, graphql_name='genre', default=None)), + ('tag', sgqlc.types.Arg(String, graphql_name='tag', default=None)), + ('minimum_tag_rank', sgqlc.types.Arg(Int, graphql_name='minimumTagRank', default=None)), + ('tag_category', sgqlc.types.Arg(String, graphql_name='tagCategory', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('licensed_by', sgqlc.types.Arg(String, graphql_name='licensedBy', default=None)), + ('licensed_by_id', sgqlc.types.Arg(Int, graphql_name='licensedById', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('source', sgqlc.types.Arg(MediaSource, graphql_name='source', default=None)), + ('country_of_origin', sgqlc.types.Arg(CountryCode, graphql_name='countryOfOrigin', default=None)), + ('is_licensed', sgqlc.types.Arg(Boolean, graphql_name='isLicensed', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('id_mal_not', sgqlc.types.Arg(Int, graphql_name='idMal_not', default=None)), + ('id_mal_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_in', default=None)), + ('id_mal_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_not_in', default=None)), + ('start_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_greater', default=None)), + ('start_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_lesser', default=None)), + ('start_date_like', sgqlc.types.Arg(String, graphql_name='startDate_like', default=None)), + ('end_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_greater', default=None)), + ('end_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_lesser', default=None)), + ('end_date_like', sgqlc.types.Arg(String, graphql_name='endDate_like', default=None)), + ('format_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_in', default=None)), + ('format_not', sgqlc.types.Arg(MediaFormat, graphql_name='format_not', default=None)), + ('format_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_not_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaStatus, graphql_name='status_not', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_not_in', default=None)), + ('episodes_greater', sgqlc.types.Arg(Int, graphql_name='episodes_greater', default=None)), + ('episodes_lesser', sgqlc.types.Arg(Int, graphql_name='episodes_lesser', default=None)), + ('duration_greater', sgqlc.types.Arg(Int, graphql_name='duration_greater', default=None)), + ('duration_lesser', sgqlc.types.Arg(Int, graphql_name='duration_lesser', default=None)), + ('chapters_greater', sgqlc.types.Arg(Int, graphql_name='chapters_greater', default=None)), + ('chapters_lesser', sgqlc.types.Arg(Int, graphql_name='chapters_lesser', default=None)), + ('volumes_greater', sgqlc.types.Arg(Int, graphql_name='volumes_greater', default=None)), + ('volumes_lesser', sgqlc.types.Arg(Int, graphql_name='volumes_lesser', default=None)), + ('genre_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_in', default=None)), + ('genre_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_not_in', default=None)), + ('tag_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_in', default=None)), + ('tag_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_not_in', default=None)), + ('tag_category_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_in', default=None)), + ('tag_category_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_not_in', default=None)), + ('licensed_by_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='licensedBy_in', default=None)), + ('licensed_by_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='licensedById_in', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('source_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaSource), graphql_name='source_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), +)) + ) + characters = sgqlc.types.Field(sgqlc.types.list_of(Character), graphql_name='characters', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(CharacterSort), graphql_name='sort', default=None)), +)) + ) + staff = sgqlc.types.Field(sgqlc.types.list_of('Staff'), graphql_name='staff', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + studios = sgqlc.types.Field(sgqlc.types.list_of('Studio'), graphql_name='studios', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StudioSort), graphql_name='sort', default=None)), +)) + ) + media_list = sgqlc.types.Field(sgqlc.types.list_of(MediaList), graphql_name='mediaList', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('user_name', sgqlc.types.Arg(String, graphql_name='userName', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt', default=None)), + ('compare_with_auth_list', sgqlc.types.Arg(Boolean, graphql_name='compareWithAuthList', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_in', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_not_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaListStatus, graphql_name='status_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('notes_like', sgqlc.types.Arg(String, graphql_name='notes_like', default=None)), + ('started_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_greater', default=None)), + ('started_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_lesser', default=None)), + ('started_at_like', sgqlc.types.Arg(String, graphql_name='startedAt_like', default=None)), + ('completed_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_greater', default=None)), + ('completed_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_lesser', default=None)), + ('completed_at_like', sgqlc.types.Arg(String, graphql_name='completedAt_like', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaListSort), graphql_name='sort', default=None)), +)) + ) + airing_schedules = sgqlc.types.Field(sgqlc.types.list_of(AiringSchedule), graphql_name='airingSchedules', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('airing_at', sgqlc.types.Arg(Int, graphql_name='airingAt', default=None)), + ('not_yet_aired', sgqlc.types.Arg(Boolean, graphql_name='notYetAired', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('episode_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_in', default=None)), + ('episode_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_not_in', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('airing_at_greater', sgqlc.types.Arg(Int, graphql_name='airingAt_greater', default=None)), + ('airing_at_lesser', sgqlc.types.Arg(Int, graphql_name='airingAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(AiringSort), graphql_name='sort', default=None)), +)) + ) + media_trends = sgqlc.types.Field(sgqlc.types.list_of(MediaTrend), graphql_name='mediaTrends', args=sgqlc.types.ArgDict(( + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('date', sgqlc.types.Arg(Int, graphql_name='date', default=None)), + ('trending', sgqlc.types.Arg(Int, graphql_name='trending', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('releasing', sgqlc.types.Arg(Boolean, graphql_name='releasing', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('date_greater', sgqlc.types.Arg(Int, graphql_name='date_greater', default=None)), + ('date_lesser', sgqlc.types.Arg(Int, graphql_name='date_lesser', default=None)), + ('trending_greater', sgqlc.types.Arg(Int, graphql_name='trending_greater', default=None)), + ('trending_lesser', sgqlc.types.Arg(Int, graphql_name='trending_lesser', default=None)), + ('trending_not', sgqlc.types.Arg(Int, graphql_name='trending_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaTrendSort), graphql_name='sort', default=None)), +)) + ) + notifications = sgqlc.types.Field(sgqlc.types.list_of('NotificationUnion'), graphql_name='notifications', args=sgqlc.types.ArgDict(( + ('type', sgqlc.types.Arg(NotificationType, graphql_name='type', default=None)), + ('reset_notification_count', sgqlc.types.Arg(Boolean, graphql_name='resetNotificationCount', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(NotificationType), graphql_name='type_in', default=None)), +)) + ) + followers = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='followers', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + following = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='following', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + activities = sgqlc.types.Field(sgqlc.types.list_of('ActivityUnion'), graphql_name='activities', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('messenger_id', sgqlc.types.Arg(Int, graphql_name='messengerId', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('type', sgqlc.types.Arg(ActivityType, graphql_name='type', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('has_replies', sgqlc.types.Arg(Boolean, graphql_name='hasReplies', default=None)), + ('has_replies_or_type_text', sgqlc.types.Arg(Boolean, graphql_name='hasRepliesOrTypeText', default=None)), + ('created_at', sgqlc.types.Arg(Int, graphql_name='createdAt', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('user_id_not', sgqlc.types.Arg(Int, graphql_name='userId_not', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('user_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_not_in', default=None)), + ('messenger_id_not', sgqlc.types.Arg(Int, graphql_name='messengerId_not', default=None)), + ('messenger_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_in', default=None)), + ('messenger_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('type_not', sgqlc.types.Arg(ActivityType, graphql_name='type_not', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_in', default=None)), + ('type_not_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_not_in', default=None)), + ('created_at_greater', sgqlc.types.Arg(Int, graphql_name='createdAt_greater', default=None)), + ('created_at_lesser', sgqlc.types.Arg(Int, graphql_name='createdAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ActivitySort), graphql_name='sort', default=None)), +)) + ) + activity_replies = sgqlc.types.Field(sgqlc.types.list_of(ActivityReply), graphql_name='activityReplies', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('activity_id', sgqlc.types.Arg(Int, graphql_name='activityId', default=None)), +)) + ) + threads = sgqlc.types.Field(sgqlc.types.list_of('Thread'), graphql_name='threads', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('reply_user_id', sgqlc.types.Arg(Int, graphql_name='replyUserId', default=None)), + ('subscribed', sgqlc.types.Arg(Boolean, graphql_name='subscribed', default=None)), + ('category_id', sgqlc.types.Arg(Int, graphql_name='categoryId', default=None)), + ('media_category_id', sgqlc.types.Arg(Int, graphql_name='mediaCategoryId', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadSort), graphql_name='sort', default=None)), +)) + ) + thread_comments = sgqlc.types.Field(sgqlc.types.list_of('ThreadComment'), graphql_name='threadComments', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('thread_id', sgqlc.types.Arg(Int, graphql_name='threadId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadCommentSort), graphql_name='sort', default=None)), +)) + ) + reviews = sgqlc.types.Field(sgqlc.types.list_of('Review'), graphql_name='reviews', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('media_type', sgqlc.types.Arg(MediaType, graphql_name='mediaType', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ReviewSort), graphql_name='sort', default=None)), +)) + ) + recommendations = sgqlc.types.Field(sgqlc.types.list_of('Recommendation'), graphql_name='recommendations', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('media_recommendation_id', sgqlc.types.Arg(Int, graphql_name='mediaRecommendationId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('rating', sgqlc.types.Arg(Int, graphql_name='rating', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('rating_greater', sgqlc.types.Arg(Int, graphql_name='rating_greater', default=None)), + ('rating_lesser', sgqlc.types.Arg(Int, graphql_name='rating_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(RecommendationSort), graphql_name='sort', default=None)), +)) + ) + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes', args=sgqlc.types.ArgDict(( + ('likeable_id', sgqlc.types.Arg(Int, graphql_name='likeableId', default=None)), + ('type', sgqlc.types.Arg(LikeableType, graphql_name='type', default=None)), +)) + ) + + +class PageInfo(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('total', 'per_page', 'current_page', 'last_page', 'has_next_page') + total = sgqlc.types.Field(Int, graphql_name='total') + per_page = sgqlc.types.Field(Int, graphql_name='perPage') + current_page = sgqlc.types.Field(Int, graphql_name='currentPage') + last_page = sgqlc.types.Field(Int, graphql_name='lastPage') + has_next_page = sgqlc.types.Field(Boolean, graphql_name='hasNextPage') + + +class ParsedMarkdown(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('html',) + html = sgqlc.types.Field(String, graphql_name='html') + + +class Query(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('page', 'media', 'media_trend', 'airing_schedule', 'character', 'staff', 'media_list', 'media_list_collection', 'genre_collection', 'media_tag_collection', 'user', 'viewer', 'notification', 'studio', 'review', 'activity', 'activity_reply', 'following', 'follower', 'thread', 'thread_comment', 'recommendation', 'like', 'markdown', 'ani_chart_user', 'site_statistics', 'external_link_source_collection') + page = sgqlc.types.Field('Page', graphql_name='Page', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + media = sgqlc.types.Field('Media', graphql_name='Media', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('id_mal', sgqlc.types.Arg(Int, graphql_name='idMal', default=None)), + ('start_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate', default=None)), + ('end_date', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate', default=None)), + ('season', sgqlc.types.Arg(MediaSeason, graphql_name='season', default=None)), + ('season_year', sgqlc.types.Arg(Int, graphql_name='seasonYear', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('format', sgqlc.types.Arg(MediaFormat, graphql_name='format', default=None)), + ('status', sgqlc.types.Arg(MediaStatus, graphql_name='status', default=None)), + ('episodes', sgqlc.types.Arg(Int, graphql_name='episodes', default=None)), + ('duration', sgqlc.types.Arg(Int, graphql_name='duration', default=None)), + ('chapters', sgqlc.types.Arg(Int, graphql_name='chapters', default=None)), + ('volumes', sgqlc.types.Arg(Int, graphql_name='volumes', default=None)), + ('is_adult', sgqlc.types.Arg(Boolean, graphql_name='isAdult', default=None)), + ('genre', sgqlc.types.Arg(String, graphql_name='genre', default=None)), + ('tag', sgqlc.types.Arg(String, graphql_name='tag', default=None)), + ('minimum_tag_rank', sgqlc.types.Arg(Int, graphql_name='minimumTagRank', default=None)), + ('tag_category', sgqlc.types.Arg(String, graphql_name='tagCategory', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('licensed_by', sgqlc.types.Arg(String, graphql_name='licensedBy', default=None)), + ('licensed_by_id', sgqlc.types.Arg(Int, graphql_name='licensedById', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('source', sgqlc.types.Arg(MediaSource, graphql_name='source', default=None)), + ('country_of_origin', sgqlc.types.Arg(CountryCode, graphql_name='countryOfOrigin', default=None)), + ('is_licensed', sgqlc.types.Arg(Boolean, graphql_name='isLicensed', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('id_mal_not', sgqlc.types.Arg(Int, graphql_name='idMal_not', default=None)), + ('id_mal_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_in', default=None)), + ('id_mal_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='idMal_not_in', default=None)), + ('start_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_greater', default=None)), + ('start_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startDate_lesser', default=None)), + ('start_date_like', sgqlc.types.Arg(String, graphql_name='startDate_like', default=None)), + ('end_date_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_greater', default=None)), + ('end_date_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='endDate_lesser', default=None)), + ('end_date_like', sgqlc.types.Arg(String, graphql_name='endDate_like', default=None)), + ('format_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_in', default=None)), + ('format_not', sgqlc.types.Arg(MediaFormat, graphql_name='format_not', default=None)), + ('format_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaFormat), graphql_name='format_not_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaStatus, graphql_name='status_not', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaStatus), graphql_name='status_not_in', default=None)), + ('episodes_greater', sgqlc.types.Arg(Int, graphql_name='episodes_greater', default=None)), + ('episodes_lesser', sgqlc.types.Arg(Int, graphql_name='episodes_lesser', default=None)), + ('duration_greater', sgqlc.types.Arg(Int, graphql_name='duration_greater', default=None)), + ('duration_lesser', sgqlc.types.Arg(Int, graphql_name='duration_lesser', default=None)), + ('chapters_greater', sgqlc.types.Arg(Int, graphql_name='chapters_greater', default=None)), + ('chapters_lesser', sgqlc.types.Arg(Int, graphql_name='chapters_lesser', default=None)), + ('volumes_greater', sgqlc.types.Arg(Int, graphql_name='volumes_greater', default=None)), + ('volumes_lesser', sgqlc.types.Arg(Int, graphql_name='volumes_lesser', default=None)), + ('genre_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_in', default=None)), + ('genre_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='genre_not_in', default=None)), + ('tag_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_in', default=None)), + ('tag_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tag_not_in', default=None)), + ('tag_category_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_in', default=None)), + ('tag_category_not_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='tagCategory_not_in', default=None)), + ('licensed_by_in', sgqlc.types.Arg(sgqlc.types.list_of(String), graphql_name='licensedBy_in', default=None)), + ('licensed_by_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='licensedById_in', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('source_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaSource), graphql_name='source_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), +)) + ) + media_trend = sgqlc.types.Field('MediaTrend', graphql_name='MediaTrend', args=sgqlc.types.ArgDict(( + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('date', sgqlc.types.Arg(Int, graphql_name='date', default=None)), + ('trending', sgqlc.types.Arg(Int, graphql_name='trending', default=None)), + ('average_score', sgqlc.types.Arg(Int, graphql_name='averageScore', default=None)), + ('popularity', sgqlc.types.Arg(Int, graphql_name='popularity', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('releasing', sgqlc.types.Arg(Boolean, graphql_name='releasing', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('date_greater', sgqlc.types.Arg(Int, graphql_name='date_greater', default=None)), + ('date_lesser', sgqlc.types.Arg(Int, graphql_name='date_lesser', default=None)), + ('trending_greater', sgqlc.types.Arg(Int, graphql_name='trending_greater', default=None)), + ('trending_lesser', sgqlc.types.Arg(Int, graphql_name='trending_lesser', default=None)), + ('trending_not', sgqlc.types.Arg(Int, graphql_name='trending_not', default=None)), + ('average_score_greater', sgqlc.types.Arg(Int, graphql_name='averageScore_greater', default=None)), + ('average_score_lesser', sgqlc.types.Arg(Int, graphql_name='averageScore_lesser', default=None)), + ('average_score_not', sgqlc.types.Arg(Int, graphql_name='averageScore_not', default=None)), + ('popularity_greater', sgqlc.types.Arg(Int, graphql_name='popularity_greater', default=None)), + ('popularity_lesser', sgqlc.types.Arg(Int, graphql_name='popularity_lesser', default=None)), + ('popularity_not', sgqlc.types.Arg(Int, graphql_name='popularity_not', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaTrendSort), graphql_name='sort', default=None)), +)) + ) + airing_schedule = sgqlc.types.Field('AiringSchedule', graphql_name='AiringSchedule', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('episode', sgqlc.types.Arg(Int, graphql_name='episode', default=None)), + ('airing_at', sgqlc.types.Arg(Int, graphql_name='airingAt', default=None)), + ('not_yet_aired', sgqlc.types.Arg(Boolean, graphql_name='notYetAired', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('episode_not', sgqlc.types.Arg(Int, graphql_name='episode_not', default=None)), + ('episode_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_in', default=None)), + ('episode_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='episode_not_in', default=None)), + ('episode_greater', sgqlc.types.Arg(Int, graphql_name='episode_greater', default=None)), + ('episode_lesser', sgqlc.types.Arg(Int, graphql_name='episode_lesser', default=None)), + ('airing_at_greater', sgqlc.types.Arg(Int, graphql_name='airingAt_greater', default=None)), + ('airing_at_lesser', sgqlc.types.Arg(Int, graphql_name='airingAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(AiringSort), graphql_name='sort', default=None)), +)) + ) + character = sgqlc.types.Field('Character', graphql_name='Character', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(CharacterSort), graphql_name='sort', default=None)), +)) + ) + staff = sgqlc.types.Field('Staff', graphql_name='Staff', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('is_birthday', sgqlc.types.Arg(Boolean, graphql_name='isBirthday', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StaffSort), graphql_name='sort', default=None)), +)) + ) + media_list = sgqlc.types.Field('MediaList', graphql_name='MediaList', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('user_name', sgqlc.types.Arg(String, graphql_name='userName', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt', default=None)), + ('compare_with_auth_list', sgqlc.types.Arg(Boolean, graphql_name='compareWithAuthList', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_in', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_not_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaListStatus, graphql_name='status_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('notes_like', sgqlc.types.Arg(String, graphql_name='notes_like', default=None)), + ('started_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_greater', default=None)), + ('started_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_lesser', default=None)), + ('started_at_like', sgqlc.types.Arg(String, graphql_name='startedAt_like', default=None)), + ('completed_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_greater', default=None)), + ('completed_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_lesser', default=None)), + ('completed_at_like', sgqlc.types.Arg(String, graphql_name='completedAt_like', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaListSort), graphql_name='sort', default=None)), +)) + ) + media_list_collection = sgqlc.types.Field('MediaListCollection', graphql_name='MediaListCollection', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('user_name', sgqlc.types.Arg(String, graphql_name='userName', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('status', sgqlc.types.Arg(MediaListStatus, graphql_name='status', default=None)), + ('notes', sgqlc.types.Arg(String, graphql_name='notes', default=None)), + ('started_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt', default=None)), + ('completed_at', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt', default=None)), + ('force_single_completed_list', sgqlc.types.Arg(Boolean, graphql_name='forceSingleCompletedList', default=None)), + ('chunk', sgqlc.types.Arg(Int, graphql_name='chunk', default=None)), + ('per_chunk', sgqlc.types.Arg(Int, graphql_name='perChunk', default=None)), + ('status_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_in', default=None)), + ('status_not_in', sgqlc.types.Arg(sgqlc.types.list_of(MediaListStatus), graphql_name='status_not_in', default=None)), + ('status_not', sgqlc.types.Arg(MediaListStatus, graphql_name='status_not', default=None)), + ('notes_like', sgqlc.types.Arg(String, graphql_name='notes_like', default=None)), + ('started_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_greater', default=None)), + ('started_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='startedAt_lesser', default=None)), + ('started_at_like', sgqlc.types.Arg(String, graphql_name='startedAt_like', default=None)), + ('completed_at_greater', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_greater', default=None)), + ('completed_at_lesser', sgqlc.types.Arg(FuzzyDateInt, graphql_name='completedAt_lesser', default=None)), + ('completed_at_like', sgqlc.types.Arg(String, graphql_name='completedAt_like', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaListSort), graphql_name='sort', default=None)), +)) + ) + genre_collection = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='GenreCollection') + media_tag_collection = sgqlc.types.Field(sgqlc.types.list_of(MediaTag), graphql_name='MediaTagCollection', args=sgqlc.types.ArgDict(( + ('status', sgqlc.types.Arg(Int, graphql_name='status', default=None)), +)) + ) + user = sgqlc.types.Field('User', graphql_name='User', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('name', sgqlc.types.Arg(String, graphql_name='name', default=None)), + ('is_moderator', sgqlc.types.Arg(Boolean, graphql_name='isModerator', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + viewer = sgqlc.types.Field('User', graphql_name='Viewer') + notification = sgqlc.types.Field('NotificationUnion', graphql_name='Notification', args=sgqlc.types.ArgDict(( + ('type', sgqlc.types.Arg(NotificationType, graphql_name='type', default=None)), + ('reset_notification_count', sgqlc.types.Arg(Boolean, graphql_name='resetNotificationCount', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(NotificationType), graphql_name='type_in', default=None)), +)) + ) + studio = sgqlc.types.Field('Studio', graphql_name='Studio', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(StudioSort), graphql_name='sort', default=None)), +)) + ) + review = sgqlc.types.Field('Review', graphql_name='Review', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('media_type', sgqlc.types.Arg(MediaType, graphql_name='mediaType', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ReviewSort), graphql_name='sort', default=None)), +)) + ) + activity = sgqlc.types.Field('ActivityUnion', graphql_name='Activity', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('messenger_id', sgqlc.types.Arg(Int, graphql_name='messengerId', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('type', sgqlc.types.Arg(ActivityType, graphql_name='type', default=None)), + ('is_following', sgqlc.types.Arg(Boolean, graphql_name='isFollowing', default=None)), + ('has_replies', sgqlc.types.Arg(Boolean, graphql_name='hasReplies', default=None)), + ('has_replies_or_type_text', sgqlc.types.Arg(Boolean, graphql_name='hasRepliesOrTypeText', default=None)), + ('created_at', sgqlc.types.Arg(Int, graphql_name='createdAt', default=None)), + ('id_not', sgqlc.types.Arg(Int, graphql_name='id_not', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_not_in', default=None)), + ('user_id_not', sgqlc.types.Arg(Int, graphql_name='userId_not', default=None)), + ('user_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_in', default=None)), + ('user_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='userId_not_in', default=None)), + ('messenger_id_not', sgqlc.types.Arg(Int, graphql_name='messengerId_not', default=None)), + ('messenger_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_in', default=None)), + ('messenger_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='messengerId_not_in', default=None)), + ('media_id_not', sgqlc.types.Arg(Int, graphql_name='mediaId_not', default=None)), + ('media_id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_in', default=None)), + ('media_id_not_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='mediaId_not_in', default=None)), + ('type_not', sgqlc.types.Arg(ActivityType, graphql_name='type_not', default=None)), + ('type_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_in', default=None)), + ('type_not_in', sgqlc.types.Arg(sgqlc.types.list_of(ActivityType), graphql_name='type_not_in', default=None)), + ('created_at_greater', sgqlc.types.Arg(Int, graphql_name='createdAt_greater', default=None)), + ('created_at_lesser', sgqlc.types.Arg(Int, graphql_name='createdAt_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ActivitySort), graphql_name='sort', default=None)), +)) + ) + activity_reply = sgqlc.types.Field('ActivityReply', graphql_name='ActivityReply', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('activity_id', sgqlc.types.Arg(Int, graphql_name='activityId', default=None)), +)) + ) + following = sgqlc.types.Field('User', graphql_name='Following', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + follower = sgqlc.types.Field('User', graphql_name='Follower', args=sgqlc.types.ArgDict(( + ('user_id', sgqlc.types.Arg(sgqlc.types.non_null(Int), graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserSort), graphql_name='sort', default=None)), +)) + ) + thread = sgqlc.types.Field('Thread', graphql_name='Thread', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('reply_user_id', sgqlc.types.Arg(Int, graphql_name='replyUserId', default=None)), + ('subscribed', sgqlc.types.Arg(Boolean, graphql_name='subscribed', default=None)), + ('category_id', sgqlc.types.Arg(Int, graphql_name='categoryId', default=None)), + ('media_category_id', sgqlc.types.Arg(Int, graphql_name='mediaCategoryId', default=None)), + ('search', sgqlc.types.Arg(String, graphql_name='search', default=None)), + ('id_in', sgqlc.types.Arg(sgqlc.types.list_of(Int), graphql_name='id_in', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadSort), graphql_name='sort', default=None)), +)) + ) + thread_comment = sgqlc.types.Field(sgqlc.types.list_of('ThreadComment'), graphql_name='ThreadComment', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('thread_id', sgqlc.types.Arg(Int, graphql_name='threadId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(ThreadCommentSort), graphql_name='sort', default=None)), +)) + ) + recommendation = sgqlc.types.Field('Recommendation', graphql_name='Recommendation', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('media_id', sgqlc.types.Arg(Int, graphql_name='mediaId', default=None)), + ('media_recommendation_id', sgqlc.types.Arg(Int, graphql_name='mediaRecommendationId', default=None)), + ('user_id', sgqlc.types.Arg(Int, graphql_name='userId', default=None)), + ('rating', sgqlc.types.Arg(Int, graphql_name='rating', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('rating_greater', sgqlc.types.Arg(Int, graphql_name='rating_greater', default=None)), + ('rating_lesser', sgqlc.types.Arg(Int, graphql_name='rating_lesser', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(RecommendationSort), graphql_name='sort', default=None)), +)) + ) + like = sgqlc.types.Field('User', graphql_name='Like', args=sgqlc.types.ArgDict(( + ('likeable_id', sgqlc.types.Arg(Int, graphql_name='likeableId', default=None)), + ('type', sgqlc.types.Arg(LikeableType, graphql_name='type', default=None)), +)) + ) + markdown = sgqlc.types.Field(ParsedMarkdown, graphql_name='Markdown', args=sgqlc.types.ArgDict(( + ('markdown', sgqlc.types.Arg(sgqlc.types.non_null(String), graphql_name='markdown', default=None)), +)) + ) + ani_chart_user = sgqlc.types.Field('AniChartUser', graphql_name='AniChartUser') + site_statistics = sgqlc.types.Field('SiteStatistics', graphql_name='SiteStatistics') + external_link_source_collection = sgqlc.types.Field(sgqlc.types.list_of(MediaExternalLink), graphql_name='ExternalLinkSourceCollection', args=sgqlc.types.ArgDict(( + ('id', sgqlc.types.Arg(Int, graphql_name='id', default=None)), + ('type', sgqlc.types.Arg(ExternalLinkType, graphql_name='type', default=None)), + ('media_type', sgqlc.types.Arg(ExternalLinkMediaType, graphql_name='mediaType', default=None)), +)) + ) + + +class Recommendation(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'rating', 'user_rating', 'media', 'media_recommendation', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + rating = sgqlc.types.Field(Int, graphql_name='rating') + user_rating = sgqlc.types.Field(RecommendationRating, graphql_name='userRating') + media = sgqlc.types.Field(Media, graphql_name='media') + media_recommendation = sgqlc.types.Field(Media, graphql_name='mediaRecommendation') + user = sgqlc.types.Field('User', graphql_name='user') + + +class RecommendationConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('RecommendationEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Recommendation), graphql_name='nodes') + page_info = sgqlc.types.Field(PageInfo, graphql_name='pageInfo') + + +class RecommendationEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node',) + node = sgqlc.types.Field(Recommendation, graphql_name='node') + + +class RelatedMediaAdditionNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'type', 'media_id', 'context', 'created_at', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class Report(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'reporter', 'reported', 'reason', 'created_at', 'cleared') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + reporter = sgqlc.types.Field('User', graphql_name='reporter') + reported = sgqlc.types.Field('User', graphql_name='reported') + reason = sgqlc.types.Field(String, graphql_name='reason') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + cleared = sgqlc.types.Field(Boolean, graphql_name='cleared') + + +class Review(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'media_id', 'media_type', 'summary', 'body', 'rating', 'rating_amount', 'user_rating', 'score', 'private', 'site_url', 'created_at', 'updated_at', 'user', 'media') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + media_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='mediaId') + media_type = sgqlc.types.Field(MediaType, graphql_name='mediaType') + summary = sgqlc.types.Field(String, graphql_name='summary') + body = sgqlc.types.Field(String, graphql_name='body', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + rating = sgqlc.types.Field(Int, graphql_name='rating') + rating_amount = sgqlc.types.Field(Int, graphql_name='ratingAmount') + user_rating = sgqlc.types.Field(ReviewRating, graphql_name='userRating') + score = sgqlc.types.Field(Int, graphql_name='score') + private = sgqlc.types.Field(Boolean, graphql_name='private') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + updated_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='updatedAt') + user = sgqlc.types.Field('User', graphql_name='user') + media = sgqlc.types.Field(Media, graphql_name='media') + + +class ReviewConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('ReviewEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Review), graphql_name='nodes') + page_info = sgqlc.types.Field(PageInfo, graphql_name='pageInfo') + + +class ReviewEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node',) + node = sgqlc.types.Field(Review, graphql_name='node') + + +class RevisionHistory(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'action', 'changes', 'user', 'media', 'character', 'staff', 'studio', 'external_link', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + action = sgqlc.types.Field(RevisionHistoryAction, graphql_name='action') + changes = sgqlc.types.Field(Json, graphql_name='changes') + user = sgqlc.types.Field('User', graphql_name='user') + media = sgqlc.types.Field(Media, graphql_name='media') + character = sgqlc.types.Field(Character, graphql_name='character') + staff = sgqlc.types.Field('Staff', graphql_name='staff') + studio = sgqlc.types.Field('Studio', graphql_name='studio') + external_link = sgqlc.types.Field(MediaExternalLink, graphql_name='externalLink') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + + +class ScoreDistribution(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('score', 'amount') + score = sgqlc.types.Field(Int, graphql_name='score') + amount = sgqlc.types.Field(Int, graphql_name='amount') + + +class SiteStatistics(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('users', 'anime', 'manga', 'characters', 'staff', 'studios', 'reviews') + users = sgqlc.types.Field('SiteTrendConnection', graphql_name='users', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + anime = sgqlc.types.Field('SiteTrendConnection', graphql_name='anime', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + manga = sgqlc.types.Field('SiteTrendConnection', graphql_name='manga', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + characters = sgqlc.types.Field('SiteTrendConnection', graphql_name='characters', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + staff = sgqlc.types.Field('SiteTrendConnection', graphql_name='staff', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + studios = sgqlc.types.Field('SiteTrendConnection', graphql_name='studios', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + reviews = sgqlc.types.Field('SiteTrendConnection', graphql_name='reviews', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(SiteTrendSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + + +class SiteTrend(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('date', 'count', 'change') + date = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='date') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + change = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='change') + + +class SiteTrendConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('SiteTrendEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(SiteTrend), graphql_name='nodes') + page_info = sgqlc.types.Field(PageInfo, graphql_name='pageInfo') + + +class SiteTrendEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node',) + node = sgqlc.types.Field(SiteTrend, graphql_name='node') + + +class Staff(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name', 'language', 'language_v2', 'image', 'description', 'primary_occupations', 'gender', 'date_of_birth', 'date_of_death', 'age', 'years_active', 'home_town', 'blood_type', 'is_favourite', 'is_favourite_blocked', 'site_url', 'staff_media', 'characters', 'character_media', 'updated_at', 'staff', 'submitter', 'submission_status', 'submission_notes', 'favourites', 'mod_notes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field('StaffName', graphql_name='name') + language = sgqlc.types.Field(StaffLanguage, graphql_name='language') + language_v2 = sgqlc.types.Field(String, graphql_name='languageV2') + image = sgqlc.types.Field('StaffImage', graphql_name='image') + description = sgqlc.types.Field(String, graphql_name='description', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + primary_occupations = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='primaryOccupations') + gender = sgqlc.types.Field(String, graphql_name='gender') + date_of_birth = sgqlc.types.Field(FuzzyDate, graphql_name='dateOfBirth') + date_of_death = sgqlc.types.Field(FuzzyDate, graphql_name='dateOfDeath') + age = sgqlc.types.Field(Int, graphql_name='age') + years_active = sgqlc.types.Field(sgqlc.types.list_of(Int), graphql_name='yearsActive') + home_town = sgqlc.types.Field(String, graphql_name='homeTown') + blood_type = sgqlc.types.Field(String, graphql_name='bloodType') + is_favourite = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavourite') + is_favourite_blocked = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavouriteBlocked') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + staff_media = sgqlc.types.Field(MediaConnection, graphql_name='staffMedia', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), + ('type', sgqlc.types.Arg(MediaType, graphql_name='type', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + characters = sgqlc.types.Field(CharacterConnection, graphql_name='characters', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(CharacterSort), graphql_name='sort', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + character_media = sgqlc.types.Field(MediaConnection, graphql_name='characterMedia', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + staff = sgqlc.types.Field('Staff', graphql_name='staff') + submitter = sgqlc.types.Field('User', graphql_name='submitter') + submission_status = sgqlc.types.Field(Int, graphql_name='submissionStatus') + submission_notes = sgqlc.types.Field(String, graphql_name='submissionNotes') + favourites = sgqlc.types.Field(Int, graphql_name='favourites') + mod_notes = sgqlc.types.Field(String, graphql_name='modNotes') + + +class StaffConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('StaffEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Staff), graphql_name='nodes') + page_info = sgqlc.types.Field(PageInfo, graphql_name='pageInfo') + + +class StaffEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'id', 'role', 'favourite_order') + node = sgqlc.types.Field(Staff, graphql_name='node') + id = sgqlc.types.Field(Int, graphql_name='id') + role = sgqlc.types.Field(String, graphql_name='role') + favourite_order = sgqlc.types.Field(Int, graphql_name='favouriteOrder') + + +class StaffImage(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('large', 'medium') + large = sgqlc.types.Field(String, graphql_name='large') + medium = sgqlc.types.Field(String, graphql_name='medium') + + +class StaffName(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('first', 'middle', 'last', 'full', 'native', 'alternative', 'user_preferred') + first = sgqlc.types.Field(String, graphql_name='first') + middle = sgqlc.types.Field(String, graphql_name='middle') + last = sgqlc.types.Field(String, graphql_name='last') + full = sgqlc.types.Field(String, graphql_name='full') + native = sgqlc.types.Field(String, graphql_name='native') + alternative = sgqlc.types.Field(sgqlc.types.list_of(String), graphql_name='alternative') + user_preferred = sgqlc.types.Field(String, graphql_name='userPreferred') + + +class StaffRoleType(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('voice_actor', 'role_notes', 'dub_group') + voice_actor = sgqlc.types.Field(Staff, graphql_name='voiceActor') + role_notes = sgqlc.types.Field(String, graphql_name='roleNotes') + dub_group = sgqlc.types.Field(String, graphql_name='dubGroup') + + +class StaffStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('staff', 'amount', 'mean_score', 'time_watched') + staff = sgqlc.types.Field(Staff, graphql_name='staff') + amount = sgqlc.types.Field(Int, graphql_name='amount') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + time_watched = sgqlc.types.Field(Int, graphql_name='timeWatched') + + +class StaffSubmission(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'staff', 'submission', 'submitter', 'assignee', 'status', 'notes', 'source', 'locked', 'created_at') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + staff = sgqlc.types.Field(Staff, graphql_name='staff') + submission = sgqlc.types.Field(Staff, graphql_name='submission') + submitter = sgqlc.types.Field('User', graphql_name='submitter') + assignee = sgqlc.types.Field('User', graphql_name='assignee') + status = sgqlc.types.Field(SubmissionStatus, graphql_name='status') + notes = sgqlc.types.Field(String, graphql_name='notes') + source = sgqlc.types.Field(String, graphql_name='source') + locked = sgqlc.types.Field(Boolean, graphql_name='locked') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + + +class StatusDistribution(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('status', 'amount') + status = sgqlc.types.Field(MediaListStatus, graphql_name='status') + amount = sgqlc.types.Field(Int, graphql_name='amount') + + +class Studio(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name', 'is_animation_studio', 'media', 'site_url', 'is_favourite', 'favourites') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') + is_animation_studio = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isAnimationStudio') + media = sgqlc.types.Field(MediaConnection, graphql_name='media', args=sgqlc.types.ArgDict(( + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(MediaSort), graphql_name='sort', default=None)), + ('is_main', sgqlc.types.Arg(Boolean, graphql_name='isMain', default=None)), + ('on_list', sgqlc.types.Arg(Boolean, graphql_name='onList', default=None)), + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), + ('per_page', sgqlc.types.Arg(Int, graphql_name='perPage', default=None)), +)) + ) + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + is_favourite = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isFavourite') + favourites = sgqlc.types.Field(Int, graphql_name='favourites') + + +class StudioConnection(sgqlc.types.relay.Connection): + __schema__ = anilist_schema + __field_names__ = ('edges', 'nodes', 'page_info') + edges = sgqlc.types.Field(sgqlc.types.list_of('StudioEdge'), graphql_name='edges') + nodes = sgqlc.types.Field(sgqlc.types.list_of(Studio), graphql_name='nodes') + page_info = sgqlc.types.Field(PageInfo, graphql_name='pageInfo') + + +class StudioEdge(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('node', 'id', 'is_main', 'favourite_order') + node = sgqlc.types.Field(Studio, graphql_name='node') + id = sgqlc.types.Field(Int, graphql_name='id') + is_main = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isMain') + favourite_order = sgqlc.types.Field(Int, graphql_name='favouriteOrder') + + +class StudioStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('studio', 'amount', 'mean_score', 'time_watched') + studio = sgqlc.types.Field(Studio, graphql_name='studio') + amount = sgqlc.types.Field(Int, graphql_name='amount') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + time_watched = sgqlc.types.Field(Int, graphql_name='timeWatched') + + +class TagStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('tag', 'amount', 'mean_score', 'time_watched') + tag = sgqlc.types.Field(MediaTag, graphql_name='tag') + amount = sgqlc.types.Field(Int, graphql_name='amount') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + time_watched = sgqlc.types.Field(Int, graphql_name='timeWatched') + + +class TextActivity(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'reply_count', 'text', 'site_url', 'is_locked', 'is_subscribed', 'like_count', 'is_liked', 'is_pinned', 'created_at', 'user', 'replies', 'likes') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(Int, graphql_name='userId') + type = sgqlc.types.Field(ActivityType, graphql_name='type') + reply_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='replyCount') + text = sgqlc.types.Field(String, graphql_name='text', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + is_subscribed = sgqlc.types.Field(Boolean, graphql_name='isSubscribed') + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + is_pinned = sgqlc.types.Field(Boolean, graphql_name='isPinned') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + user = sgqlc.types.Field('User', graphql_name='user') + replies = sgqlc.types.Field(sgqlc.types.list_of(ActivityReply), graphql_name='replies') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + + +class Thread(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'title', 'body', 'user_id', 'reply_user_id', 'reply_comment_id', 'reply_count', 'view_count', 'is_locked', 'is_sticky', 'is_subscribed', 'like_count', 'is_liked', 'replied_at', 'created_at', 'updated_at', 'user', 'reply_user', 'likes', 'site_url', 'categories', 'media_categories') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + title = sgqlc.types.Field(String, graphql_name='title') + body = sgqlc.types.Field(String, graphql_name='body', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + reply_user_id = sgqlc.types.Field(Int, graphql_name='replyUserId') + reply_comment_id = sgqlc.types.Field(Int, graphql_name='replyCommentId') + reply_count = sgqlc.types.Field(Int, graphql_name='replyCount') + view_count = sgqlc.types.Field(Int, graphql_name='viewCount') + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + is_sticky = sgqlc.types.Field(Boolean, graphql_name='isSticky') + is_subscribed = sgqlc.types.Field(Boolean, graphql_name='isSubscribed') + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + replied_at = sgqlc.types.Field(Int, graphql_name='repliedAt') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + updated_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='updatedAt') + user = sgqlc.types.Field('User', graphql_name='user') + reply_user = sgqlc.types.Field('User', graphql_name='replyUser') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + categories = sgqlc.types.Field(sgqlc.types.list_of('ThreadCategory'), graphql_name='categories') + media_categories = sgqlc.types.Field(sgqlc.types.list_of(Media), graphql_name='mediaCategories') + + +class ThreadCategory(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') + + +class ThreadComment(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'thread_id', 'comment', 'like_count', 'is_liked', 'site_url', 'created_at', 'updated_at', 'thread', 'user', 'likes', 'child_comments', 'is_locked') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(Int, graphql_name='userId') + thread_id = sgqlc.types.Field(Int, graphql_name='threadId') + comment = sgqlc.types.Field(String, graphql_name='comment', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + like_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='likeCount') + is_liked = sgqlc.types.Field(Boolean, graphql_name='isLiked') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + created_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='createdAt') + updated_at = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='updatedAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + user = sgqlc.types.Field('User', graphql_name='user') + likes = sgqlc.types.Field(sgqlc.types.list_of('User'), graphql_name='likes') + child_comments = sgqlc.types.Field(Json, graphql_name='childComments') + is_locked = sgqlc.types.Field(Boolean, graphql_name='isLocked') + + +class ThreadCommentLikeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'comment_id', 'context', 'created_at', 'thread', 'comment', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + comment_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='commentId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + comment = sgqlc.types.Field(ThreadComment, graphql_name='comment') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ThreadCommentMentionNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'comment_id', 'context', 'created_at', 'thread', 'comment', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + comment_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='commentId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + comment = sgqlc.types.Field(ThreadComment, graphql_name='comment') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ThreadCommentReplyNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'comment_id', 'context', 'created_at', 'thread', 'comment', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + comment_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='commentId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + comment = sgqlc.types.Field(ThreadComment, graphql_name='comment') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ThreadCommentSubscribedNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'comment_id', 'context', 'created_at', 'thread', 'comment', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + comment_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='commentId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + comment = sgqlc.types.Field(ThreadComment, graphql_name='comment') + user = sgqlc.types.Field('User', graphql_name='user') + + +class ThreadLikeNotification(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'user_id', 'type', 'thread_id', 'context', 'created_at', 'thread', 'comment', 'user') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + user_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='userId') + type = sgqlc.types.Field(NotificationType, graphql_name='type') + thread_id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='threadId') + context = sgqlc.types.Field(String, graphql_name='context') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + thread = sgqlc.types.Field(Thread, graphql_name='thread') + comment = sgqlc.types.Field(ThreadComment, graphql_name='comment') + user = sgqlc.types.Field('User', graphql_name='user') + + +class User(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('id', 'name', 'about', 'avatar', 'banner_image', 'is_following', 'is_follower', 'is_blocked', 'bans', 'options', 'media_list_options', 'favourites', 'statistics', 'unread_notification_count', 'site_url', 'donator_tier', 'donator_badge', 'moderator_roles', 'created_at', 'updated_at', 'stats', 'moderator_status', 'previous_names') + id = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='id') + name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name') + about = sgqlc.types.Field(String, graphql_name='about', args=sgqlc.types.ArgDict(( + ('as_html', sgqlc.types.Arg(Boolean, graphql_name='asHtml', default=None)), +)) + ) + avatar = sgqlc.types.Field('UserAvatar', graphql_name='avatar') + banner_image = sgqlc.types.Field(String, graphql_name='bannerImage') + is_following = sgqlc.types.Field(Boolean, graphql_name='isFollowing') + is_follower = sgqlc.types.Field(Boolean, graphql_name='isFollower') + is_blocked = sgqlc.types.Field(Boolean, graphql_name='isBlocked') + bans = sgqlc.types.Field(Json, graphql_name='bans') + options = sgqlc.types.Field('UserOptions', graphql_name='options') + media_list_options = sgqlc.types.Field(MediaListOptions, graphql_name='mediaListOptions') + favourites = sgqlc.types.Field(Favourites, graphql_name='favourites', args=sgqlc.types.ArgDict(( + ('page', sgqlc.types.Arg(Int, graphql_name='page', default=None)), +)) + ) + statistics = sgqlc.types.Field('UserStatisticTypes', graphql_name='statistics') + unread_notification_count = sgqlc.types.Field(Int, graphql_name='unreadNotificationCount') + site_url = sgqlc.types.Field(String, graphql_name='siteUrl') + donator_tier = sgqlc.types.Field(Int, graphql_name='donatorTier') + donator_badge = sgqlc.types.Field(String, graphql_name='donatorBadge') + moderator_roles = sgqlc.types.Field(sgqlc.types.list_of(ModRole), graphql_name='moderatorRoles') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + stats = sgqlc.types.Field('UserStats', graphql_name='stats') + moderator_status = sgqlc.types.Field(String, graphql_name='moderatorStatus') + previous_names = sgqlc.types.Field(sgqlc.types.list_of('UserPreviousName'), graphql_name='previousNames') + + +class UserActivityHistory(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('date', 'amount', 'level') + date = sgqlc.types.Field(Int, graphql_name='date') + amount = sgqlc.types.Field(Int, graphql_name='amount') + level = sgqlc.types.Field(Int, graphql_name='level') + + +class UserAvatar(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('large', 'medium') + large = sgqlc.types.Field(String, graphql_name='large') + medium = sgqlc.types.Field(String, graphql_name='medium') + + +class UserCountryStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'country') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + country = sgqlc.types.Field(CountryCode, graphql_name='country') + + +class UserFormatStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'format') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + format = sgqlc.types.Field(MediaFormat, graphql_name='format') + + +class UserGenreStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'genre') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + genre = sgqlc.types.Field(String, graphql_name='genre') + + +class UserLengthStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'length') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + length = sgqlc.types.Field(String, graphql_name='length') + + +class UserModData(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('alts', 'bans', 'ip', 'counts', 'privacy', 'email') + alts = sgqlc.types.Field(sgqlc.types.list_of(User), graphql_name='alts') + bans = sgqlc.types.Field(Json, graphql_name='bans') + ip = sgqlc.types.Field(Json, graphql_name='ip') + counts = sgqlc.types.Field(Json, graphql_name='counts') + privacy = sgqlc.types.Field(Int, graphql_name='privacy') + email = sgqlc.types.Field(String, graphql_name='email') + + +class UserOptions(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('title_language', 'display_adult_content', 'airing_notifications', 'profile_color', 'notification_options', 'timezone', 'activity_merge_time', 'staff_name_language', 'restrict_messages_to_following', 'disabled_list_activity') + title_language = sgqlc.types.Field(UserTitleLanguage, graphql_name='titleLanguage') + display_adult_content = sgqlc.types.Field(Boolean, graphql_name='displayAdultContent') + airing_notifications = sgqlc.types.Field(Boolean, graphql_name='airingNotifications') + profile_color = sgqlc.types.Field(String, graphql_name='profileColor') + notification_options = sgqlc.types.Field(sgqlc.types.list_of(NotificationOption), graphql_name='notificationOptions') + timezone = sgqlc.types.Field(String, graphql_name='timezone') + activity_merge_time = sgqlc.types.Field(Int, graphql_name='activityMergeTime') + staff_name_language = sgqlc.types.Field(UserStaffNameLanguage, graphql_name='staffNameLanguage') + restrict_messages_to_following = sgqlc.types.Field(Boolean, graphql_name='restrictMessagesToFollowing') + disabled_list_activity = sgqlc.types.Field(sgqlc.types.list_of(ListActivityOption), graphql_name='disabledListActivity') + + +class UserPreviousName(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('name', 'created_at', 'updated_at') + name = sgqlc.types.Field(String, graphql_name='name') + created_at = sgqlc.types.Field(Int, graphql_name='createdAt') + updated_at = sgqlc.types.Field(Int, graphql_name='updatedAt') + + +class UserReleaseYearStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'release_year') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + release_year = sgqlc.types.Field(Int, graphql_name='releaseYear') + + +class UserScoreStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'score') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + score = sgqlc.types.Field(Int, graphql_name='score') + + +class UserStaffStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'staff') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + staff = sgqlc.types.Field(Staff, graphql_name='staff') + + +class UserStartYearStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'start_year') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + start_year = sgqlc.types.Field(Int, graphql_name='startYear') + + +class UserStatisticTypes(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('anime', 'manga') + anime = sgqlc.types.Field('UserStatistics', graphql_name='anime') + manga = sgqlc.types.Field('UserStatistics', graphql_name='manga') + + +class UserStatistics(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'standard_deviation', 'minutes_watched', 'episodes_watched', 'chapters_read', 'volumes_read', 'formats', 'statuses', 'scores', 'lengths', 'release_years', 'start_years', 'genres', 'tags', 'countries', 'voice_actors', 'staff', 'studios') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + standard_deviation = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='standardDeviation') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + episodes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='episodesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + volumes_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='volumesRead') + formats = sgqlc.types.Field(sgqlc.types.list_of(UserFormatStatistic), graphql_name='formats', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + statuses = sgqlc.types.Field(sgqlc.types.list_of('UserStatusStatistic'), graphql_name='statuses', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + scores = sgqlc.types.Field(sgqlc.types.list_of(UserScoreStatistic), graphql_name='scores', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + lengths = sgqlc.types.Field(sgqlc.types.list_of(UserLengthStatistic), graphql_name='lengths', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + release_years = sgqlc.types.Field(sgqlc.types.list_of(UserReleaseYearStatistic), graphql_name='releaseYears', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + start_years = sgqlc.types.Field(sgqlc.types.list_of(UserStartYearStatistic), graphql_name='startYears', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + genres = sgqlc.types.Field(sgqlc.types.list_of(UserGenreStatistic), graphql_name='genres', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + tags = sgqlc.types.Field(sgqlc.types.list_of('UserTagStatistic'), graphql_name='tags', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + countries = sgqlc.types.Field(sgqlc.types.list_of(UserCountryStatistic), graphql_name='countries', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + voice_actors = sgqlc.types.Field(sgqlc.types.list_of('UserVoiceActorStatistic'), graphql_name='voiceActors', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + staff = sgqlc.types.Field(sgqlc.types.list_of(UserStaffStatistic), graphql_name='staff', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + studios = sgqlc.types.Field(sgqlc.types.list_of('UserStudioStatistic'), graphql_name='studios', args=sgqlc.types.ArgDict(( + ('limit', sgqlc.types.Arg(Int, graphql_name='limit', default=None)), + ('sort', sgqlc.types.Arg(sgqlc.types.list_of(UserStatisticsSort), graphql_name='sort', default=None)), +)) + ) + + +class UserStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('watched_time', 'chapters_read', 'activity_history', 'anime_status_distribution', 'manga_status_distribution', 'anime_score_distribution', 'manga_score_distribution', 'anime_list_scores', 'manga_list_scores', 'favoured_genres_overview', 'favoured_genres', 'favoured_tags', 'favoured_actors', 'favoured_staff', 'favoured_studios', 'favoured_years', 'favoured_formats') + watched_time = sgqlc.types.Field(Int, graphql_name='watchedTime') + chapters_read = sgqlc.types.Field(Int, graphql_name='chaptersRead') + activity_history = sgqlc.types.Field(sgqlc.types.list_of(UserActivityHistory), graphql_name='activityHistory') + anime_status_distribution = sgqlc.types.Field(sgqlc.types.list_of(StatusDistribution), graphql_name='animeStatusDistribution') + manga_status_distribution = sgqlc.types.Field(sgqlc.types.list_of(StatusDistribution), graphql_name='mangaStatusDistribution') + anime_score_distribution = sgqlc.types.Field(sgqlc.types.list_of(ScoreDistribution), graphql_name='animeScoreDistribution') + manga_score_distribution = sgqlc.types.Field(sgqlc.types.list_of(ScoreDistribution), graphql_name='mangaScoreDistribution') + anime_list_scores = sgqlc.types.Field(ListScoreStats, graphql_name='animeListScores') + manga_list_scores = sgqlc.types.Field(ListScoreStats, graphql_name='mangaListScores') + favoured_genres_overview = sgqlc.types.Field(sgqlc.types.list_of(GenreStats), graphql_name='favouredGenresOverview') + favoured_genres = sgqlc.types.Field(sgqlc.types.list_of(GenreStats), graphql_name='favouredGenres') + favoured_tags = sgqlc.types.Field(sgqlc.types.list_of(TagStats), graphql_name='favouredTags') + favoured_actors = sgqlc.types.Field(sgqlc.types.list_of(StaffStats), graphql_name='favouredActors') + favoured_staff = sgqlc.types.Field(sgqlc.types.list_of(StaffStats), graphql_name='favouredStaff') + favoured_studios = sgqlc.types.Field(sgqlc.types.list_of(StudioStats), graphql_name='favouredStudios') + favoured_years = sgqlc.types.Field(sgqlc.types.list_of('YearStats'), graphql_name='favouredYears') + favoured_formats = sgqlc.types.Field(sgqlc.types.list_of(FormatStats), graphql_name='favouredFormats') + + +class UserStatusStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'status') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + status = sgqlc.types.Field(MediaListStatus, graphql_name='status') + + +class UserStudioStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'studio') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + studio = sgqlc.types.Field(Studio, graphql_name='studio') + + +class UserTagStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'tag') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + tag = sgqlc.types.Field(MediaTag, graphql_name='tag') + + +class UserVoiceActorStatistic(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('count', 'mean_score', 'minutes_watched', 'chapters_read', 'media_ids', 'voice_actor', 'character_ids') + count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='count') + mean_score = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='meanScore') + minutes_watched = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='minutesWatched') + chapters_read = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='chaptersRead') + media_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='mediaIds') + voice_actor = sgqlc.types.Field(Staff, graphql_name='voiceActor') + character_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(Int)), graphql_name='characterIds') + + +class YearStats(sgqlc.types.Type): + __schema__ = anilist_schema + __field_names__ = ('year', 'amount', 'mean_score') + year = sgqlc.types.Field(Int, graphql_name='year') + amount = sgqlc.types.Field(Int, graphql_name='amount') + mean_score = sgqlc.types.Field(Int, graphql_name='meanScore') + + + +######################################################################## +# Unions +######################################################################## +class ActivityUnion(sgqlc.types.Union): + __schema__ = anilist_schema + __types__ = (TextActivity, ListActivity, MessageActivity) + + +class LikeableUnion(sgqlc.types.Union): + __schema__ = anilist_schema + __types__ = (ListActivity, TextActivity, MessageActivity, ActivityReply, Thread, ThreadComment) + + +class NotificationUnion(sgqlc.types.Union): + __schema__ = anilist_schema + __types__ = (AiringNotification, FollowingNotification, ActivityMessageNotification, ActivityMentionNotification, ActivityReplyNotification, ActivityReplySubscribedNotification, ActivityLikeNotification, ActivityReplyLikeNotification, ThreadCommentMentionNotification, ThreadCommentReplyNotification, ThreadCommentSubscribedNotification, ThreadCommentLikeNotification, ThreadLikeNotification, RelatedMediaAdditionNotification, MediaDataChangeNotification, MediaMergeNotification, MediaDeletionNotification) + + + +######################################################################## +# Schema Entry Points +######################################################################## +anilist_schema.query_type = Query +anilist_schema.mutation_type = Mutation +anilist_schema.subscription_type = None + diff --git a/custom_mappings.py b/plexanisync/custom_mappings.py similarity index 87% rename from custom_mappings.py rename to plexanisync/custom_mappings.py index 34ad7fa..40a757b 100644 --- a/custom_mappings.py +++ b/plexanisync/custom_mappings.py @@ -12,8 +12,9 @@ from jsonschema.exceptions import ValidationError from ruyaml import YAML import ruyaml +from plexanisync.logger_adapter import PrefixLoggerAdapter -logger = logging.getLogger("PlexAniSync") +logger = PrefixLoggerAdapter(logging.getLogger("PlexAniSync"), {"prefix": "MAPPING"}) MAPPING_FILE = "custom_mappings.yaml" REMOTE_MAPPING_FILE = "remote_mappings.yaml" @@ -77,10 +78,10 @@ def construct_scalar(self, node): def read_custom_mappings() -> Dict[str, List[AnilistCustomMapping]]: custom_mappings: Dict[str, List[AnilistCustomMapping]] = {} if not os.path.isfile(MAPPING_FILE): - logger.info(f"[MAPPING] Custom map file not found: {MAPPING_FILE}") + logger.info(f"Custom map file not found: {MAPPING_FILE}") return custom_mappings - logger.info(f"[MAPPING] Custom mapping found locally, using: {MAPPING_FILE}") + logger.info(f"Custom mapping found locally, using: {MAPPING_FILE}") yaml = YAML(typ='safe') yaml.Constructor = MyConstructor @@ -94,7 +95,7 @@ def read_custom_mappings() -> Dict[str, List[AnilistCustomMapping]]: # Validate data against the schema same as before. validate(file_mappings_local, schema) except ValidationError as e: - logger.error('[MAPPING] Custom Mappings validation failed!') + logger.error('Custom Mappings validation failed!') handle_yaml_error(file_mappings_local, e) @@ -108,7 +109,7 @@ def read_custom_mappings() -> Dict[str, List[AnilistCustomMapping]]: try: validate(file_mappings_local, schema) except ValidationError as e: - logger.error(f'[MAPPING] Custom Mappings {mapping_location} validation failed!') + logger.error(f'Custom Mappings {mapping_location} validation failed!') handle_yaml_error(file_mappings_remote, e) add_mappings(custom_mappings, mapping_location, file_mappings_remote) @@ -148,16 +149,16 @@ def add_mappings(custom_mappings, mapping_location, file_mappings): anilist_id = file_season['anilist-id'] start = file_season.get('start', 1) logger.info( - f"[MAPPING] Adding custom mapping from {mapping_location} " + f"Adding custom mapping from {mapping_location} " f"| title: {series_title} | season: {season} | anilist id: {anilist_id}" ) series_mappings.append(AnilistCustomMapping(season, anilist_id, start)) if synonyms: - logger.info(f"[MAPPING] {series_title} has synonyms: {synonyms}") + logger.info(f"{series_title} has synonyms: {synonyms}") for title in [series_title] + synonyms: title_lower = title.lower() if title_lower in custom_mappings: - logger.info(f"[MAPPING] Overwriting previous mapping for {title}") + logger.info(f"Overwriting previous mapping for {title}") custom_mappings[title_lower] = series_mappings @@ -170,12 +171,12 @@ def get_custom_mapping_remote(file_mappings) -> List[Tuple[str, str]]: # Get url and read the data for url in remote_mappings_urls: file_name = url.split('/')[-1] - logger.info(f"[MAPPING] Adding remote mapping url: {url}") + logger.info(f"Adding remote mapping url: {url}") response = requests.get(url, timeout=10) # 10 second timeout if response.status_code == 200: custom_mappings_remote.append((file_name, response.text)) else: - logger.error(f"[MAPPING] Could not download mapping file, received {response.reason}.") + logger.error(f"Could not download mapping file, received {response.reason}.") return custom_mappings_remote diff --git a/plexanisync/graphql.py b/plexanisync/graphql.py new file mode 100644 index 0000000..0e0ad45 --- /dev/null +++ b/plexanisync/graphql.py @@ -0,0 +1,134 @@ +# coding=utf-8 +import logging +import time +import requests + +from sgqlc.endpoint.requests import RequestsEndpoint +from sgqlc.operation import Operation + +from plexanisync.anilist_schema import anilist_schema as schema +from plexanisync.logger_adapter import PrefixLoggerAdapter + +logger = PrefixLoggerAdapter(logging.getLogger("PlexAniSync"), {"prefix": "GRAPHQL"}) + +ANILIST_ACCESS_TOKEN = "" +ANILIST_SKIP_UPDATE = False + +endpoint = None # pylint: disable=invalid-name + + +def search_by_id(anilist_id: int): + operation = Operation(schema.Query) + media = operation.media(id=anilist_id, type="ANIME") + media.__fields__( + 'id', + 'type', + 'format', + 'status', + 'source', + 'season', + 'episodes', + 'synonyms' + ) + media.title.__fields__('romaji', 'english', 'native') + media.start_date.year() + media.end_date.year() + + data = send_graphql_request(operation) + + media = (operation + data).media + return media + + +def search_by_name(anilist_show_name: str): + operation = Operation(schema.Query) + page = operation.page(page=1, per_page=50) + media = page.media(search=anilist_show_name, type="ANIME") + media.__fields__( + 'id', + 'type', + 'format', + 'status', + 'source', + 'season', + 'episodes', + 'synonyms' + ) + media.title.__fields__('romaji', 'english', 'native') + media.start_date.year() + media.end_date.year() + + data = send_graphql_request(operation) + + media = (operation + data).page.media + return media + + +def fetch_user_list(username: str): + operation = Operation(schema.Query) + lists = operation.media_list_collection(user_name=username, type="ANIME").lists + lists.__fields__('name', 'status', 'is_custom_list') + lists.entries.__fields__('id', 'progress', 'status', 'repeat') + lists.entries.media.__fields__( + 'id', + 'type', + 'format', + 'status', + 'source', + 'season', + 'episodes', + 'synonyms' + ) + lists.entries.media.start_date.year() + lists.entries.media.end_date.year() + lists.entries.media.title.__fields__('romaji', 'english', 'native') + + data = send_graphql_request(operation) + return (operation + data).media_list_collection + + +def update_series(media_id: int, progress: int, status: str): + if ANILIST_SKIP_UPDATE: + logger.warning("Skip update is enabled in settings so not updating this item") + return + + op = Operation(schema.Mutation) + op.save_media_list_entry( + media_id=media_id, + status=status, + progress=progress + ) + send_graphql_request(op) + + +def send_graphql_request(operation): + global endpoint # pylint: disable=global-statement,invalid-name + if not endpoint: + endpoint = RequestsEndpoint( + url="https://graphql.anilist.co", + base_headers={ + "Authorization": f"Bearer {ANILIST_ACCESS_TOKEN}", + "Accept": "application/json", + "Content-Type": "application/json" + }, + timeout=10, # seconds, + session=requests.Session() + ) + endpoint.logger = logger + + while True: + data = endpoint(operation) + if hasattr(data, 'errors'): + error = data["errors"][0] + status = error.status + if status == 429: + wait_time = int(error.headers.get('retry-after', 0)) + logger.warning(f"Rate limit hit, waiting for {wait_time}s") + time.sleep(wait_time + 1) + + else: + raise error.exception + else: + # wait a bit to not overload AniList API + time.sleep(0.20) + return data diff --git a/plexanisync/logger_adapter.py b/plexanisync/logger_adapter.py new file mode 100644 index 0000000..777d3cb --- /dev/null +++ b/plexanisync/logger_adapter.py @@ -0,0 +1,8 @@ +import logging +from typing import Tuple + + +class PrefixLoggerAdapter(logging.LoggerAdapter): + """ A logger adapter that adds a prefix to every message """ + def process(self, msg: str, kwargs: dict) -> Tuple[str, dict]: + return (f'[{self.extra["prefix"]}] ' + msg, kwargs) diff --git a/plexmodule.py b/plexanisync/plexmodule.py similarity index 91% rename from plexmodule.py rename to plexanisync/plexmodule.py index bde2e13..13e4bf8 100644 --- a/plexmodule.py +++ b/plexanisync/plexmodule.py @@ -12,8 +12,11 @@ from requests.adapters import HTTPAdapter from urllib3.poolmanager import PoolManager -logger = logging.getLogger("PlexAniSync") -plex_settings = dict() +from plexanisync.logger_adapter import PrefixLoggerAdapter + +logger = PrefixLoggerAdapter(logging.getLogger("PlexAniSync"), {"prefix": "PLEX"}) + +plex_settings = {} @dataclass @@ -105,7 +108,7 @@ def authenticate() -> PlexServer: plex = account.resource(plex_server).connect() else: logger.critical( - "[PLEX] Failed to authenticate due to invalid settings or authentication info, exiting..." + "Failed to authenticate due to invalid settings or authentication info, exiting..." ) sys.exit(1) return plex @@ -121,11 +124,11 @@ def get_anime_shows() -> List[Show]: shows: List[Show] = [] for section in sections: try: - logger.info(f"[PLEX] Retrieving anime series from section: {section}") + logger.info(f"Retrieving anime series from section: {section}") shows_search = plex.library.section(section.strip()).search() shows += shows_search logger.info( - f"[PLEX] Found {len(shows_search)} anime series in section: {section}" + f"Found {len(shows_search)} anime series in section: {section}" ) except BaseException: logger.error( @@ -152,14 +155,14 @@ def get_anime_shows_filter(show_name): shows_filtered.append(show) if shows_filtered: - logger.info("[PLEX] Found matching anime series") + logger.info("Found matching anime series") else: - logger.info(f"[PLEX] Did not find {show_name} in anime series") + logger.info(f"Did not find {show_name} in anime series") return shows_filtered def get_watched_shows(shows: List[Show]) -> Optional[List[PlexWatchedSeries]]: - logger.info("[PLEX] Retrieving watch count for series") + logger.info("Retrieving watch count for series") watched_series: List[PlexWatchedSeries] = [] ovas_found = 0 @@ -222,6 +225,7 @@ def get_watched_shows(shows: List[Show]) -> Optional[List[PlexWatchedSeries]]: if hasattr(show, "isWatched") and show.isWatched: year = 1900 + if show.year: year = int(show.year) @@ -249,13 +253,13 @@ def get_watched_shows(shows: List[Show]) -> Optional[List[PlexWatchedSeries]]: watched_series.append(watched_show) ovas_found += 1 except Exception: - logger.exception(f"[PLEX] Error occured during episode processing of show {show}") + logger.exception(f"Error occured during episode processing of show {show}") - logger.info(f"[PLEX] Found {len(watched_series)} watched series") + logger.info(f"Found {len(watched_series)} watched series") if ovas_found > 0: logger.info( - f"[PLEX] Watched series also contained {ovas_found} releases with no episode attribute (probably movie / OVA), " + f"Watched series also contained {ovas_found} releases with no episode attribute (probably movie / OVA), " "support for this is still experimental" ) @@ -270,7 +274,7 @@ def get_watched_episodes_for_show_season(season: Season) -> int: # len(watched_episodes_of_season) only works when the user didn't skip any episodes episodes_watched = max(map(lambda e: int(e.index), watched_episodes_of_season), default=0) - logger.info(f'[PLEX] {episodes_watched} episodes watched for {season.parentTitle} season {season.seasonNumber}') + logger.info(f'{episodes_watched} episodes watched for {season.parentTitle} season {season.seasonNumber}') return episodes_watched diff --git a/requirements.txt b/requirements.txt index 42b8783..1926707 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,4 +12,5 @@ pyreadline3==3.4.1 pyrsistent==0.19.3 requests==2.28.2 ruyaml==0.91.0 +sgqlc==16.1 urllib3==1.26.14