Skip to content

Chat

The chat module’s root lookups: the audience’s rooms, a room’s transcript and bans, and the moderators an audience can use.

Field Type Description
chat IAudienceChat! The instance’s IAudienceChat mixin. Left out of the schema where its module isn’t installed.
Operation Returns Description
removeMyChatMessage
input: ChatMessageRemoveOwnInput!
ChatMessageRemoveOwnPayload Removes one of your own messages from its chat room. Everyone in the room stops seeing it at once. requires chat:write:self
reportChatMessage
input: ChatMessageReportInput!
ChatMessageReportPayload Reports a message in a venue’s or locale’s chat room to the audience’s admins, who see it in the console’s Reports queue at once and can remove it or ban the sender. Optionally blocks the sender too. A post as the venue or as a person can be reported like any other; blocking ignores it, since a listing has no sender to block. Same as reportContent with MESSAGE. requires chat:write:self
sendMyChatMessage
input: ChatMessageSendOwnInput!
ChatMessageSendOwnPayload Says something in a chat room as yourself. The message reaches everyone following the room at once. requires chat:write:self or chat:write:venue
Operation Returns Description
localeChat
localeId: ID!
watch: Boolean
ChatRoomEvent! Follows a locale’s chat room, for people out in the locale and not at a venue: ChatJoined, then everything the room says and who comes and goes, until ChatLeft. The room’s admins join from anywhere. requires chat:read:self
venueChat
venueId: ID!
watch: Boolean
ChatRoomEvent! Follows a venue’s chat room: ChatJoined, then everything the room says and who comes and goes, until ChatLeft. Open to people at the venue, and to the room’s admins from anywhere. requires chat:read:self or chat:read:venue

Object

One of Arbiter’s guard policies about the AI host, and the score it flags at for the audience.

Field Type Description
default Float! The score it flags at unless someone sets another.
key String! The policy, e.g. rule_override.
name String! What it checks, for people.
overridden Boolean! Whether someone set its score.
value Float! The score (0 to 1) it flags at.

Object · implements IModerationProvider, IProvider

Arbiter (Moderation::Arbiter, key moderation_lmstudio): the moderator and AI host (Glam) that runs on someone’s own Mac with local models, following the moderation feed over a websocket. How it judges and hosts for the audience is set in the Moderation plugin’s settings.

Field Type Description
actions [String!]! Actions it can take, e.g. escalate or remove_message. An audience grants it some of them.
categories [String!]! Policy categories it judges, e.g. spam or threats.
events [String!]! Chat events it receives, e.g. message.created or user.joined.
following Boolean! Whether it reads this audience’s chat now: always for inline ones; for remote ones, while a live service token of the audience’s is issued for it with chat:moderate:*.
inline Boolean! Whether it receives each event on this server as it happens.
key String! Its key, e.g. karafun.
name String! Its name, e.g. KaraFun.
remote Boolean! Whether it runs on its own server and dials in for the event feed.
settings ArbiterModerationSettings How Arbiter judges and hosts for the endpoint audience. Admins only; null for everyone else. requires audience:admin:*

Object

How Arbiter judges and hosts for an audience, set in the console’s Moderation plugin. Unset values show their defaults; the Mac keeps its own value for anything nobody has set yet.

Field Type Description
alpha Float! The conformal sets’ error rate (0.01 to 0.3): lower makes more answers unsure.
configured Boolean! Whether anyone has set anything yet.
coverageThreshold Float! Under this share of the answer on true/false (0.1 to 0.9), a check is unscored and goes to a person.
evaluationTypes [String!]! The evaluation queue’s work types Arbiter’s worker takes.
glamFastLane Boolean! Whether Glam answers from the backend (a model picked for the hosting AI capability): Arbiter then hosts nothing itself and reviews Glam’s outputs (glam.output events).
glamMode String! What Glam, the AI host, does: shadow (drafts, posts nothing), approve (a person approves each step) or live.
guardPolicies [ArbiterGuardPolicy!]! The guard’s policies about the AI host, with the score each flags at.
hostAvatar String! The AI host’s picture in the chats, an https URL; blank for Glam’s.
hostName String! What the AI host is called in the chats and its own prompt (default Glam).
prompts [ArbiterPrompt!]! The prompts Arbiter’s models are shown, as this audience has them.
roomGuidelines String! What Glam’s “Re-show guidelines” posts.
rules [ArbiterRule!]! The moderation rules (config/moderation/matchers.yml), with the score each is acted on at per venue rating.
rulesEnabled Boolean! Whether the moderation rules are checked.
rulesModel String! Which model judges the rules: guard (fast) or decisions.
updatedAt ISO8601DateTime When someone last changed them.
venueRating String! Which rules’ thresholds apply: general (all ages) or adult.
workTypes [String!]! The work types there are to choose from.

Object

One of the prompts Arbiter’s models are shown, as this audience has it: the repo’s default or the audience’s own. {{host_name}} and {{app_name}} are filled in by the server, the arguments by the Mac.

Field Type Description
arguments [String!]! The {{variables}} the Mac fills in, besides the server’s.
body String! The template as this audience has it.
custom Boolean! Whether the audience’s admins wrote it (deletable).
defaultBody String! The repo’s default (config/arbiter/prompts).
description String! Where it is used.
digest String! The first 16 hex digits of the body’s SHA-256, as traces record.
name String! The template, e.g. glam.system.
overridden Boolean! Whether this audience changed it.
updatedAt ISO8601DateTime When this audience last changed it.
use String! How the Mac uses it: system (the system prompt) or user_suffix (after the chat).
version String! The default’s version, with the audience’s change time when overridden.
worker String The AI worker it belongs to: glam, moderation or research.

Object

One moderation rule Arbiter checks, and the score it is acted on at for the audience, per venue rating.

Field Type Description
adult Float! The score (0 to 1) it is acted on at in an adult room.
defaultAdult Float! The matchers’ seed score for an adult room.
defaultGeneral Float! The matchers’ seed score for a general room.
general Float! The score (0 to 1) it is acted on at in a general room.
key String! The rule, e.g. identity_hate.
name String! The rule, for people.
overridden Boolean! Whether someone set its scores.

Object · implements IAudienceChat

The local Chat implementation of the chat module’s root lookups.

Field Type Description
account ChatAccount Its connection to the provider that runs its rooms, e.g. its Discord server. Null on AudienceKit, and for anyone but its admins. requires chat:write:*
discordApp DiscordApp Its own Discord application, whose bot “Add bot” adds (setDiscordApp). Admins only. requires chat:write:*
moderationProviders
after: String
before: String
first: Int
last: Int
IModerationProviderConnection! The chat moderators audiences can use, and what each reads and can do.
provider ChatProvider! Who runs its rooms: AudienceKit unless it connected another provider. Apps check inApp before opening a room, and otherwise send people to the room’s url.
providers
after: String
before: String
first: Int
last: Int
ChatProviderConnection! The chat providers an audience can use, and what each supports.
venueAccounts [ChatAccount!]! Venues with a chat community of their own (e.g. a venue’s own Discord server), whose rooms go there instead of the audience’s. Admins only. requires chat:write:*

Object · implements IProvider

AudienceKit itself as a built-in provider: the seller of covers taken in the apps or at the door.

Field Type Description
key String! Its key, e.g. karafun.
name String! Its name, e.g. KaraFun.

Object · implements Sender

Software with a name of its own, like Glam, the AI host. Never a person, so it has no presence and nobody to block.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
handle String! Which bot, e.g. glam. Stable across renames.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.

Object

An audience’s connection to the provider that runs its chat rooms, e.g. its Discord server. Its bot token is stored encrypted and never returned.

Field Type Description
audienceBot Boolean! Whether its bot is the audience’s own Discord application’s (setDiscordApp), added through Discord’s OAuth.
audiencekitBot Boolean! Whether its bot is AudienceKit’s own, added through Discord’s OAuth (startDiscordBotInstall), rather than a pasted token.
botInstallUrl String A link that adds its bot to its server with the permissions it needs there, to copy or send to the server’s owner. Null for a pasted token.
botServers [DiscordPlace!]! The servers the audience’s own bot is in, to pick from. Empty for AudienceKit’s bot, which is in other audiences’ servers too.
bridge Boolean! Whether an admin turned the bridge on (connectChat bridge).
bridged Boolean! Whether the bot bridges the rooms now: the bridge is on and there’s a bot token. The apps keep their rooms; the lines go both ways, or only come in (readOnly).
channels [ChatChannel!]! Its venues’ and locales’ channels.
eventId ID The event whose own community it is; null for the audience’s and venues’.
externalId String! The community’s ID on the provider, e.g. a Discord server ID.
hasBotToken Boolean! Whether it has a bot: a stored token, or AudienceKit’s own bot.
id ID! Unique identifier.
inviteUrl String The link that lets people into the community.
lastError String Why the last check with the provider failed, if it did.
lastVerifiedAt ISO8601DateTime When the provider last accepted its token.
memberCount Int! How many people (not bots) were in its servers when last saved.
members
after: String
before: String
first: Int
last: Int
search: String
server: String
ChatServerMemberConnection! The people (bots last) the bot saw in its servers when last saved, by name.
migratedBotInstallUrl String A link that adds its bot to the server it migrated from, to read: View Channels and Read Message History.
migratedFrom String The server the community is moving from, which the bot reads too.
name String The community’s name on the provider.
provider ChatProvider! The provider.
readOnly Boolean! Whether the bridge only reads (connectChat readOnly): the provider’s messages come in for signed-in people to read and report, nothing goes out.
savedChannels [ChatServerChannel!]! The channels the bot saw in its servers when last saved, in the servers’ order.
serverChannels
server: String!
[DiscordPlace!]! A server’s text channels, to pick from: the community’s, the one it migrated from, or one the audience’s own bot is in.
syncError String Why the last save of its servers’ channels or members fell short.
syncedAt ISO8601DateTime When its servers’ channels and members were last saved.
venueId ID The venue whose own community it is; null for the audience’s.
venueName String That venue’s name.

Object

A venue’s or locale’s room as one of the chat provider’s channels.

Field Type Description
externalId String! The provider’s channel ID.
id ID! Unique identifier.
localeId ID The locale whose room it is, or null for a venue.
migratedChannelId String The room’s channel in the server the community migrated from, whose messages come in too.
name String The channel’s name, as the bot last saw it (Discord).
url String Where the apps send people to the room.
venueId ID The venue whose room it is, or null for a locale.

Object

One of your friends, as a chat room names them.

Field Type Description
name String Their name in full.
userId ID! Their user ID.

Object

A chat room’s first event, on joining it: who is there, its recent history and its pinned announcement.

Field Type Description
expiresBefore ISO8601DateTime! When the room stops showing messages: those sent before it have expired (its chat retention) for everyone but its admins, whose history goes back further. The apps put a divider there between what has cleared and what is current.
history [ChatMessagePosted!]! The room’s last 100 messages, oldest first: the last 24 hours of it, or all of it for its admins. Removed messages and people you blocked are left out.
outOfRange Boolean! Whether you’re in the room only because you’re an admin, away from it. ChatRangeChanged says when that changes.
pinnedMessage ChatMessagePosted The announcement pinned under the room’s title, however old.
readOnly Boolean! Whether the room mirrors a provider’s channel (connectChat readOnly): read and report here, reply on the provider (replyUrl). Sending fails.
replyUrl String With readOnly: the channel’s page on the provider, to reply there, e.g. a Discord channel link.
roster ChatRoster! Who is in the room now, and who’s your friend.

Object

A chat room’s last event: you’re out of the room, and the subscription ends.

Field Type Description
reason ChatLeftReason! Why.

Object

Someone hosting as a listing on what’s on in the room arrived or left: the whole lineup’s presence again, replacing ChatRoster.lineup.

Field Type Description
lineup [ChatLineupPresence!]! Everyone on what’s on in the room now.

Object

Someone on what’s on in a chat room now (an event’s people, tonight’s lineup at the venue), and how reachable whoever hosts as them is (see LineupPresence). A listing is public, so everyone in the room sees it.

Field Type Description
personId ID! The person (listing) on the lineup.
presence Presence! ONLINE while anyone hosting as them is in a chat room, PUSH while a notification reaches one of them, else OFFLINE (also for someone nobody has hosted as tonight).

Object

A message in a chat room, as it was posted.

Field Type Description
message ChatMessage! The message.
senderPresence Presence ONLINE when its sender is in the room now; PUSH when they aren’t but a notification reaches them, which only their friends and the room’s admins see; otherwise null, as for a post as the venue or a listing.

Object

Who removed a chat message, when and why. Only transcripts that include removed messages carry it.

Field Type Description
at ISO8601DateTime! When it was removed.
byName String The name of the person who removed it; null when a moderation provider did, or the person is gone.
bySender Boolean! Whether the sender took it back themself.
byUserId ID The ID of the person who removed it.
provider String The name of the moderation provider that removed it, such as “Claude”.
reason String Why it was removed, when the remover said; “Room cleared” for a clear.

Object

A message taken out of the room, by its sender or an admin. Nothing shows it again.

Field Type Description
messageId ID! The ID of the message.

Object

A message its sender or an admin edited.

Field Type Description
message ChatMessage! The message as it is now.

Object

An announcement pinned under the room’s title, replacing whichever was, or taken down from there.

Field Type Description
announcement ChatMessage The announcement, when pinned.
messageId ID! The ID of the announcement.
pinned Boolean! Whether it’s pinned now.

Object · implements IUserSummary

Someone’s first connection joined the room (ONLINE), or their last one left it or lapsed. Someone who left shows as PUSH to their friends and the room’s admins when a notification still reaches them, otherwise OFFLINE, and stays listed until recentUntil.

Field Type Description
avatarUrl PhotoURL Their profile photo, on arriving.
name String First name and last initial (“Aurora B.”), on arriving; the roster names your friends in full.
presence Presence! Where they are now.
recentUntil ISO8601DateTime On leaving: the room keeps listing them, offline, until then (30 minutes after they were last there, or when what they host there ends).
sharedTribes [Tag!]! The tribes you and they both identify with, for the “You’re both” mark. Only the two of you see it; empty for you and for anyone you share none with.
userId ID! Their user ID.

Object

A short question an event’s chat room puts to the people in it, to get them talking to each other in the venue. Each shows once a night, in order (ChatPrompts).

Field Type Description
answer String A trivia question’s answer.
answerCount Int! How many messages in the room answer it.
id ID! The ID of the prompt.
kind ChatPromptKind! What it asks.
position Int! Its place in the night, from 0.
revealAt ISO8601DateTime When a trivia question’s answer shows for everyone.
shownAs ChatPromptShownAs How it went up, if it has.
shownAt ISO8601DateTime When it went up, if it has.
takenDown Boolean! Whether it went up and was taken out of the room since (removeChatPrompt, or a moderator).
text String! The question.

Object

The prompt a PROMPT message puts to the room, with its place in the night’s prompts.

Field Type Description
answer String A trivia question’s answer: the apps hide it until tapped or revealAt.
id ID! The ID of the prompt; answers send it as promptId.
kind ChatPromptKind! What it asks.
nextAt ISO8601DateTime When the next rotates in, if one will.
number Int! Which prompt of the night it is, from 1.
revealAt ISO8601DateTime When the answer shows for everyone.
shownAs ChatPromptShownAs! How it went up.
text String! The question.
total Int! How many the night will show, at most.

Object

A hand-written list of chat prompts staff can start an event from (ChatPrompts::STARTER_SETS).

Field Type Description
file JSON! It as an audiencekit.chatPrompts file.
key String! Its key, for setEventChatPrompts(starterSet:).
name String! What it is for (“Viewing party”).
prompts [ChatPrompt!]! Its prompts, unsaved.

Object · implements IProvider

A chat provider an audience’s rooms can run on (Chat::Provider), and what AudienceKit can do with it: AudienceKit (its own), Discord, Matrix or IRC. Apps offer only what the provider supports.

Field Type Description
bridgeModes [String!]! How its bridge can run: “on” carries lines both ways, “read” only brings the provider’s in (connectChat readOnly).
bridges Boolean! Whether a bot can bridge its rooms with the apps’ own (ChatAccount.bridge).
channels Boolean! Whether each venue’s and locale’s room can be one of its channels.
inApp Boolean! Whether the rooms run in the apps (the live room subscriptions and sendMyChatMessage). When false, apps send people to the room’s url instead.
joinTokens Boolean! Whether members join its rooms with a short-lived room token AudienceKit mints once it has checked they may.
key String! Its key, e.g. karafun.
moderates Boolean! Whether the moderation feed sees its rooms.
name String! Its name, e.g. KaraFun.
storesMessages Boolean! Whether AudienceKit holds the rooms’ live state and history itself, rather than the provider carrying them.
verifies Boolean! Whether an account’s credentials can be checked with it.

Object

The connection type for ChatProvider.

Field Type Description
edges [ChatProviderEdge] A list of edges.
nodes [ChatProvider] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node ChatProvider The item at the end of the edge.

Object

An admin crossed the edge of the room: they stay in it either way.

Field Type Description
outOfRange Boolean! Whether they’re in the room only because they’re an admin, away from it.

Object · implements IUserSummary

Someone who left a chat room in the last 30 minutes, or hosts what is on there now, whom the room still lists, offline.

Field Type Description
avatarUrl PhotoURL Their profile photo.
friend Boolean! Whether they are your friend.
lastSeenAt ISO8601DateTime When they were last in the room; null for a host who posted from Backstage.
name String In full for your friends; first name and last initial (“Aurora B.”) for anyone else.
presence Presence! PUSH to their friends and the room’s admins when a notification reaches them, otherwise OFFLINE.
recentUntil ISO8601DateTime! When the room stops listing them: 30 minutes after they were last there, or when what they host ends, whichever is later.
sharedTribes [Tag!]! The tribes you and they both identify with, for the “You’re both” mark. Only the two of you see it; empty for you and for anyone you share none with.
userId ID! Their user ID.

Object

An admin cleared the room, or its oldest messages expired (its chat retention): every message sent up to then is gone.

Field Type Description
clearedAt ISO8601DateTime! Messages sent at or before this are removed.
expired Boolean! Whether they expired rather than an admin clearing them. Apps keep what was sent after clearedAt, and mark an admin clearing in the room.

Object

The connection type for ChatRoom.

Field Type Description
edges [ChatRoomEdge] A list of edges.
nodes [ChatRoom] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node ChatRoom The item at the end of the edge.

Object

Who is in a chat room as you join it. ChatPresenceChanged keeps it current afterwards.

Field Type Description
friends [ChatFriend!]! All your friends, in the room or not, named in full, so a friend who arrives later can be marked and named.
lineup [ChatLineupPresence!]! Everyone on what’s on in the room now (its event’s people, tonight’s lineup at the venue), whether or not they have been in it, and how reachable they are. ChatLineupChanged keeps it current.
people [ChatRosterPerson!]! Everyone in the room now, you included: your friends first.
recent [ChatRecentPerson!]! Who left the room in the last 30 minutes, and the hosts of what’s on there, the latest to leave first. The apps list them offline until recentUntil.

Object · implements IUserSummary

Someone in a chat room.

Field Type Description
avatarUrl PhotoURL Their profile photo.
friend Boolean! Whether they are your friend.
name String In full for you and your friends; first name and last initial (“Aurora B.”) for anyone else.
sharedTribes [Tag!]! The tribes you and they both identify with, for the “You’re both” mark. Only the two of you see it; empty for you and for anyone you share none with.
userId ID! Their user ID.

Object

A channel in one of a chat account’s servers, as its bot last saw it (Chat::Discord::Sync).

Field Type Description
externalId String! The provider’s channel ID.
id ID! Unique identifier.
kind Int The provider’s channel type (Discord: 0 text, 2 voice, 4 category, 5 announcement).
name String Its name on the provider.
parentExternalId String The category it sits in.
position Int Where the server lists it.
serverId String! The provider’s server ID.
url String! Where it opens on Discord.

Object

Someone in one of a chat account’s servers, as its bot last saw them (Chat::Discord::Sync).

Field Type Description
bot Boolean! Whether it is a bot.
externalId String! The provider’s user ID.
id ID! Unique identifier.
joinedAt ISO8601DateTime When they joined the server.
name String The name the server shows: nickname, display name or username.
roleIds [String!]! Their roles’ IDs in the server.
serverId String! The provider’s server ID.
userId ID The AudienceKit user with the same Discord account, if any.
userName String That user’s name in AudienceKit.
username String Their username on the provider.

Object

The connection type for ChatServerMember.

Field Type Description
edges [ChatServerMemberEdge] A list of edges.
nodes [ChatServerMember] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.
totalCount Int! How many there are in all, whatever page this is.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node ChatServerMember The item at the end of the edge.

Object · implements IModerationProvider, IProvider

Our AI moderator, moderation_claude (Moderation::Claude), which runs on its own server and judges messages with Claude.

Field Type Description
actions [String!]! Actions it can take, e.g. escalate or remove_message. An audience grants it some of them.
categories [String!]! Policy categories it judges, e.g. spam or threats.
events [String!]! Chat events it receives, e.g. message.created or user.joined.
following Boolean! Whether it reads this audience’s chat now: always for inline ones; for remote ones, while a live service token of the audience’s is issued for it with chat:moderate:*.
inline Boolean! Whether it receives each event on this server as it happens.
key String! Its key, e.g. karafun.
model String! The model that judges each message.
name String! Its name, e.g. KaraFun.
remote Boolean! Whether it runs on its own server and dials in for the event feed.
reviewModel String! The model that takes a second look before it removes, kicks or bans.

Object

The audience’s own Discord application (setDiscordApp), whose bot startDiscordBotInstall adds to its servers so people see the audience’s brand. Its client secret and bot token are stored encrypted and never returned.

Field Type Description
clientId String The application’s ID (its OAuth2 client ID).
configured Boolean! Whether it has a client ID, client secret and bot token, so “Add bot” uses it instead of AudienceKit’s application.
endpointsSet Boolean Whether the application on Discord already points its interactions, linked roles and event webhooks at these URLs (asked with its bot token). Null when Discord could not be asked.
eventWebhooksUrl String! Webhooks > Endpoint URL: where Discord sends the application’s events, signed with its public key.
hasBotToken Boolean! Whether a bot token is stored.
hasClientSecret Boolean! Whether a client secret is stored.
installUrl String A link that adds the audience’s bot (its own, or AudienceKit’s) to any server, to read; connect the server afterwards. Null without a bot.
interactionsEndpointUrl String! General Information > Interactions Endpoint URL: where Discord sends slash commands and other interactions.
linkedRolesVerificationUrl String! General Information > Linked Roles Verification URL: where members verify for a linked role.
publicKey String General Information > Public Key, which Discord signs the application’s interactions and events with. Not secret.
redirectUri String! The address to add to the application’s OAuth2 redirects, where Discord comes back after “Add bot”.

Object

A Discord server or channel the bot can see, to pick instead of pasting its ID.

Field Type Description
id String! Discord’s ID for it.
name String Its name on Discord.

Object · implements IEventChat

The local Chat implementation of an event’s chat prompts.

Field Type Description
file JSON! Its prompts and settings as an audiencekit.chatPrompts file, for importChatPrompts.
idleMinutes Int How long the room is quiet before a prompt drops in as a card (at most one every 30 minutes); null for never.
nextPromptAt ISO8601DateTime When the next prompt rotates in, if one will.
nightlyCap Int! At most this many prompts a night.
pauseDuringActs Boolean! Whether prompts wait while an act is on stage.
prompts [ChatPrompt!]! Its prompts, in the order they show.
promptsEnabled Boolean! Whether the room shows its prompts.
rotateMinutes Int How often the pinned prompt changes, from when the event starts; null when it doesn’t rotate.
starterSets [ChatPromptStarterSet!]! Hand-written lists to start from.

Object

The connection type for IModerationProvider.

Field Type Description
edges [IModerationProviderEdge] A list of edges.
nodes [IModerationProvider] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node IModerationProvider The item at the end of the edge.

Object · implements ILocaleChat

The local Chat implementation of a locale’s chat room.

Field Type Description
open Boolean! Whether the signed-in user can join it: they are out in the locale and not at one of its venues, or they are an admin. Apps hide the way in when it is false.
provider ChatProvider! Who runs the room: its audience’s chat provider.
readOnly Boolean! Whether the room is a read-only mirror of its provider’s channel (a Discord bridge in read mode): anyone signed in reads and reports it from anywhere, nobody posts in it from the apps, and replyUrl is where to reply.
recentMessages
after: String
before: String
first: Int
last: Int
limit: Int
LocaleMessageConnection! Its last few lines, oldest first. Empty unless the signed-in user is in the locale (or is an admin), as the room is. Only the last 24 hours, except for admins.
replyUrl String Where to reply to a read-only room (readOnly), e.g. its Discord channel. Null otherwise.
url String Where the apps send people to the room when its provider doesn’t run it in the apps (provider.inApp false), e.g. its Discord channel, or the server invite when it has none. Null on AudienceKit.

Object

The connection type for LocaleMessage.

Field Type Description
edges [LocaleMessageEdge] A list of edges.
nodes [LocaleMessage] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node LocaleMessage The item at the end of the edge.

Object · implements Sender

Anyone posting as themself: their own avatar, with presence where the viewer may see it.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.
presence Presence! Whether they can be reached now: in chat, by push, or neither. OFFLINE unless the viewer is them, a friend of theirs, or an admin.
role ChatRole Their role in the room, if any, e.g. STAFF.
userId ID! The ID of the user who sent it.

Object · implements Sender

Someone posting as a listing, like a host as their talent page (Ty posting as Anya): its name and photo with a role badge. Without a People page (a guest host), apps draw a host glyph and link nowhere.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
hasPage Boolean! Whether the listing has a People page for the badge to open.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.
person Person The listing it was posted as.
role ChatRole The badge after the name, e.g. HOST.

Object · implements IPersonChat

The local Chat implementation of the rooms a person can post in.

Field Type Description
rooms
after: String
before: String
first: Int
last: Int
ChatRoomConnection! The rooms they can post in as themself, from anywhere: the venues they’re featured at or host events at and the locales they’re featured in, the most recently active first. Only for admins and those who act as them; empty for anyone else. requires chat:read:mine or chat:read:my_troupes

Object · implements IModerationProvider, IProvider

The built-in rules moderator (Moderation::Rules): flood control, checked as each message is sent.

Field Type Description
actions [String!]! Actions it can take, e.g. escalate or remove_message. An audience grants it some of them.
categories [String!]! Policy categories it judges, e.g. spam or threats.
events [String!]! Chat events it receives, e.g. message.created or user.joined.
floodLimit Int! How many messages one sender may send in a room within the window.
floodWindowSeconds Int! The flood window, in seconds.
following Boolean! Whether it reads this audience’s chat now: always for inline ones; for remote ones, while a live service token of the audience’s is issued for it with chat:moderate:*.
inline Boolean! Whether it receives each event on this server as it happens.
key String! Its key, e.g. karafun.
name String! Its name, e.g. KaraFun.
remote Boolean! Whether it runs on its own server and dials in for the event feed.

Object · implements Sender

The room itself, like a prompt: drawn as a centred line with no avatar.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.

Object · implements IVenueChat

The local Chat implementation of a venue’s chat room.

Field Type Description
open Boolean! Whether the signed-in user can join it: they are here, or they are an admin. Apps hide the way in when it is false.
pinnedMessage VenueMessage The announcement pinned under its title, however old. For whoever can read the room and its managers; null for anyone else.
provider ChatProvider! Who runs the room: its audience’s chat provider.
readOnly Boolean! Whether the room is a read-only mirror of its provider’s channel (a Discord bridge in read mode): anyone signed in reads and reports it from anywhere, nobody posts in it from the apps, and replyUrl is where to reply.
recentMessages
after: String
before: String
first: Int
last: Int
limit: Int
VenueMessageConnection! Its last few lines, oldest first. Empty unless the signed-in user is at the venue (or is an admin), as the room is. Only the last 24 hours, except for admins.
replyUrl String Where to reply to a read-only room (readOnly), e.g. its Discord channel. Null otherwise.
url String Where the apps send people to the room when its provider doesn’t run it in the apps (provider.inApp false), e.g. its Discord channel, or the server invite when it has none. Null on AudienceKit.

Object · implements ChatMessage, HasTribes, Node

A message someone sent in a venue’s chat room.

Field Type Description
automatic Boolean! Whether the server posted it on its own, like an “On now” announcement.
avatarUrl PhotoURL The sender’s profile photo, or the venue’s photo for a post as the venue.
body String! What they wrote: the text, or a rich message’s body or caption (may be empty).
endsAt ISO8601DateTime When a special stops showing.
event Event The event an event message shares.
id ID! The ID of the message.
isPrivate Boolean! Whether only one person sees it: a private nudge from the AI host, which apps show as “Only you can see this”. Nobody else in the room gets it.
isTest Boolean! Whether it is a moderation test: a test phrase someone typed, or the AI host’s answer to one (config/moderation/test_phrases.yml). Apps mark it as a test, and reporting it files nothing.
kind ChatKind! What the message is.
member AudienceMember The sender’s membership in the room’s audience, for kicking or banning them. Admins only; null for anyone else. requires audience:read:*
message String! The message as apps that only show text show it: the text, or a rich message in words (“Shared an event: Sunset Social”).
name String The sender’s name: in full for themself, their friends and admins; first name and last initial (“Aurora B.”) for anyone else, as the room shows it. The venue’s name for a post as the venue.
person Person The talent listing it was posted as, if any.
photoAlt String What’s in a photo message’s picture, for screen readers, when its poster said.
photoUrl PhotoURL The photo of a photo message or an announcement.
pinned Boolean! Whether it’s the announcement pinned under the room’s title.
postedAsAudience Boolean! Whether it was posted as the room’s audience, like a prompt: shown with its name and mark, not a person.
postedAsPerson Boolean! Whether talent posted it as their listing (role HOST): person is who.
postedAsVenue Boolean! Whether it was posted as the venue.
presence Presence! Whether they can be reached now: in chat, by push, or neither. OFFLINE unless the viewer is them, a friend of theirs, or an admin.
prompt ChatPromptFrame The prompt a PROMPT message puts to the room.
promptId ID The prompt a TEXT message answers, if it does.
removal ChatMessageRemoval Who removed it and why, for a removed message in a transcript asked with includeRemoved; null while it shows.
request SongRequest The song request or karaoke signup a REQUEST message made, with its place in the queue and what became of it.
role ChatRole Their role in the room, if any.
sender Sender! Who it is from, as apps draw it: the room, a bot, the venue, someone posting as a listing, or a member. Replaces postedAsVenue, postedAsPerson and postedAsAudience.
sentAt ISO8601DateTime! When they sent it.
sharedTribes [Tag!]! The tribes the signed-in user and they both identify with, for the “You’re both” mark in venue chat (each tag has its bothPhrase). Only ever the two of them see it; empty for the viewer themselves and when signed out.
title String An announcement or special’s headline.
tribes [TribeIdentification!]! Their tribes here that the signed-in user may see: the ones they share, and public ones only where the audience allows public tribes. All of them for the viewer themselves.
userId ID! The ID of the user who sent it.

Object

The connection type for VenueMessage.

Field Type Description
edges [VenueMessageEdge] A list of edges.
nodes [VenueMessage] A list of nodes.
pageInfo PageInfo! Information to aid in pagination.

Object

An edge in a connection.

Field Type Description
cursor String! A cursor for use in pagination.
node VenueMessage The item at the end of the edge.

Object · implements Sender

Someone on staff posting as the venue: its name and photo, never theirs.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.
venue Venue The venue it was posted as.

Object

Autogenerated return type of ChatMessageRemoveOwn.

Field Type Description
clientMutationId String A unique identifier for the client performing the mutation.
deletedId ID! The ID of the message removed.

Object

Autogenerated return type of ChatMessageReport.

Field Type Description
blocked Boolean! Whether the person responsible is now blocked.
clientMutationId String A unique identifier for the client performing the mutation.
reported Boolean! Whether the report was filed.
test Boolean! Whether it was a test report: it went through every check but filed nothing and blocked nobody, so it never reaches the moderators’ queue.

Object

Autogenerated return type of ChatMessageSendOwn.

Field Type Description
clientMutationId String A unique identifier for the client performing the mutation.
message ChatMessage! The message, as the room sees it.

Input

Autogenerated input type of ChatMessageRemoveOwn

Field Type Description
clientMutationId String A unique identifier for the client performing the mutation.
messageId ID! The message: a chat frame’s id.

Input

Autogenerated input type of ChatMessageReport

Field Type Description
block Boolean Also block the sender.
clientMutationId String A unique identifier for the client performing the mutation.
messageId ID! The message: a chat frame’s id.
reason String What’s wrong with it.
test Boolean A test report (the apps’ Send test report): checked like any other, but nothing is filed and nobody is blocked. A moderation test phrase’s line (isTest) is always reported as a test, and may be your own.

Input

Autogenerated input type of ChatMessageSendOwn

Field Type Description
clientMutationId String A unique identifier for the client performing the mutation.
localeId ID A locale’s room.
message String! What you typed (up to 1,000 characters).
promptId ID The prompt it answers (a PROMPT message’s prompt), in a venue’s room.
venueId ID A venue’s room.

Interface · implemented by LocaleMessage, VenueMessage

A message in a venue’s or a locale’s chat room: a VenueMessage or a LocaleMessage.

Field Type Description
automatic Boolean! Whether the server posted it on its own, like an “On now” announcement.
avatarUrl PhotoURL The sender’s profile photo, or the venue’s photo for a post as the venue.
body String! What they wrote: the text, or a rich message’s body or caption (may be empty).
endsAt ISO8601DateTime When a special stops showing.
event Event The event an event message shares.
id ID! The ID of the message.
isPrivate Boolean! Whether only one person sees it: a private nudge from the AI host, which apps show as “Only you can see this”. Nobody else in the room gets it.
isTest Boolean! Whether it is a moderation test: a test phrase someone typed, or the AI host’s answer to one (config/moderation/test_phrases.yml). Apps mark it as a test, and reporting it files nothing.
kind ChatKind! What the message is.
member AudienceMember The sender’s membership in the room’s audience, for kicking or banning them. Admins only; null for anyone else. requires audience:read:*
message String! The message as apps that only show text show it: the text, or a rich message in words (“Shared an event: Sunset Social”).
name String The sender’s name: in full for themself, their friends and admins; first name and last initial (“Aurora B.”) for anyone else, as the room shows it. The venue’s name for a post as the venue.
person Person The talent listing it was posted as, if any.
photoAlt String What’s in a photo message’s picture, for screen readers, when its poster said.
photoUrl PhotoURL The photo of a photo message or an announcement.
pinned Boolean! Whether it’s the announcement pinned under the room’s title.
postedAsAudience Boolean! Whether it was posted as the room’s audience, like a prompt: shown with its name and mark, not a person.
postedAsPerson Boolean! Whether talent posted it as their listing (role HOST): person is who.
postedAsVenue Boolean! Whether it was posted as the venue.
presence Presence! Whether they can be reached now: in chat, by push, or neither. OFFLINE unless the viewer is them, a friend of theirs, or an admin.
prompt ChatPromptFrame The prompt a PROMPT message puts to the room.
promptId ID The prompt a TEXT message answers, if it does.
removal ChatMessageRemoval Who removed it and why, for a removed message in a transcript asked with includeRemoved; null while it shows.
request SongRequest The song request or karaoke signup a REQUEST message made, with its place in the queue and what became of it.
role ChatRole Their role in the room, if any.
sender Sender! Who it is from, as apps draw it: the room, a bot, the venue, someone posting as a listing, or a member. Replaces postedAsVenue, postedAsPerson and postedAsAudience.
sentAt ISO8601DateTime! When they sent it.
sharedTribes [Tag!]! The tribes the signed-in user and they both identify with, for the “You’re both” mark in venue chat (each tag has its bothPhrase). Only ever the two of them see it; empty for the viewer themselves and when signed out.
title String An announcement or special’s headline.
tribes [TribeIdentification!]! Their tribes here that the signed-in user may see: the ones they share, and public ones only where the audience allows public tribes. All of them for the viewer themselves.
userId ID! The ID of the user who sent it.

Interface · implemented by Friend, LocaleMessage, SelfUser, User, VenueMessage

Someone who can identify with tribes.

Field Type Description
sharedTribes [Tag!]! The tribes the signed-in user and they both identify with, for the “You’re both” mark in venue chat (each tag has its bothPhrase). Only ever the two of them see it; empty for the viewer themselves and when signed out.
tribes [TribeIdentification!]! Their tribes here that the signed-in user may see: the ones they share, and public ones only where the audience allows public tribes. All of them for the viewer themselves.

Interface · implemented by AudienceChatView · mixin edge chat on Audience

The chat module’s root lookups: the audience’s rooms, a room’s transcript and bans, and the moderators an audience can use.

Field Type Description
account ChatAccount Its connection to the provider that runs its rooms, e.g. its Discord server. Null on AudienceKit, and for anyone but its admins. requires chat:write:*
discordApp DiscordApp Its own Discord application, whose bot “Add bot” adds (setDiscordApp). Admins only. requires chat:write:*
moderationProviders
after: String
before: String
first: Int
last: Int
IModerationProviderConnection! The chat moderators audiences can use, and what each reads and can do.
provider ChatProvider! Who runs its rooms: AudienceKit unless it connected another provider. Apps check inApp before opening a room, and otherwise send people to the room’s url.
providers
after: String
before: String
first: Int
last: Int
ChatProviderConnection! The chat providers an audience can use, and what each supports.
venueAccounts [ChatAccount!]! Venues with a chat community of their own (e.g. a venue’s own Discord server), whose rooms go there instead of the audience’s. Admins only. requires chat:write:*

Interface · implemented by EventChatView · mixin edge chat on Event

How an event’s chat room (its venue’s, while it’s on) gets people talking: the prompts it shows, and when (ChatPrompts). Its staff only. Change it with setEventChatPrompts.

Field Type Description
file JSON! Its prompts and settings as an audiencekit.chatPrompts file, for importChatPrompts.
idleMinutes Int How long the room is quiet before a prompt drops in as a card (at most one every 30 minutes); null for never.
nextPromptAt ISO8601DateTime When the next prompt rotates in, if one will.
nightlyCap Int! At most this many prompts a night.
pauseDuringActs Boolean! Whether prompts wait while an act is on stage.
prompts [ChatPrompt!]! Its prompts, in the order they show.
promptsEnabled Boolean! Whether the room shows its prompts.
rotateMinutes Int How often the pinned prompt changes, from when the event starts; null when it doesn’t rotate.
starterSets [ChatPromptStarterSet!]! Hand-written lists to start from.

Interface · implemented by LocaleChatView · mixin edge chat on Locale

A locale’s chat room, as the signed-in user sees it from outside: whether they can join it and its last few lines.

Field Type Description
open Boolean! Whether the signed-in user can join it: they are out in the locale and not at one of its venues, or they are an admin. Apps hide the way in when it is false.
provider ChatProvider! Who runs the room: its audience’s chat provider.
readOnly Boolean! Whether the room is a read-only mirror of its provider’s channel (a Discord bridge in read mode): anyone signed in reads and reports it from anywhere, nobody posts in it from the apps, and replyUrl is where to reply.
recentMessages
after: String
before: String
first: Int
last: Int
limit: Int
LocaleMessageConnection! Its last few lines, oldest first. Empty unless the signed-in user is in the locale (or is an admin), as the room is. Only the last 24 hours, except for admins.
replyUrl String Where to reply to a read-only room (readOnly), e.g. its Discord channel. Null otherwise.
url String Where the apps send people to the room when its provider doesn’t run it in the apps (provider.inApp false), e.g. its Discord channel, or the server invite when it has none. Null on AudienceKit.

Interface · implemented by ArbiterModerationProvider, ClaudeModerationProvider, RulesModerationProvider

A chat moderator (a Moderation::Provider): a service that receives chat events (messages, joins, reports, kicks, bans) and can remove messages and warn, kick or ban people. Shows where it runs, the events it reads, the actions it can take and the policy categories it judges. Each provider has its own type.

Field Type Description
actions [String!]! Actions it can take, e.g. escalate or remove_message. An audience grants it some of them.
categories [String!]! Policy categories it judges, e.g. spam or threats.
events [String!]! Chat events it receives, e.g. message.created or user.joined.
following Boolean! Whether it reads this audience’s chat now: always for inline ones; for remote ones, while a live service token of the audience’s is issued for it with chat:moderate:*.
inline Boolean! Whether it receives each event on this server as it happens.
key String! Its key, e.g. karafun.
name String! Its name, e.g. KaraFun.
remote Boolean! Whether it runs on its own server and dials in for the event feed.

Interface · implemented by PersonChatView · mixin edge chat on Person

The chat rooms a person can post in as themself (HOST).

Field Type Description
rooms
after: String
before: String
first: Int
last: Int
ChatRoomConnection! The rooms they can post in as themself, from anywhere: the venues they’re featured at or host events at and the locales they’re featured in, the most recently active first. Only for admins and those who act as them; empty for anyone else. requires chat:read:mine or chat:read:my_troupes

Interface · implemented by ArbiterModerationProvider, AudienceKitProvider, ChatProvider, ClaudeModerationProvider, KaraokeProvider, RulesModerationProvider, TicketingProvider, TippingProvider

A partner or service AudienceKit works with through a provider module, e.g. KaraFun or Eventbrite. AudienceKit itself is one where it sells something (AudienceKitProvider).

Field Type Description
key String! Its key, e.g. karafun.
name String! Its name, e.g. KaraFun.

Interface · implemented by AudienceMember, ChatPresenceChanged, ChatRecentPerson, ChatRosterPerson

Someone shown by name and picture: an audience member, someone in a chat room, or a room member.

Field Type Description
avatarUrl PhotoURL Their profile photo.
name String Their name, as the viewer may see it.
userId ID! The ID of the user.

Interface · implemented by VenueChatView · mixin edge chat on Venue

A venue’s chat room, as the signed-in user sees it from outside: whether they can join it, its last few lines and its pinned announcement.

Field Type Description
open Boolean! Whether the signed-in user can join it: they are here, or they are an admin. Apps hide the way in when it is false.
pinnedMessage VenueMessage The announcement pinned under its title, however old. For whoever can read the room and its managers; null for anyone else.
provider ChatProvider! Who runs the room: its audience’s chat provider.
readOnly Boolean! Whether the room is a read-only mirror of its provider’s channel (a Discord bridge in read mode): anyone signed in reads and reports it from anywhere, nobody posts in it from the apps, and replyUrl is where to reply.
recentMessages
after: String
before: String
first: Int
last: Int
limit: Int
VenueMessageConnection! Its last few lines, oldest first. Empty unless the signed-in user is at the venue (or is an admin), as the room is. Only the last 24 hours, except for admins.
replyUrl String Where to reply to a read-only room (readOnly), e.g. its Discord channel. Null otherwise.
url String Where the apps send people to the room when its provider doesn’t run it in the apps (provider.inApp false), e.g. its Discord channel, or the server invite when it has none. Null on AudienceKit.

Interface · implemented by BotSender, MemberSender, PersonaSender, SystemSender, VenueSender

Who a chat message is from: the room itself (SystemSender), a bot (BotSender), the venue (VenueSender), someone posting as a listing (PersonaSender), or a member as themself (MemberSender). kind says which, for apps that switch on it.

Field Type Description
avatarUrl PhotoURL The sender’s avatar: the bot’s art, the venue’s photo, the listing’s or the member’s. Null for the room itself.
kind ChatSenderKind! Which kind of sender.
name String The name the room shows: the bot’s, the venue’s or the listing’s, or a member’s as ChatMessage.name gives it. Null for the room itself.

Enum

What a chat message is. Only messages with a role can be anything but TEXT or REQUEST.

  • ANNOUNCEMENT A title, the message as its body and an optional photo. One per room can be pinned under its title.
  • EVENT One of the audience’s events, with the message as a caption.
  • PHOTO A photo, with the message as a caption.
  • PROMPT One of the event’s chat prompts (prompt), posted as the audience. The newest PINNED one shows under the room’s title.
  • REQUEST A song request or karaoke signup (request), with the message as a note to the host. Anyone in a venue room may send one while the venue takes them (requestSong).
  • SPECIAL A title and body that stop showing at endsAt.
  • TEXT Just what they wrote.

Enum

Why someone is out of a chat room.

  • AWAY They’re no longer at the venue (or in the locale) and tried to speak.
  • BANNED The room’s audience banned them.
  • MOVED They joined another venue’s or locale’s room: a person is in one at a time.
  • REMOVED The venue’s moderators kicked or banned them from its room.

Enum

What a chat prompt (ChatPrompt) asks.

  • CONVERSATION Something to talk about with the people around you.
  • TRIVIA A question with an answer, hidden until tapped or revealAt.

Enum

How a chat prompt went up in its room.

  • CARD Dropped into a quiet room as a card.
  • PINNED Rotated in, pinned under the room’s title until the next one.

Enum

Who a chat message is from, when they have a role there (see ChatMessage). Set by the server.

  • HOST A host or performer on tonight’s event at the venue.
  • STAFF One of the audience’s admins.
  • VENUE Posted as the venue, shown with its name and photo.

Enum

Who a chat message is from (see Sender), as apps draw it. More kinds may come: draw one you don’t know as MEMBER.

  • BOT Software with a name of its own, like Glam, the AI host: its own art with no border or fill, and a bot mark.
  • MEMBER Anyone posting as themself: their own avatar and presence.
  • PERSONA Someone posting as a listing, like a host as their talent page: its name and photo in a ringed circle, with a role badge.
  • SYSTEM The room itself, like a prompt: no avatar, a centred line.
  • VENUE Someone posting as the venue: its name and photo, in a squarer avatar.

Enum

Whether someone can be reached right now (see ChatPresence). Only the person themself, their friends and admins see the real value; to anyone else it is always OFFLINE.

  • OFFLINE Neither, or not for this viewer to see.
  • ONLINE Connected to a chat room now.
  • PUSH Not in chat, but signed in on a device that gets push notifications.

Union

What someone following a chat room hears (Subscription.venueChat, Subscription.localeChat), as they see it: ChatJoined first, then the room as it changes, until ChatLeft ends the subscription.

Scalar

An ISO 8601-encoded datetime