""" Requires authentication. With an API key or access token, it must also carry `scope`. Signed-in website sessions have every scope. """ directive @auth(scope: Scope) on FIELD_DEFINITION enum ActivityKind { """ `actor` added `emote` as `name`. """ EMOTE_ADDED """ `actor` removed `emote` (it was called `name`). """ EMOTE_REMOVED """ `actor` renamed `emote` from `oldName` to `name`. """ EMOTE_RENAMED """ `actor` switched the active set to `set` (`name`), or cleared it. """ SET_SWITCHED """ `user` became an editor. """ EDITOR_ADDED """ `actor` removed `user` as editor (or `user` left). """ EDITOR_REMOVED } type ApplyEmoteCollectionPayload { """ The changed set, or the new copy. """ set: EmoteSet! swapped: Int! """ Entries whose variant could not be used, see `EmoteCollectionPreview.blocked`. """ skipped: Int! } """ A channel an outfit or personal preset is assigned to. """ type AssignedChannel { platform: Platform! """ What to send back in `channels` lists: the Twitch login, or `yt:` + the YouTube channel ID. """ ref: String! """ Twitch login, or the YouTube channel ID. """ login: String! """ Display name, when known (else the login). """ displayName: String! """ Profile picture, when known. """ avatarUrl: String """ The JilTV user of that channel, when there is one. """ user: User } enum AttributionRole { ARTIST ANIMATOR CONTRIBUTOR } enum AuthMethod { """ Signed in on the JilTV website. """ SESSION """ An API key of your own developer app. """ API_KEY """ An access token of an app you allowed through the device flow. """ OAUTH } type Badge { """ Staff keep it out of trading. """ tradeLocked: Boolean! """ A member of the old revenue share Creator Program who designed it; `null` for JilTV's own. """ creator: User """ Old revenue share program: the creator asked staff to publish the draft. """ reviewRequestedAt: Time """ Not part of the Supporter pool; only granted by staff. """ exclusive: Boolean! """ Kept out of what COSMETICS_ALL holders receive. """ staffExcluded: Boolean! """ Sub badge: earned after this many paid Supporter months. """ tenureMonths: Int id: ID! name: String! description: String """ Image URL; the image is square, `size` pixels wide. """ imageUrl: String! size: Int! """ Bumps on every design change. """ version: Int! """ Drafts are only visible to staff and cannot be granted. """ published: Boolean! createdAt: Time! updatedAt: Time! """ Users who currently own this badge. """ ownerCount: Int! """ Tier staff picked for it, or `null` if none is shown. """ rarity: CosmeticRarity """ Who designed it, credited automatically: the creator first, then by how much they worked on it. Working copies also list unpublished work. """ designers: [User!]! """ Ownership numbers, refreshed every 10 minutes. """ stats: CosmeticStats! } type Channel { id: ID! platform: Platform! """ The channel's ID on the platform, e.g. the numeric Twitch user ID. """ platformId: String! displayName: String! owner: User! activeSet: EmoteSet """ YouTube channels: shows the owner's Twitch set and switches along with it. """ followsTwitch: Boolean! editors: [User!]! """ Editors with their permissions, longest-serving first. """ editorList: [ChannelEditor!]! """ Pending invites. Empty unless you may manage editors. """ invites: [EditorInvite!]! """ What you may do in this channel (all for the owner, nothing when signed out). """ viewerPermissions: [EditorPermission!]! """ Who changed what, newest first. Only the owner, editors and admins see it; others get an empty list. """ activity(first: Int = 50, after: String): [ChannelActivity!]! """ Users in this channel with a JilTV client (see `updatePresence`), most recently seen first. """ presences(first: Int = 100): [Presence!]! createdAt: Time! } type ChannelActivity { id: ID! kind: ActivityKind! actor: User emote: Emote set: EmoteSet user: User name: String oldName: String createdAt: Time! } type ChannelEditor { user: User! permissions: [EditorPermission!]! addedAt: Time! } """ An app you allowed to act for you. """ type ConnectedApp { id: ID! app: OAuthApp! scopes: [Scope!]! """ The user agent of the device that asked. """ userAgent: String createdAt: Time! lastUsedAt: Time } """ A platform account connected to a JilTV account. """ type Connection { platform: Platform! """ The account's ID there: the numeric Twitch user ID, the YouTube channel ID (`UC...`) or the TikTok open_id. """ platformId: String! """ Twitch login, YouTube @handle without the @ (empty if the channel has none), or TikTok @username without the @. """ login: String! displayName: String! avatarUrl: String connectedAt: Time! """ The account was created with this connection: display name and picture come from it, and it can't be disconnected. """ primary: Boolean! } """ A user owning a cosmetic. """ type CosmeticGrant { user: User! """ Only `GRANT` can be revoked; the others follow the subscription or staff role. """ source: CosmeticGrantSource! paint: Paint badge: Badge decoration: Decoration grantedAt: Time! """ `null` = forever. """ expiresAt: Time """ Internal note by staff, e.g. why it was granted. """ note: String } """ Where an owned cosmetic comes from. """ enum CosmeticGrantSource { """ Given directly (staff, shop, quests, rewards); staff can take it back. """ GRANT """ Part of the Supporter pool while the subscription runs. """ SUPPORTER """ Staff with the all-cosmetics permission own everything published. """ STAFF } """ How rare a cosmetic is, picked by staff. From most to least common. """ enum CosmeticRarity { COMMON UNCOMMON RARE EPIC LEGENDARY MYTHIC } """ How many people own and wear a cosmetic. Computed by the server every 10 minutes, so you don't need to count owners yourself. """ type CosmeticStats { """ Users who own it right now: direct grants, sub rewards and the Supporter pool. """ owners: Int! """ Share of all users who own it, 0–100. """ ownerPercent: Float! """ Users who have it equipped. """ wearers: Int! """ All users when the numbers were computed. """ usersTotal: Int! """ Place among the published cosmetics of the same kind by owners (1 = most owned); `null` for drafts. """ ownerRank: Int """ Place among the published cosmetics of the same kind by wearers (1 = most worn); `null` for drafts. """ wearerRank: Int """ When the numbers were computed, or `null` before the first run. """ updatedAt: Time } input CreateEmoteSetInput { """ Create the set for this user, a channel owner you edit for (needs SETS_CREATE). Defaults to you. """ ownerId: ID name: String! """ Defaults to 1000. """ capacity: Int """ Up to 300 characters. """ description: String """ Up to 6 tags. """ tags: [String!] } input CreateReportInput { targetType: ReportTarget! targetId: ID! reason: ReportReason! details: String } """ A Creator Program member. The creator sees their own; staff see all. """ type Creator { user: User! status: CreatorStatus! displayName: String! statusReason: String statusChangedAt: Time! approvedAt: Time! """ The active Creator Code, `null` when none. """ code: String codes: [CreatorCode!]! overview: CreatorOverview! """ Months with activity, newest first. """ history(months: Int = 12): [CreatorMonth!]! rewards(status: CreatorRewardStatus, first: Int = 200): [CreatorReward!]! giveaways(first: Int = 50): [CreatorGiveaway!]! } enum CreatorAgeGroup { AGE_16_17 AGE_18_PLUS } type CreatorApplication { id: ID! user: User! status: CreatorApplicationStatus! displayName: String! creatorCode: String! platform: CreatorPlatform! channelUrl: String! socialUrls: [String!]! intro: String """ The applicant and staff only. """ contactEmail: String ageGroup: CreatorAgeGroup! createdAt: Time! reviewedAt: Time """ Staff note of the decision (the reason of a rejection). """ reviewNote: String """ Aged 16-17: when the applicant confirmed that their legal guardians agreed. """ guardianConfirmedAt: Time } enum CreatorApplicationStatus { """ No longer used (guardian email flow of 2026-11-29). """ GUARDIAN_PENDING PENDING APPROVED REJECTED WITHDRAWN } type CreatorCode { id: ID! code: String! active: Boolean! createdAt: Time! retiredAt: Time } type CreatorGiveaway { id: ID! creator: User! creatorName: String! title: String! description: String rewardKind: CreatorRewardKind! paint: Paint badge: Badge winners: Int! """ Entrants must type a code. """ hasEntryCode: Boolean! """ The code itself: its creator and staff only. """ entryCode: String startsAt: Time! endsAt: Time! status: CreatorGiveawayStatus! drawnAt: Time disabledReason: String createdAt: Time! entries: Int! """ Whether you entered, won, or why you can't enter. """ viewerEntry: CreatorGiveawayEntry! """ Who won (after the draw). """ winnerUsers: [User!]! } type CreatorGiveawayEntry { entered: Boolean! won: Boolean! """ Why you can't enter, `null` when you can: SIGN_IN, CLOSED, NOT_STARTED, OWN_GIVEAWAY, ACCOUNT, ACCOUNT_TOO_NEW, ALREADY_OWNED, SUBSCRIBED. """ blocked: String } enum CreatorGiveawayStatus { OPEN DRAWN CANCELLED """ Stopped by staff. """ DISABLED } type CreatorMonth { """ YYYY-MM """ month: String! qualifiedBuyers: Int! qualifiedCents: Int! """ All attributed net revenue of the month, qualified or not. """ totalCents: Int! """ The highest tier reached (granted once settled). """ tier: CreatorTier settled: Boolean! settledAt: Time settlesAt: Time! """ Settled months: PENDING (rewards wait for staff approval), APPROVED or DECLINED; `null` before settlement. """ approval: String """ Why staff declined the rewards. """ decisionNote: String } type CreatorOverview { """ The running month (provisional). """ current: CreatorMonth! """ Last month while it is still in its review period. """ previous: CreatorMonth """ The next tier to reach this month, `null` at the top. """ nextTier: CreatorTier tiers: [CreatorTier!]! """ All attributed net revenue so far. """ lifetimeCents: Int! qualifyMinCents: Int! """ People with your code entered right now (it counts for 30 days), buyers or not. """ activeSupporters: Int! """ People who entered your code this month, buyers or not. """ codeEntriesThisMonth: Int! """ People who ever entered your code. """ codeEntriesTotal: Int! currency: String! } enum CreatorPlatform { TWITCH YOUTUBE KICK TIKTOK INSTAGRAM X DISCORD OTHER } """ The program as the public sees it. """ type CreatorProgram { applicationsOpen: Boolean! """ Version of the Creator Program Terms an application accepts. """ termsVersion: String! """ A buyer qualifies for a creator in a month once their net purchases (after discounts and refunds, without VAT) reach this. """ qualifyMinCents: Int! """ Days after a month ends before it is settled. """ reviewDays: Int! """ Days a reward stays usable once available. """ rewardValidDays: Int! """ Months a code chosen for the Supporter subscription stays attached. """ attributionMonths: Int! currency: String! """ Reward tiers of the running month, lowest first. Tiers don't stack. """ tiers: [CreatorTier!]! } type CreatorReward { id: ID! creator: User! """ YYYY-MM of the month that unlocked it. """ month: String! kind: CreatorRewardKind! status: CreatorRewardStatus! """ PAINT: the highest shop price a paint may have. """ maxValueCents: Int """ The paint (PAINT, CUSTOM_PAINT) once chosen or designed. """ paint: Paint """ The badge (BADGE) once designed. """ badge: Badge giveaway: CreatorGiveaway winner: User expiresAt: Time usedAt: Time note: String """ The creator's note on a direct award (shown to the winner). """ awardNote: String createdAt: Time! } enum CreatorRewardKind { """ One month of Supporter for one winner (never a subscription). """ SUPPORTER_MONTH """ A shop paint up to the reward's maximum value. """ PAINT """ An exclusive community badge staff design. """ BADGE """ A custom community paint staff design. """ CUSTOM_PAINT } enum CreatorRewardStatus { """ Staff still have to design it. """ AWAITING_DESIGN AVAILABLE """ Held by an open giveaway. """ RESERVED """ Granted to a giveaway winner. """ USED EXPIRED REVOKED } enum CreatorStatus { ACTIVE """ The code doesn't work at checkout and no rewards are granted. """ SUSPENDED TERMINATED } """ The Creator Code you chose for your Supporter subscription. """ type CreatorSubscriptionCode { creatorName: String! code: String! createdAt: Time! expiresAt: Time! """ Shop discount (percent) the code gives right now, 0 = none. Never for Supporter time or the subscription. """ discountPercent: Int! } type CreatorTier { position: Int! minBuyers: Int! minCents: Int! supporterMonths: Int! paints: Int! paintMaxCents: Int! badge: Boolean! customPaint: Boolean! """ Shop discount (percent) buyers get with the creator's code once this tier is reached in the running month; 0 = none. Never for Supporter time or the subscription. """ buyerDiscountPercent: Int! } """ A frame around the profile picture, drawn at 120 % of the avatar's size and centered on it. """ type Decoration { """ Staff keep it out of trading. """ tradeLocked: Boolean! """ A member of the old revenue share Creator Program who designed it; `null` for JilTV's own. """ creator: User """ Old revenue share program: the creator asked staff to publish the draft. """ reviewRequestedAt: Time """ Not part of the Supporter pool; only granted by staff. """ exclusive: Boolean! """ Kept out of what COSMETICS_ALL holders receive. """ staffExcluded: Boolean! """ Sub decoration: earned after this many paid Supporter months. """ tenureMonths: Int id: ID! name: String! description: String """ Image URL; the image is square, `size` pixels wide, transparent in the middle. """ imageUrl: String! size: Int! """ Bumps on every design change. """ version: Int! """ Drafts are only visible to staff and cannot be granted. """ published: Boolean! createdAt: Time! updatedAt: Time! """ Users who currently own this decoration. """ ownerCount: Int! """ Tier staff picked for it, or `null` if none is shown. """ rarity: CosmeticRarity """ Who designed it, credited automatically: the creator first, then by how much they worked on it. Working copies also list unpublished work. """ designers: [User!]! """ Ownership numbers, refreshed every 10 minutes. """ stats: CosmeticStats! } enum DownloadStatus { """ `url` can be downloaded. """ READY """ Being converted; ask again after `retryAfter` seconds. """ PENDING """ The conversion failed; see `error`. It is tried again after a while. """ FAILED } type EditEmoteSetPayload { set: EmoteSet! results: [EmoteSetOpResult!]! } type EditorInvite { channel: Channel! user: User! invitedBy: User! permissions: [EditorPermission!]! createdAt: Time! } enum EditorPermission { """ Add emotes to the owner's sets. """ EMOTES_ADD """ Remove emotes from the owner's sets. """ EMOTES_REMOVE """ Rename entries in the owner's sets and change their zero-width mode. """ EMOTES_RENAME """ Create sets owned by the channel owner. """ SETS_CREATE """ Rename, describe, tag and resize the owner's sets. """ SETS_EDIT """ Delete the owner's sets. """ SETS_DELETE """ Switch the channel's active emote set. """ ACTIVE_SET """ Upload emotes owned by the channel owner. """ UPLOAD """ See the channel's activity log. """ ACTIVITY """ Invite and remove other editors. Only the owner can grant it. """ EDITORS """ Input only: EMOTES_ADD, EMOTES_REMOVE and EMOTES_RENAME. """ EMOTES @deprecated(reason: "Use EMOTES_ADD, EMOTES_REMOVE and EMOTES_RENAME.") """ Input only: SETS_CREATE and SETS_EDIT. """ SETS @deprecated(reason: "Use SETS_CREATE and SETS_EDIT.") } type Emote { id: ID! name: String! owner: User! status: EmoteStatus! """ Visible in public listings and search. """ listed: Boolean! """ Waiting for review: not in search or listings yet, but works by link and can be added to sets. Chat clients hide it unless the viewer opts in. """ pendingReview: Boolean! animated: Boolean! """ Overlays the previous emote in chat instead of taking space. """ zeroWidth: Boolean! nsfw: Boolean! tags: [String!]! """ Current image version; bumps when the image is replaced. `null` while processing. """ version: Int """ Width of the 1x image in pixels (height is always 32 at 1x). """ width: Int height: Int createdAt: Time! """ Base URL of the current version's files: `{host}/{scale}x.{webp|avif}`. WebP always exists, AVIF when `hasAvif`. GIF and PNG are not stored (only versions made before still list them in `files`); get them through `prepareEmoteDownload`. """ host: String """ AVIF exists for every scale (static emotes where it is smaller than WebP). """ hasAvif: Boolean! """ The stored files of the current version. """ files: [EmoteFile!]! """ Formats `prepareEmoteDownload` accepts: WEBP, AVIF when stored, and GIF (animated) or PNG (static). """ downloadFormats: [FileFormat!]! """ Set by the owner; empty when there is none. """ description: String! """ Private emotes are left out of search, and only the owner's own sets can use them. """ private: Boolean! """ Whether the emote may be used as a personal emote (moderators can deny it). """ personalUse: Boolean! """ Live on the AI's approval only: usable in channel sets, but unlisted and not a personal emote until a moderator approves it. """ awaitingReview: Boolean! """ Frames of the current version (1 for still images). `null` while processing. """ frameCount: Int """ Emote sets containing this emote (personal sets are not listed), most recent first. """ sets(first: Int = 20): [EmoteSet!]! """ Creators credited next to the owner. """ attributions: [EmoteAttribution!]! """ Open ownership transfer; visible to the owner, the receiver and moderators. """ pendingTransfer: EmoteTransfer """ Audited changes, newest first; empty unless you are the owner or a moderator. """ history(first: Int = 50): [EmoteHistoryEntry!]! """ The newest appeal against a rejection; visible to the owner and moderators. """ appeal: EmoteAppeal """ Number of emote sets using this emote. """ usageCount: Int! """ Times this emote was added to a set during the last 7 days. """ trendScore: Int! """ Channels that currently show this emote (it is in their active set), most recently added first. """ channels(first: Int = 20): [Channel!]! """ Number of channels that currently show this emote. """ channelCount: Int! """ Usage statistics over the last `days` days (1 to 365). `null` unless you own the emote or have the EMOTE_STATS staff permission. """ stats(days: Int = 30): EmoteStats """ The variant family of this emote: every variant of its base emote (this emote included, when it is a variant), ordered by collection. Variants you cannot see are left out. """ variants: [EmoteVariant!]! """ The base emote and this emote's collection, when this emote is a variant. """ variantOf: EmoteVariant """ Where the emote was imported from, if it was. """ importedFrom: EmoteSource """ Whether you favorited this emote (false when signed out). """ favorited: Boolean! favoriteCount: Int! """ Owner and moderators only; null for others. """ moderation: EmoteModeration } type EmoteAppeal { id: ID! emote: Emote! user: User! message: String! """ OPEN, RESOLVED (accepted) or DISMISSED (declined). """ status: ReportStatus! response: String createdAt: Time! resolvedAt: Time } type EmoteAttribution { user: User! role: AttributionRole! addedAt: Time! } """ What `applyEmoteCollection` would change in a set. """ type EmoteCollectionPreview { """ `null`: back to the base emotes. """ collection: String """ Entries in the set. """ total: Int! """ Entries that would change. """ swapCount: Int! """ Entries that already show the collection's variant (or their base emote). """ unchanged: Int! """ Entries without a variant in the collection; they stay as they are. """ missing: Int! """ Entries with a variant that cannot be used here: not published yet, private, not allowed as a personal emote, or already in the set. """ blocked: Int! """ The changes in set order. """ swaps(first: Int = 48): [EmoteCollectionSwap!]! } type EmoteCollectionSwap { """ The chat name; the variant keeps it. """ name: String! from: EmoteSetEntry! to: EmoteSetEntry! } type EmoteConnection { nodes: [Emote!]! pageInfo: PageInfo! } type EmoteDownload { format: FileFormat! """ The scale delivered (the requested one, or the next smaller one stored). """ scale: Int! status: DownloadStatus! """ Set when READY. Converted files are served as attachments. """ url: String """ Size in bytes, when READY. """ size: Int """ When a converted file is deleted (a later request makes it again). """ expiresAt: Time """ Seconds to wait before asking again, while PENDING. """ retryAfter: Int error: String } type EmoteFile { name: String! url: String! format: FileFormat! """ MIME type, e.g. `image/webp`. """ mime: String! """ Whether the file is an animation (every file of an animated emote is). """ animated: Boolean! """ 1 to 4; 1x is 32px tall, scale n is meant for n times that. Files are not upscaled past the source, so a large scale of a small source has fewer pixels: size images from the emote's `width`/`height`. """ scale: Int! """ Pixel size of this file. """ width: Int! height: Int! """ Size in bytes. """ size: Int! } """ All filters are optional; `null` means "any". """ input EmoteFilter { animated: Boolean zeroWidth: Boolean """ Wide emotes (at least 1.6× wider than tall), e.g. banners. """ wide: Boolean includeNsfw: Boolean = false """ Emotes carrying all of these tags. """ tags: [String!] """ Emotes uploaded by this user. """ ownerId: ID """ Only emotes named exactly like the query (ignoring case). """ exactMatch: Boolean = false """ Only emotes the AI approved that no moderator has approved yet; they are unlisted until then. """ awaitingReview: Boolean = false } type EmoteHistoryEntry { id: ID! """ Who made the change; `null` for system changes or deleted users. """ actor: User """ E.g. `emote.moderate`, `emote.update`, `emote.transfer`, `emote.merge`. """ action: String! """ Details as JSON. """ data: String! createdAt: Time! } """ The newest version's moderation state, for the owner. """ type EmoteModeration { version: Int! status: OwnerModerationStatus! """ While the version is not published: its largest file, through the API (owner and moderators). """ previewUrl: String } type EmoteSearchResult { nodes: [EmoteSetEntry!]! """ Total matches, or -1 when unknown (search index temporarily unavailable). """ total: Int! page: Int! } type EmoteSet { id: ID! name: String! description: String! tags: [String!]! kind: EmoteSetKind! """ Emote slots. Sets at the user maximum (1000) have 1500 while the owner is a Supporter; personal sets follow their own rule. """ capacity: Int! owner: User! createdAt: Time! emoteCount: Int! """ Emotes in the set, in the order they were added. With `first`, only the earliest ones (a preview); `emoteCount` has the total. """ emotes(first: Int): [EmoteSetEntry!]! """ What you may do with this set: all for its owner and admins, an editor's permissions otherwise, nothing when signed out. """ viewerPermissions: [EditorPermission!]! """ Variant collections that have variants for emotes in this set, see `applyEmoteCollection`. """ variantCollections: EmoteSetCollections! """ Personal sets only: whether this is the one chat shows. Always false for other kinds. """ personalActive: Boolean! """ Personal sets you own: the channels this preset shows in instead of the active one. Empty for everything else. """ channels: [AssignedChannel!]! } type EmoteSetCollection { name: String! """ Entries of the set that have a variant in this collection. """ matches: Int! } type EmoteSetCollections { """ Collections with usable variants, most matches first. """ collections: [EmoteSetCollection!]! """ Entries that currently are variants: what `collection: null` swaps back to their base emotes. """ variantEntries: Int! } """ An emote as it appears in a set or search result. `name` is what you type in chat (an alias if one is set); `emote` resolves the full emote. """ type EmoteSetEntry { id: ID! name: String! """ `zeroWidth` is set by this entry rather than the emote. """ zeroWidthOverride: Boolean! """ Set when the entry uses an alias. """ originalName: String version: Int! width: Int! height: Int! animated: Boolean! zeroWidth: Boolean! nsfw: Boolean! hasAvif: Boolean! """ See `Emote.pendingReview`. """ pendingReview: Boolean! """ Base URL of the files, see `Emote.host`. """ host: String! """ When the emote was added to the set (null outside of sets). """ addedAt: Time """ Number of emote sets using this emote across JilTV. """ usageCount: Int! emote: Emote! } enum EmoteSetKind { USER CHANNEL GLOBAL """ A user's personal emotes, usable in every chat. One per user, never active in a channel. """ PERSONAL } input EmoteSetOp { type: EmoteSetOpType! emoteId: ID! """ For ADD and RENAME: the name in chat. Omit or `null` to use the emote's own name. """ alias: String """ For ADD and RENAME: replace the emote that already uses the name in this set instead of failing with `name_conflict`. """ overrideConflict: Boolean = false """ For ADD and ZERO_WIDTH. Default: follow the emote. """ zeroWidth: ZeroWidthMode } type EmoteSetOpResult { emoteId: ID! ok: Boolean! """ Machine-readable error, e.g. `name_conflict`, `set_full`, `already_in_set`. """ errorCode: String errorMessage: String """ For a successful ADD or RENAME: the resulting entry. """ entry: EmoteSetEntry } enum EmoteSetOpType { ADD REMOVE RENAME """ Sets the entry's zero-width mode (`zeroWidth`). """ ZERO_WIDTH } enum EmoteSort { """ Best text match first (default when searching). """ RELEVANCE """ Most added to sets during the last 7 days (default when browsing). """ TRENDING """ Used in the most emote sets. """ POPULAR NEWEST OLDEST """ Alphabetical by name. """ NAME """ People who added it during the last day / 7 days / 30 days (one vote per person). """ TOP_DAY TOP_WEEK TOP_MONTH """ Growth in additions compared with the period before. """ TRENDING_DAY TRENDING_WEEK TRENDING_MONTH } type EmoteSource { """ `7TV` """ platform: String! id: String! """ The original uploader's name there. """ owner: String """ The emote's page there. """ url: String! } type EmoteStats { """ Emote sets containing the emote now. """ sets: Int! """ Of those, channel sets (whether or not active). """ channelSets: Int! """ Of those, personal emote sets. """ personalSets: Int! """ Channels that currently show the emote (it is in their active set). """ activeChannels: Int! favorites: Int! """ Times the emote was added to a set in the period. """ added: Int! """ Times the emote was removed from a set in the period. """ removed: Int! """ One entry per day of the period, oldest first. """ days: [EmoteStatsDay!]! } type EmoteStatsDay { """ Start of the day (UTC). """ date: Time! added: Int! removed: Int! """ Sets containing the emote at the end of the day. """ sets: Int! } enum EmoteStatus { """ Uploaded; the image is being processed (usually about a second). """ PROCESSING ACTIVE """ Processing failed, e.g. an unsupported or broken file. """ FAILED """ Rejected by moderation. """ REJECTED } type EmoteTransfer { from: User! to: User! createdAt: Time! } """ A themed version of an emote, e.g. its Christmas version. A variant is an ordinary emote with its own ID, files and moderation; the link only groups it with its base emote under a collection name. """ type EmoteVariant { """ Collection name as entered, e.g. `Christmas`; matched case-insensitively. """ collection: String! emote: Emote! } """ The result of `equipBadge`. """ type EquipBadgePayload { """ The badge you wear now; `null` when you took it off. """ badge: Badge user: User! } """ The result of `equipDecoration`. """ type EquipDecorationPayload { """ The frame you wear now; `null` when you took it off. """ decoration: Decoration user: User! } """ The result of `equipPaint`. """ type EquipPaintPayload { """ The paint you wear now; `null` when you took it off. """ paint: Paint user: User! } input EventTopicInput { topic: String! """ Resume after this event `id`. """ since: String } enum FileFormat { AVIF WEBP GIF PNG } type FollowedBy { users: [User!]! """ How many there are in all. """ total: Int! } """ Any JSON value. """ scalar JSON type Mutation { """ Rename, retag or flag one of your emotes. """ updateEmote(id: ID!, input: UpdateEmoteInput!): Emote! @auth(scope: EMOTES_WRITE) """ Soft-deletes one of your emotes. It disappears from every set and channel. """ deleteEmote(id: ID!): Boolean! @auth(scope: EMOTES_WRITE) """ Makes `variantId` the `collection` variant of `emoteId`, e.g. its Christmas version (linking an existing variant again renames its collection). Both must be your emotes, unless you have EMOTE_MANAGE. Returns the family, see `Emote.variants`. """ addEmoteVariant(emoteId: ID!, variantId: ID!, collection: String!): [EmoteVariant!]! @auth(scope: EMOTES_WRITE) """ Unlinks a variant from its base emote. Both emotes stay as they are. """ removeEmoteVariant(variantId: ID!): Boolean! @auth(scope: EMOTES_WRITE) createEmoteSet(input: CreateEmoteSetInput!): EmoteSet! @auth(scope: SETS_WRITE) """ Copies any set into a new set of your own in one step, however big. Emotes you couldn't add by hand (deleted, rejected, someone else's private ones) are left out; names and zero-width settings carry over. """ duplicateEmoteSet(id: ID!, name: String!): EmoteSet! @auth(scope: SETS_WRITE) """ Another personal set to switch to (at most 10). Starts empty and inactive. """ createPersonalSet(name: String!): EmoteSet! @auth(scope: SETS_WRITE) """ Makes one of your personal sets the one chat shows; the previous one stays as it is. """ activatePersonalSet(id: ID!): EmoteSet! @auth(scope: SETS_WRITE) updateEmoteSet(id: ID!, input: UpdateEmoteSetInput!): EmoteSet! @auth(scope: SETS_WRITE) """ Deletes a set. Channels using it fall back to no active set. `deleteEmotes` also deletes the emotes in the set that the set owner uploaded (needs EMOTE_MANAGE for other people's sets); emotes of other uploaders stay. """ deleteEmoteSet(id: ID!, deleteEmotes: Boolean): Boolean! @auth(scope: SETS_WRITE) """ Applies up to 500 add/remove/rename operations atomically per operation: each one either succeeds or reports an error, without stopping the rest. Chat clients receive a single realtime update for the whole batch. """ editEmoteSet(id: ID!, ops: [EmoteSetOp!]!): EditEmoteSetPayload! @auth(scope: SETS_WRITE) """ Adds an emote to a set as `alias` (default: the emote's name). Fails with `name_conflict` when the name is taken, unless `overrideConflict` replaces the emote using it. Needs EMOTES_ADD in other people's sets. """ addEmoteToSet(setId: ID!, emoteId: ID!, alias: String, zeroWidth: ZeroWidthMode, overrideConflict: Boolean = false): EmoteSetEntry! @auth(scope: SETS_WRITE) """ Removes an emote from a set. Needs EMOTES_REMOVE in other people's sets. """ removeEmoteFromSet(setId: ID!, emoteId: ID!): EmoteSet! @auth(scope: SETS_WRITE) """ Renames an emote in a set (`alias: null` goes back to the emote's own name). Needs EMOTES_RENAME in other people's sets. """ renameSetEmote(setId: ID!, emoteId: ID!, alias: String): EmoteSetEntry! @auth(scope: SETS_WRITE) """ Swaps `emoteId` in a set for `newEmoteId` in one step. The new emote takes over the chat name (or `alias`, when given). Needs EMOTES_ADD in other people's sets. """ replaceSetEmote(setId: ID!, emoteId: ID!, newEmoteId: ID!, alias: String): EmoteSetEntry! @auth(scope: SETS_WRITE) """ Swaps every emote of a set for its variant in `collection` (`null`: back to the base emotes). Entries keep their chat names; emotes without a variant stay. Chat clients get one realtime update. With `newSetName` the set is first copied into a new set of yours and only the copy changes. Needs EMOTES_ADD and EMOTES_REMOVE in other people's sets. """ applyEmoteCollection(setId: ID!, collection: String, newSetName: String): ApplyEmoteCollectionPayload! @auth(scope: SETS_WRITE) """ Switches the emote set shown in a channel (`setId: null` clears it). """ setActiveEmoteSet(channelId: ID!, setId: ID): Channel! @auth(scope: CHANNELS_WRITE) """ Makes a YouTube channel show the owner's Twitch set again, now and after every switch there (picking a set for the YouTube channel ends that). Errors: `not_youtube`, `no_twitch`. """ followTwitchSet(channelId: ID!): Channel! @auth(scope: CHANNELS_WRITE) """ Needs the EDITORS permission. """ addChannelEditor(channelId: ID!, userId: ID!): Channel! @auth(scope: CHANNELS_WRITE) @deprecated(reason: "Use inviteChannelEditor; this now sends an invite with the default permissions.") """ Invite a user to edit a channel. They become an editor once they accept. Needs the EDITORS permission; only the owner can grant EDITORS. Default: EMOTES and SETS. """ inviteChannelEditor(channelId: ID!, userId: ID!, permissions: [EditorPermission!]): Channel! @auth(scope: CHANNELS_WRITE) cancelEditorInvite(channelId: ID!, userId: ID!): Channel! @auth(scope: CHANNELS_WRITE) """ Accept or decline your own invite to a channel. """ respondEditorInvite(channelId: ID!, accept: Boolean!): Boolean! @auth(scope: CHANNELS_WRITE) setEditorPermissions(channelId: ID!, userId: ID!, permissions: [EditorPermission!]!): Channel! @auth(scope: CHANNELS_WRITE) """ Remove an editor (needs EDITORS), or pass your own ID to leave the channel. """ removeChannelEditor(channelId: ID!, userId: ID!): Channel! @auth(scope: CHANNELS_WRITE) createReport(input: CreateReportInput!): Report! @auth(scope: REPORTS_WRITE) """ Tells JilTV you are in a channel with a JilTV client, so other clients can show your personal emotes and cosmetics there. Call it when joining and about every 5 minutes while you stay; a presence expires after 10 minutes. """ updatePresence(channelId: ID!): Presence! @auth """ Wears one of your paints in chat (`paintId: null` takes it off). Returns the paint you now wear. """ equipPaint(paintId: ID): EquipPaintPayload! @auth(scope: COSMETICS_WRITE) """ Wears one of your badges in chat (`badgeId: null` takes it off). Returns the badge you now wear. """ equipBadge(badgeId: ID): EquipBadgePayload! @auth(scope: COSMETICS_WRITE) """ Wears one of your avatar frames (decorations) around your profile picture (`decorationId: null` takes it off). Returns the frame you now wear. """ equipDecoration(decorationId: ID): EquipDecorationPayload! @auth(scope: COSMETICS_WRITE) """ Adds an emote to your favorites, or removes it (`favorite: false`). """ favoriteEmote(id: ID!, favorite: Boolean!): Emote! @auth(scope: EMOTES_WRITE) """ A download of the emote in one of its `downloadFormats`, in `scale` 1 to 4 (the 1x to 4x size; a missing scale falls back to the next smaller). WebP and AVIF are ready at once. GIF (animated emotes) and PNG (static emotes) are made on request and kept for a few days: the first call starts the conversion and returns `PENDING`; call again after `retryAfter` seconds until `READY`. Starting conversions is rate limited; works signed out. """ prepareEmoteDownload(id: ID!, format: FileFormat!, scale: Int! = 4): EmoteDownload! """ Give an emote to another user. Moderators transfer at once; owners send a request the receiver accepts with `respondEmoteTransfer`. """ transferEmote(id: ID!, toUserId: ID!): Boolean! @auth(scope: EMOTES_WRITE) """ Accept or decline a transfer sent to you, or cancel your own (`accept: false`). """ respondEmoteTransfer(id: ID!, accept: Boolean!): Boolean! @auth(scope: EMOTES_WRITE) """ Credit a creator next to the owner (`role: null` removes the credit). Owner or moderator. """ setEmoteAttribution(id: ID!, userId: ID!, role: AttributionRole): Boolean! @auth(scope: EMOTES_WRITE) """ Ask moderators to look at a rejected emote again (owner). """ appealEmote(id: ID!, message: String!): EmoteAppeal! @auth(scope: EMOTES_WRITE) } type Notification { id: ID! kind: NotificationKind! """ Not set for moderation decisions: moderators stay anonymous. """ actor: User channel: Channel emote: Emote """ The moderators' reason (EMOTE_REJECTED, IMPORT_*), when given. """ message: String """ IMPORT_*: the name of the imported set. """ subject: String """ IMPORT_*: how many emotes the decision covered. """ count: Int createdAt: Time! read: Boolean! } enum NotificationKind { """ `actor` invited you to edit `channel`. """ EDITOR_INVITE """ `actor` accepted your invite to `channel`. """ INVITE_ACCEPTED """ `actor` declined your invite to `channel`. """ INVITE_DECLINED """ `actor` removed you from `channel`, or left your channel. """ EDITOR_REMOVED """ `actor` wants to give you `emote`. """ EMOTE_TRANSFER_REQUEST """ `emote` changed owner (you gave or received it). """ EMOTE_TRANSFERRED """ `actor` declined to take `emote`. """ EMOTE_TRANSFER_DECLINED """ Moderators accepted your appeal; `emote` is back. """ APPEAL_ACCEPTED """ Moderators declined your appeal for `emote`. """ APPEAL_DECLINED """ Moderators approved `emote`. """ EMOTE_APPROVED """ Moderators rejected `emote`; `message` is their reason. """ EMOTE_REJECTED """ Moderators approved the `count` emotes of your import of `subject`. """ IMPORT_APPROVED """ Moderators rejected the `count` emotes of your import of `subject`; `message` is their reason. """ IMPORT_REJECTED """ You were accepted into the Creator Program; `message` is the staff note. """ CREATOR_APPROVED """ Your Creator Program application was declined; `message` is the reason. """ CREATOR_REJECTED """ Your creator account changed to `subject` (ACTIVE, SUSPENDED, TERMINATED); `message` is the reason. """ CREATOR_STATUS """ Old revenue share program: your listing `subject` was approved. """ CREATOR_LISTING_APPROVED """ Your listing `subject` was rejected; `message` is the reason. """ CREATOR_LISTING_REJECTED """ Old revenue share program: a payout of `subject` was sent. """ CREATOR_PAYOUT_SENT """ A payout of `subject` failed; it will be retried. """ CREATOR_PAYOUT_FAILED """ Your month `subject` (YYYY-MM) was settled and unlocked `count` rewards. """ CREATOR_REWARDS_UNLOCKED """ Staff designed your `subject` reward (BADGE, CUSTOM_PAINT); `count` community members can win it. """ CREATOR_REWARD_READY """ You won the community giveaway `subject`; the reward is in your account. """ CREATOR_GIVEAWAY_WON """ Your giveaway `subject` was drawn; `count` winners got their reward. """ CREATOR_GIVEAWAY_DRAWN """ `actor` sent you a trade offer. """ TRADE_RECEIVED """ `actor` answered your offer with a counteroffer. """ TRADE_COUNTERED """ `actor` accepted your trade offer. """ TRADE_ACCEPTED """ `actor` declined your trade offer. """ TRADE_DECLINED """ Staff cancelled a trade of yours. """ TRADE_CANCELLED """ Staff reversed a trade of yours. """ TRADE_REVERSED """ You can't trade for now. """ TRADE_RESTRICTED """ `actor` gave you a gift (no `actor` when anonymous); `subject` lists what it was. """ GIFT_RECEIVED """ `actor` followed you back: you are contacts now. """ NEW_CONTACT """ Your profile tag `subject` went to the Twitch account of that name; pick a new one (no waiting). """ HANDLE_RELEASED """ Moderators approved your profile banner; it is on your profile now. """ BANNER_APPROVED """ Moderators rejected or removed your profile banner; `message` is their reason. """ BANNER_REJECTED } """ An app as shown to users asked to allow it. """ type OAuthApp { """ The app's `client_id`. """ id: ID! name: String! description: String websiteUrl: String """ Reviewed by JilTV. """ verified: Boolean! """ Who registered the app. """ owner: User } """ One of your own emotes that is still being checked. """ type OwnerModerationItem { emoteId: ID! version: Int! name: String! status: OwnerModerationStatus! previewUrl: String createdAt: Time! } """ What uploaders see; no scores, thresholds or notes. """ enum OwnerModerationStatus { CHECKING APPROVED IN_REVIEW """ Waiting for a moderator because the AI could not check it. """ DELAYED REJECTED NONE } type PageInfo { """ Pass as `after` to get the next page. """ endCursor: String hasNextPage: Boolean! } type Paint { """ Staff keep it out of trading. """ tradeLocked: Boolean! """ A member of the old revenue share Creator Program who designed it; `null` for JilTV's own. """ creator: User """ Old revenue share program: the creator asked staff to publish the draft. """ reviewRequestedAt: Time """ Not part of the Supporter pool; only granted by staff. """ exclusive: Boolean! """ Kept out of what COSMETICS_ALL holders receive. """ staffExcluded: Boolean! """ Sub paint: earned after this many paid Supporter months. """ tenureMonths: Int id: ID! name: String! description: String data: PaintDocument! """ Bumps on every design change; cache definitions by `id` + `version`. """ version: Int! """ Drafts are only visible to staff and cannot be granted. """ published: Boolean! createdAt: Time! updatedAt: Time! """ Users who currently own this paint. """ ownerCount: Int! """ Tier staff picked for it, or `null` if none is shown. """ rarity: CosmeticRarity """ Who designed it, credited automatically: the creator first, then by how much they worked on it. Working copies also list unpublished work. """ designers: [User!]! """ Ownership numbers, refreshed every 10 minutes. """ stats: CosmeticStats! """ Base URL of baked shader loops: `{assetBase}/paints/{hash}.webp` (`-0.webp` is the first frame). """ assetBase: String! } """ A paint design document (JSON): layers clipped to the letters of a name, with the Twitch name color underneath, plus `shadows`, `stroke` and `fallback` (a plain `#rrggbbaa` color for clients that cannot render paints). `texture` is the whole paint baked into an animated WebP (`{assetBase}/paints/{texture}.webp`, first frame `-0.webp`). Optional `base` (`{ mode: "contrast", onLight, onDark, threshold }`) puts a contrast color picked from the name color underneath instead. Optional `phases` (`{ starts, morning, midday, evening, night }`) gives the paint its own look per time of day of the viewer; each look is a whole paint document with its own `texture`. The Render paints guide (/docs/paints) shows how to draw it. """ scalar PaintDocument enum Platform { TWITCH KICK YOUTUBE TIKTOK } """ Platform-wide totals. Cached; may lag a few minutes behind. """ type PlatformStats { """ Registered users. """ users: Int! """ Emotes that are processed and usable. """ emotes: Int! """ Channels connected to JilTV. """ channels: Int! } """ A user seen in a channel with a JilTV client recently. """ type Presence { user: User! channel: Channel! """ When the user last reported being in the channel. Presences expire after 10 minutes. """ lastSeenAt: Time! } type Query { """ Whether Supporter checkout is configured on this server. """ supporterAvailable: Boolean! """ Supporter time bought once (for yourself or as a gift): price and packages. """ supporterTime: SupporterTimeOffer! """ The Supporters' monthly reward running right now (what you get when you subscribe today). Public, also before the shop opens. """ monthlyRewards: [ShopPlacement!]! """ The Creator Program as the public sees it: rules, tiers, whether applications are open. """ creatorProgram: CreatorProgram! """ A community giveaway (public). """ creatorGiveaway(id: ID!): CreatorGiveaway """ The caller: user, auth method and granted scopes. `null` when unauthenticated. """ viewer: Viewer user(id: ID!): User """ Case-insensitive lookup by Twitch username, else by profile tag (`handle`). A username always wins. """ userByUsername(username: String!): User """ Users whose username, display name or profile tag starts with `query`, exact matches first. Banned accounts are left out. """ searchUsers(query: String!, first: Int = 8): [User!]! """ Look a user up by their account on a streaming platform: the numeric Twitch user ID or the YouTube channel ID. """ userByPlatform(platform: Platform!, platformId: String!): User """ An emote. Emotes that are not `ACTIVE` are only visible to their owner and moderators. """ emote(id: ID!): Emote """ Publicly listed (moderator-approved) emotes, newest first. `includeNsfw: false` leaves out NSFW emotes. """ emotes(first: Int = 48, after: String, includeNsfw: Boolean = true): EmoteConnection! """ Search and browse publicly listed emotes. Without `query` this is a filtered browse (default order: trending). NSFW emotes are hidden unless `filter.includeNsfw` is set. """ searchEmotes(query: String = "", filter: EmoteFilter, sort: EmoteSort, page: Int = 1, perPage: Int = 48): EmoteSearchResult! emoteSet(id: ID!): EmoteSet """ What applying a variant collection to a set would change (`collection: null`: back to the base emotes). """ emoteCollectionPreview(setId: ID!, collection: String): EmoteCollectionPreview! """ Sets that are available in every channel. """ globalEmoteSets: [EmoteSet!]! """ Platform-wide totals, refreshed every few minutes. """ platformStats: PlatformStats! channel(id: ID!): Channel """ Look a channel up by its ID on the streaming platform, e.g. the numeric Twitch user ID. """ channelByPlatform(platform: Platform!, platformId: String!): Channel """ Paints, newest first. Drafts (`includeDrafts`) are only visible to staff. Chat clients should use the edge-cached `GET /v1/cosmetics/catalog` instead. """ paints(includeDrafts: Boolean = false): [Paint!]! """ A paint. Drafts are only visible to staff. """ paint(id: ID!): Paint """ Badges, newest first. Drafts (`includeDrafts`) are only visible to staff. """ badges(includeDrafts: Boolean = false): [Badge!]! """ A badge. Drafts are only visible to staff. """ badge(id: ID!): Badge """ Avatar decorations, newest first. Drafts (`includeDrafts`) are only visible to staff. """ decorations(includeDrafts: Boolean = false): [Decoration!]! """ An avatar decoration. Drafts are only visible to staff. """ decoration(id: ID!): Decoration """ Your emotes that wait for AI moderation or a moderator, newest first. """ myModeration: [OwnerModerationItem!]! @auth(scope: EMOTES_WRITE) } type RealtimeEvent { """ The topic as you named it. """ topic: String! """ The event's position in its topic; `null` for events that can't be replayed. """ id: String """ `subscribed`, `resync`, or what happened, e.g. `set.emote_added`, `presence.joined`, `user.cosmetics`. """ type: String! data: JSON! } type Report { id: ID! targetType: ReportTarget! targetId: ID! reason: ReportReason! details: String status: ReportStatus! createdAt: Time! } enum ReportReason { COPYRIGHT NSFW HATE SPAM IMPERSONATION OTHER } enum ReportStatus { OPEN RESOLVED DISMISSED } enum ReportTarget { EMOTE USER SET } enum Role { USER MODERATOR ADMIN """ Every right. Belongs to a single account and can't be given away. """ OWNER } """ Permissions an API key or app access token can be granted. Reading public data needs no scope. In the device flow, request them space-separated in `scope`. """ enum Scope { """ Update and delete your own emotes. """ EMOTES_WRITE """ Create, edit and delete emote sets you own or edit. """ SETS_WRITE """ Switch the active set and manage editors of channels you own or edit. """ CHANNELS_WRITE """ Submit reports. """ REPORTS_WRITE """ Equip cosmetics you own. """ COSMETICS_WRITE } type Session { id: String! """ The browser's user agent at sign-in. """ userAgent: String createdAt: Time """ The session making this request. """ current: Boolean! } type ShopPlacement { id: ID! section: ShopSection! startsAt: Time! endsAt: Time! """ Order within the section, lowest first. """ position: Int! """ The event an `EVENT` placement belongs to. """ eventName: String product: ShopProduct! } """ One cosmetic or a bundle of several, sold for a price. """ type ShopProduct { id: ID! name: String! description: String! """ In cents of `currency`. """ priceCents: Int! """ What the parts would cost on their own (bundles), shown struck through; `null` if not set. """ compareAtCents: Int currency: String! """ More than one cosmetic. """ bundle: Boolean! paints: [Paint!]! badges: [Badge!]! decorations: [Decoration!]! archived: Boolean! createdAt: Time! updatedAt: Time! } """ Where a product shows in the shop. `REWARD` is the Supporters' monthly reward, claimed for free. """ enum ShopSection { FEATURED ROTATION REWARD """ Grouped under `eventName`, e.g. a Halloween shop. """ EVENT """ Old revenue share Creator Program listings; no longer used. """ CREATOR } """ What a staff role allows. Admins and the owner have all of these; a moderator has those of their staff roles. """ enum StaffPermission { """ Review queue, import reviews, approving and rejecting emotes. """ EMOTE_REVIEW """ Edit, delete, transfer and merge other people's emotes; download originals; retry failed processing. """ EMOTE_MANAGE """ Usage statistics of every emote (owners always see their own). """ EMOTE_STATS """ Change the AI moderation policy and worker settings, and run checks of existing emotes. """ MODERATION_SETTINGS """ Edit, rename and delete other people's emote sets (not global ones). """ SETS_MANAGE """ Manage the cosmetic shop: products, bundles, schedule, testers and test orders. """ SHOP """ Answer appeals against rejections. """ APPEALS """ Work the report queue. """ REPORTS """ Ban and unban users below your own role. """ BANS """ Create and edit private working drafts of paints, badges and avatar decorations. """ COSMETICS_EDIT """ Approve and publish cosmetic drafts, or unpublish live cosmetics. """ COSMETICS_PUBLISH """ Delete cosmetics, including published ones. """ COSMETICS_DELETE """ Give cosmetics to users and take them back. """ COSMETICS_GRANT """ Receive every published paint, badge and decoration automatically, except those an admin keeps out. """ COSMETICS_ALL """ Reserve names for emotes and aliases. """ RESERVED_NAMES """ Creator Program: review applications, suspend creators, manage codes, attributed purchases and giveaways. """ CREATORS """ Creator rewards: program settings, reward tiers, reward and purchase corrections, custom community cosmetics; also refunds. """ CREATOR_REWARDS """ Trading: settings, testers, all trades, cancelling and reversing trades, restricting traders, locking cosmetics out of trading. """ TRADES """ Site statistics: users, Supporters, emotes, shop and trading over time. """ SITE_STATS } """ A named set of staff permissions that also sets a rank. A user's role is the highest rank among their staff roles. """ type StaffRole { id: ID! name: String! """ `#rrggbb`, or `null` for the default color. """ color: String permissions: [StaffPermission!]! """ MODERATOR or ADMIN: the rank holders get. Only the owner manages ADMIN roles. """ rank: Role! """ Everyone promoted to the rank gets its default roles. """ isDefault: Boolean! """ Staff holding this role. """ memberCount: Int! createdAt: Time! } """ Realtime updates over one WebSocket: connect to `wss://events.jiltv.app/v1/events/graphql` with the `graphql-transport-ws` protocol (e.g. the `graphql-ws` npm package). Chat clients that want the leanest wire format can use `wss://events.jiltv.app/v1/events/ws` instead, which carries the same events. """ type Subscription { """ Follows any number of topics at once: - `twitch:` (also `kick:`, `youtube:`): emote and set changes, presence - `cosmetics`: what chatters wear, for every channel - `me`: your own events, such as notifications (signed in) Each topic first sends a `subscribed` event (or `resync`: events after `since` are gone, reload the topic's state), then the events after `since`, then live events. Keep the newest `id` per topic and pass it as `since` when you reconnect to miss nothing. The subscription ends when the client falls too far behind or the server restarts: reconnect and resume. """ events(topics: [EventTopicInput!]!): RealtimeEvent! } """ Your Supporter subscription. """ type Supporter { """ Whether Supporter perks currently apply. """ active: Boolean! """ Stripe subscription status, e.g. `active`, `past_due`, `canceled`, or `none`. """ status: String! """ When the current billing period ends. """ currentPeriodEnd: Time """ The subscription ends at `currentPeriodEnd` instead of renewing. """ cancelAtPeriodEnd: Boolean! """ Paid Supporter months in total (sub months), subscribed and bought. """ months: Int! """ Bought Supporter time (yours or gifted) runs until then; it starts after a running subscription. """ giftUntil: Time } type SupporterTimeOffer { """ Price of one month in cents (EUR). """ monthCents: Int! """ Packages on sale, in months. """ months: [Int!]! """ Price of each package in cents (EUR), in the order of `months`. Longer packages cost less per month. """ prices: [Int!]! } """ An ISO-8601 timestamp, e.g. `2026-10-04T18:30:00Z`. """ scalar Time input UpdateEmoteInput { name: String tags: [String!] zeroWidth: Boolean """ Up to 500 characters. """ description: String private: Boolean } input UpdateEmoteSetInput { name: String capacity: Int description: String tags: [String!] } type User { id: ID! """ The account's name: the Twitch login with Twitch connected, else the name picked when signing up with YouTube. Stays the name for search and lookups even when a `handle` is set. """ username: String! """ Platform accounts connected to this user (Twitch, YouTube, TikTok), at most one per platform. """ connections: [Connection!]! """ Self-chosen profile tag shown instead of the username (`@handle`); `null` shows the username. """ handle: String """ When you may change your tag next; `null` when you can now. Only set on your own user. """ handleChangeableAt: Time displayName: String! avatarUrl: String """ Twitch chat name color (`#rrggbb`) as of the last login, `null` if never set or without Twitch (paints then lie on a neutral color). """ twitchColor: String bio: String role: Role! banned: Boolean! """ Whether the user is a Supporter right now (subscription or bought/gifted time; staff perks don't count). """ supporter: Boolean! createdAt: Time! """ Emotes uploaded by this user, newest first. """ emotes(first: Int = 48, after: String): EmoteConnection! emoteSets: [EmoteSet!]! """ Channels this user owns or edits, owned ones first. """ channels: [Channel!]! """ The paint this user wears in chat by default. Supporters can wear another one per channel (outfits): chat clients look chatters up per channel, see the chat integrations guide. """ paint: Paint """ Paints this user owns. Public; `expiresAt` and `note` only for the user and staff. """ ownedPaints: [CosmeticGrant!]! """ The badge this user wears in chat by default; may differ per channel, like `paint`. """ badge: Badge """ Badges this user owns. Public; `expiresAt` and `note` only for the user and staff. """ ownedBadges: [CosmeticGrant!]! """ The frame this user wears around their profile picture by default; may differ per channel, like `paint`. """ decoration: Decoration """ Avatar decorations this user owns. Public; `expiresAt` and `note` only for the user and staff. """ ownedDecorations: [CosmeticGrant!]! """ Emotes this user can use in every chat, or `null` if they never set any up. Supporters can pick another selection per channel; chat clients look it up per channel. """ personalSet: EmoteSet """ Staff roles of a staff member. Only visible to staff. """ staffRoles: [StaffRole!]! """ Color of the highest staff role that has one, for the role badge; `null` for users and roles without a color. """ roleColor: String """ Name of the staff role the badge shows (the one `roleColor` comes from, else the highest); `null` for users without staff roles. """ roleName: String """ How many people follow this user. Always public. """ followerCount: Int! """ How many people this user follows. Always public. """ followingCount: Int! """ You follow this user. """ followedByViewer: Boolean! """ This user follows you. """ followsViewer: Boolean! """ You follow each other. """ isContact: Boolean! """ You may see `followers` and `following` (the user allows it, or it is you, or you are staff). """ followListsVisible: Boolean! """ Who follows this user, newest first. Error when `followListsVisible` is false. """ followers(first: Int = 30, after: String): UserConnection! """ Whom this user follows, newest first. Error when `followListsVisible` is false. """ following(first: Int = 30, after: String): UserConnection! """ People you follow who follow this user ("Followed by A, B and 3 others"); your contacts first. Empty when the lists are private. """ followedBy(first: Int = 3): FollowedBy! } type UserConnection { nodes: [User!]! pageInfo: PageInfo! } type Viewer { """ Others may see who follows you and whom you follow. """ followListsPublic: Boolean! """ Your Creator Program account, or `null`. """ creator: Creator """ Your latest Creator Program application, or `null`. """ creatorApplication: CreatorApplication """ The Creator Code attached to your Supporter subscription, or `null`. """ creatorSubscriptionCode: CreatorSubscriptionCode supporter: Supporter! user: User! authMethod: AuthMethod! scopes: [Scope!]! """ What you may do as staff: everything for admins and the owner, your staff roles' permissions as a moderator, nothing otherwise. """ staffPermissions: [StaffPermission!]! """ Every set you may edit: your own, plus those of channels you are an editor of. Global sets are excluded (admins edit them in their own tooling). """ editableSets: [EmoteSet!]! """ Devices you are signed in on, newest first. Empty for API keys. """ sessions: [Session!]! """ Apps you allowed to act for you through the device flow, newest first. Empty for API keys and apps. """ connectedApps: [ConnectedApp!]! """ Your favorite emotes, most recently favorited first. """ favorites(first: Int = 48, after: String): EmoteConnection! """ Editor invites waiting for your answer. """ invites: [EditorInvite!]! """ Newest first. """ notifications(first: Int = 30): [Notification!]! unreadNotifications: Int! """ Your personal emotes, usable in every chat; created on first access. Its `capacity` is your number of slots: 3, or as a Supporter 10 plus one per paid month after the first, up to 25. Change it with `editEmoteSet`. NSFW emotes are not allowed. """ personalSet: EmoteSet! """ All your personal sets, the active one first. Only the active one shows in chat. """ personalSets: [EmoteSet!]! } """ Zero-width of one set entry. """ enum ZeroWidthMode { """ Follow the emote's own zero-width setting. """ DEFAULT ON OFF }