Update Kitsu GraphQL schema file
This commit is contained in:
parent
2b01871e5b
commit
0029dd2fb8
@ -241,6 +241,8 @@ type Account implements WithTimestamps {
|
|||||||
ratingSystem: RatingSystemEnum!
|
ratingSystem: RatingSystemEnum!
|
||||||
"Whether Not Safe For Work content is accessible"
|
"Whether Not Safe For Work content is accessible"
|
||||||
sfwFilter: Boolean
|
sfwFilter: Boolean
|
||||||
|
"The site-wide permissions this user has access to"
|
||||||
|
sitePermissions: [SitePermissionEnum!]!
|
||||||
"Time zone of the account"
|
"Time zone of the account"
|
||||||
timeZone: String
|
timeZone: String
|
||||||
"Preferred language for media titles"
|
"Preferred language for media titles"
|
||||||
@ -921,6 +923,8 @@ type Library {
|
|||||||
last: Int,
|
last: Int,
|
||||||
mediaType: MediaTypeEnum!
|
mediaType: MediaTypeEnum!
|
||||||
): LibraryEntryConnection!
|
): LibraryEntryConnection!
|
||||||
|
"Random anime or manga from this library"
|
||||||
|
randomMedia(mediaType: MediaTypeEnum!, status: [LibraryEntryStatusEnum!]!): Media
|
||||||
}
|
}
|
||||||
|
|
||||||
"Information about a specific media entry for a user"
|
"Information about a specific media entry for a user"
|
||||||
@ -1143,6 +1147,13 @@ type LibraryEventEdge {
|
|||||||
node: LibraryEvent
|
node: LibraryEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Autogenerated return type of LockPost"
|
||||||
|
type LockPostPayload {
|
||||||
|
"Graphql Errors"
|
||||||
|
errors: [Generic!]
|
||||||
|
post: Post
|
||||||
|
}
|
||||||
|
|
||||||
type Manga implements Media & WithTimestamps {
|
type Manga implements Media & WithTimestamps {
|
||||||
"The recommended minimum age group for this media"
|
"The recommended minimum age group for this media"
|
||||||
ageRating: AgeRatingEnum
|
ageRating: AgeRatingEnum
|
||||||
@ -1581,6 +1592,7 @@ type Mutation {
|
|||||||
episode: EpisodeMutation
|
episode: EpisodeMutation
|
||||||
libraryEntry: LibraryEntryMutation
|
libraryEntry: LibraryEntryMutation
|
||||||
mapping: MappingMutation
|
mapping: MappingMutation
|
||||||
|
post: PostMutation
|
||||||
pro: ProMutation!
|
pro: ProMutation!
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1684,6 +1696,12 @@ type Post implements WithTimestamps {
|
|||||||
"Returns the last _n_ elements from the list."
|
"Returns the last _n_ elements from the list."
|
||||||
last: Int
|
last: Int
|
||||||
): ProfileConnection!
|
): ProfileConnection!
|
||||||
|
"When this post was locked."
|
||||||
|
lockedAt: ISO8601DateTime
|
||||||
|
"The user who locked this post."
|
||||||
|
lockedBy: Profile
|
||||||
|
"The reason why this post was locked."
|
||||||
|
lockedReason: LockedReasonEnum
|
||||||
"The media tagged in this post."
|
"The media tagged in this post."
|
||||||
media: Media
|
media: Media
|
||||||
updatedAt: ISO8601DateTime!
|
updatedAt: ISO8601DateTime!
|
||||||
@ -1709,6 +1727,19 @@ type PostEdge {
|
|||||||
node: Post
|
node: Post
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type PostMutation {
|
||||||
|
"Lock a Post."
|
||||||
|
lock(
|
||||||
|
"Lock a Post."
|
||||||
|
input: LockInput!
|
||||||
|
): LockPostPayload
|
||||||
|
"Unlock a Post."
|
||||||
|
unlock(
|
||||||
|
"Unlock a Post."
|
||||||
|
input: UnlockInput!
|
||||||
|
): UnlockPostPayload
|
||||||
|
}
|
||||||
|
|
||||||
type ProMutation {
|
type ProMutation {
|
||||||
"Set the user's discord tag"
|
"Set the user's discord tag"
|
||||||
setDiscord(
|
setDiscord(
|
||||||
@ -2055,6 +2086,8 @@ type Query {
|
|||||||
"Returns the last _n_ elements from the list."
|
"Returns the last _n_ elements from the list."
|
||||||
last: Int
|
last: Int
|
||||||
): ProfileConnection!
|
): ProfileConnection!
|
||||||
|
"Random anime or manga"
|
||||||
|
randomMedia(ageRatings: [AgeRatingEnum!]!, mediaType: MediaTypeEnum!): Media!
|
||||||
"Search for Anime by title using Algolia. The most relevant results will be at the top."
|
"Search for Anime by title using Algolia. The most relevant results will be at the top."
|
||||||
searchAnimeByTitle(
|
searchAnimeByTitle(
|
||||||
"Returns the elements in the list that come after the specified cursor."
|
"Returns the elements in the list that come after the specified cursor."
|
||||||
@ -2091,6 +2124,18 @@ type Query {
|
|||||||
last: Int,
|
last: Int,
|
||||||
title: String!
|
title: String!
|
||||||
): MediaConnection!
|
): MediaConnection!
|
||||||
|
"Search for User by username using Algolia. The most relevant results will be at the top."
|
||||||
|
searchProfileByUsername(
|
||||||
|
"Returns the elements in the list that come after the specified cursor."
|
||||||
|
after: String,
|
||||||
|
"Returns the elements in the list that come before the specified cursor."
|
||||||
|
before: String,
|
||||||
|
"Returns the first _n_ elements from the list."
|
||||||
|
first: Int,
|
||||||
|
"Returns the last _n_ elements from the list."
|
||||||
|
last: Int,
|
||||||
|
username: String!
|
||||||
|
): ProfileConnection
|
||||||
"Get your current session info"
|
"Get your current session info"
|
||||||
session: Session!
|
session: Session!
|
||||||
}
|
}
|
||||||
@ -2302,6 +2347,13 @@ type TitlesList {
|
|||||||
localized(locales: [String!]): Map!
|
localized(locales: [String!]): Map!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
"Autogenerated return type of UnlockPost"
|
||||||
|
type UnlockPostPayload {
|
||||||
|
"Graphql Errors"
|
||||||
|
errors: [Generic!]
|
||||||
|
post: Post
|
||||||
|
}
|
||||||
|
|
||||||
"Autogenerated return type of Unsubscribe"
|
"Autogenerated return type of Unsubscribe"
|
||||||
type UnsubscribePayload {
|
type UnsubscribePayload {
|
||||||
"Graphql Errors"
|
"Graphql Errors"
|
||||||
@ -2436,6 +2488,12 @@ enum LibraryEventKindEnum {
|
|||||||
UPDATED
|
UPDATED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum LockedReasonEnum {
|
||||||
|
CLOSED
|
||||||
|
SPAM
|
||||||
|
TOO_HEATED
|
||||||
|
}
|
||||||
|
|
||||||
enum MangaSubtypeEnum {
|
enum MangaSubtypeEnum {
|
||||||
"Self published work."
|
"Self published work."
|
||||||
DOUJIN
|
DOUJIN
|
||||||
@ -2542,6 +2600,15 @@ enum ReleaseStatusEnum {
|
|||||||
UPCOMING
|
UPCOMING
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum SitePermissionEnum {
|
||||||
|
"Administrator/staff member of Kitsu"
|
||||||
|
ADMIN
|
||||||
|
"Moderator of community behavior"
|
||||||
|
COMMUNITY_MOD
|
||||||
|
"Maintainer of the Kitsu media database"
|
||||||
|
DATABASE_MOD
|
||||||
|
}
|
||||||
|
|
||||||
enum TitleLanguagePreferenceEnum {
|
enum TitleLanguagePreferenceEnum {
|
||||||
"Prefer the most commonly-used title for media"
|
"Prefer the most commonly-used title for media"
|
||||||
CANONICAL
|
CANONICAL
|
||||||
@ -2672,6 +2739,11 @@ input LibraryEntryUpdateStatusByMediaInput {
|
|||||||
status: LibraryEntryStatusEnum!
|
status: LibraryEntryStatusEnum!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input LockInput {
|
||||||
|
id: ID!
|
||||||
|
lockedReason: LockedReasonEnum!
|
||||||
|
}
|
||||||
|
|
||||||
input MappingCreateInput {
|
input MappingCreateInput {
|
||||||
externalId: ID!
|
externalId: ID!
|
||||||
externalSite: MappingExternalSiteEnum!
|
externalSite: MappingExternalSiteEnum!
|
||||||
@ -2693,6 +2765,10 @@ input TitlesListInput {
|
|||||||
localized: Map
|
localized: Map
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input UnlockInput {
|
||||||
|
id: ID!
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
"A date, expressed as an ISO8601 string"
|
"A date, expressed as an ISO8601 string"
|
||||||
scalar Date
|
scalar Date
|
||||||
|
Loading…
Reference in New Issue
Block a user