Skip to content
gist.link ↗

Teams types

Type definitions referenced by Teams queries and mutations.

Object. A chat message flattened with its source context (channel fields for source_kind=channel, conversation fields for source_kind=dm). Used by the home activity feed and message search. body is truncated to 240 chars.

Field Type Description
message_id Int! —
source_kind String! channel | dm
team_id Int —
team_name String —
channel_id Int —
channel_name String —
conversation_id Int —
conversation_title String —
author_user_id String! —
author_name String! —
body String! —
created_at String! —

Input object.

Field Type Description
authUserId String! —
displayName String! —
email String! —
role String —

Object. A file attached to a chat message, hosted by the drive service.

Field Type Description
url String! —
filename String! —
content_type String! —
size Int! —

Input object.

Field Type Description
url String! Drive public file URL from finalizeChatAttachment.
filename String! —
content_type String! —
size Int! —

Object. Presigned PUT ticket for a chat attachment upload.

Field Type Description
nodeId Int! —
uploadUrl String! —
headers JSON —

Object.

Field Type Description
id Int! —
team_id Int! —
name String! —
columns [BoardColumn!]! —
created_at String! —
updated_at String! —

Object.

Field Type Description
id Int! —
board_id Int! —
name String! —
position Int! —
cards [Card!]! —

Object. One board’s aggregated slice of the cross-team rollup (see Query.projectRollup).

Field Type Description
board_id Int! —
board_name String! —
open_cards Int! —
overdue_cards Int! —
due_soon_cards Int! Due within the next 7 days (and not overdue).
unassigned_cards Int! —
next_due CardDigest The board’s next dated card (due-soonest); null when nothing has a due date.

Scalar. The Boolean scalar type represents true or false.

Object.

Field Type Description
id Int! —
column_id Int! —
title String! —
description String —
assignee TeamMember —
due_at String —
position Int! —
labels [String!]! —
comment_count Int! Number of comments (always filled; cheap on board payloads).
comments [CardComment!]! Full discussion — only populated on the card(id:) query.
activity [CardActivity!]! Latest activity-trail entries (max 50, newest first) — only on card(id:).
created_at String! —
updated_at String! —

Object. One automatic activity-trail entry on a card. action is one of: created, title_changed, description_changed, assigned, unassigned, due_changed, labels_changed, moved, commented; detail carries the human-readable delta (e.g. “Todo → Done” for moved, the assignee name for assigned).

Field Type Description
id Int! —
card_id Int! —
actor_user_id String! —
actor_name String! —
action String! —
detail String —
created_at String! —

Object. A discussion comment on a card.

Field Type Description
id Int! —
card_id Int! —
author TeamMember! —
body String! —
created_at String! —

Object. A card assigned to the caller, flattened with board/team context.

Field Type Description
card_id Int! —
title String! —
due_at String —
labels [String!]! —
column_name String! —
board_id Int! —
board_name String! —
team_id Int! —
team_name String! —

Object. An AI catch-up digest for one channel (see Query.channelCatchUp).

Field Type Description
channel_id Int! —
message_count Int! Missed messages considered (0 = fully caught up).
since String Timestamp of the oldest missed message; null when caught up.
summary String! Markdown digest of what was missed.

Object.

Field Type Description
id Int! —
team_id Int! —
name String! —
topic String —
archived Boolean! —
posts PostConnection! —
messages MessageConnection! Chat stream, newest first. parentId pages one thread’s replies.
active_huddle Meeting The huddle currently running in this channel, if any.
pinned_messages [Message!]! Pinned chat messages, most recently pinned first (max 50).
created_at String! —
updated_at String! —

Object. A channel with unread messages, with enough context to link to it.

Field Type Description
channel_id Int! —
channel_name String! —
team_id Int! —
team_name String! —
unread_count Int! —

Object. A recurring automatic question whose answers collect into daily digests.

Field Type Description
id Int! —
team_id Int! —
question String! —
cadence String! daily | weekly
weekday Int 0 (Sunday) - 6 (Saturday); weekly cadence only.
hour Int! Hour of day (0-23) the prompt fires.
active Boolean! —
created_by TeamMember! —
responses [CheckInResponse!]! One day’s responses (date: YYYY-MM-DD, defaults to today).
created_at String! —

Object. An active check-in the caller has not answered today.

Field Type Description
check_in_id Int! —
question String! —
cadence String! daily | weekly
team_id Int! —
team_name String! —

Object.

Field Type Description
id Int! —
check_in_id Int! —
author TeamMember! —
body String! —
for_date String! —
created_at String! —
updated_at String! —

Object.

Field Type Description
id Int! —
post_id Int! —
author TeamMember! —
body String! —
created_at String! —

Object. A DM (is_group=false, deduplicated per pair) or group DM.

Field Type Description
id Int! —
is_group Boolean! —
title String —
created_by String! —
members [ConversationMember!]! —
messages MessageConnection! —
my_last_read_message_id Int —
last_message_at String —
created_at String! —

Object. A conversation with unread messages. title falls back to member names.

Field Type Description
conversation_id Int! —
title String! —
is_group Boolean! —
unread_count Int! —

Object.

Field Type Description
id Int! —
conversation_id Int! —
auth_user_id String! —
display_name String! —
email String! —
last_read_message_id Int —
joined_at String! —

Input object.

Field Type Description
authUserId String! —
displayName String! —
email String! —

Input object.

Field Type Description
name String! —

Input object.

Field Type Description
title String! —
description String —
assigneeId Int —
dueAt String —
labels [String!] —

Input object.

Field Type Description
name String! —
topic String —

Input object.

Field Type Description
question String! —
cadence String daily (default) | weekly
weekday Int 0-6, weekly only (defaults to Monday).
hour Int 0-23 (default 9).

Input object.

Field Type Description
name String! —

Input object.

Field Type Description
title String! —
body String —

Input object.

Field Type Description
title String —

Input object.

Field Type Description
body String! —

Input object.

Field Type Description
name String! —
slug String! —
description String —

Object. A Basecamp-style team document.

Field Type Description
id Int! —
team_id Int! —
author TeamMember! —
title String! —
body String! —
pinned Boolean! —
revision Int! Optimistic-concurrency counter, bumped on every successful edit. Send it back as UpdateDocInput.baseRevision to detect concurrent saves.
edited_at String —
created_at String! —
updated_at String! —

Object. The caller’s personal dashboard digest (see Query.home).

Field Type Description
meetings [Meeting!]! Active meetings the caller created plus huddles running in their channels.
unread_channels [ChannelDigest!]! Channels with messages newer than the caller’s read position, most unread first.
unread_conversations [ConversationDigest!]! Conversations with unread messages, most unread first.
recent_activity [ActivityItem!]! Newest chat messages across the caller’s channels and DMs.
my_cards [CardDigest!]! Cards assigned to the caller, due-soonest first (no due date last).
pending_check_ins [CheckInDigest!]! Active check-ins in the caller’s teams they have not answered today.

Scalar. The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Scalar. Arbitrary JSON value (objects, arrays, scalars). Serialized as-is.

Object. A video meeting room (Google-Meet style). join_url always points at the teams frontend (/meet/{code}); media flows through LiveKit, not this API.

Field Type Description
id Int! —
code String! —
title String —
kind String! adhoc | huddle | scheduled
channel_id Int —
created_by String! —
status String! active | ended
join_url String! —
started_at String! —
ended_at String —
notes String AI-notetaker markdown notes; null until generated.
notes_generated_at String —
notes_drive_node_id Int Drive node id of the saved notes markdown file; null until first saved.
notes_drive_url String Stable public URL of the notes markdown file in Drive.
recording_drive_node_id Int Drive node id of the saved audio recording; null until a recording is finalized.
recording_drive_url String Stable public URL of the recording file in Drive.
transcript [TranscriptEntry!]! Captured transcript, oldest first. Only populated on the meeting(code:) query.

Object. Everything a client needs to connect to a meeting’s LiveKit room.

Field Type Description
meeting Meeting! —
ws_url String! —
token String! —

Object. A Slack-style chat message (channel or DM), threadable one level deep.

Field Type Description
id Int! —
channel_id Int —
conversation_id Int —
parent_id Int —
author_user_id String! —
author_name String! —
body String! —
attachments [Attachment!]! Drive-hosted file attachments (public /o/{token} URLs).
pinned_at String Set when pinned to its channel.
pinned_by String —
reactions [ReactionGroup!]! —
reply_count Int! —
edited_at String —
created_at String! —

Object.

Field Type Description
edges [MessageEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Message! —
cursor String! —

Object.

Field Type Description
id Int! —
kind String! —
payload JSON! —
read_at String —
created_at String! —

Object.

Field Type Description
edges [NotificationEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Notification! —
cursor String! —

Object.

Field Type Description
hasNextPage Boolean! —
hasPreviousPage Boolean! —
startCursor String —
endCursor String —

Object.

Field Type Description
id Int! —
channel_id Int! —
author TeamMember! —
body String! —
pinned Boolean! —
edited_at String —
created_at String! —
comments [Comment!]! —
comment_count Int! —

Object.

Field Type Description
edges [PostEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Post! —
cursor String! —

Object. One user’s presence snapshot.

Field Type Description
user_id String! —
online Boolean! —
last_seen_at String —

Input object.

Field Type Description
title String —
createdBy String! Auth user uuid of the calendar event’s creator.

Object. One emoji’s reactions on a message, aggregated.

Field Type Description
emoji String! —
count Int! —
user_ids [String!]! —

Object. Mercure hub URL + subscriber JWT + the topics it grants.

Field Type Description
url String! —
token String! —
topics [String!]! —

Input object.

Field Type Description
channelId Int Exactly one of channelId / conversationId is required.
conversationId Int —
parentId Int Reply in a thread; must reference a root message in the same scope.
body String! May be empty when attachments are present.
attachments [AttachmentInput!] Up to 10 Drive-hosted attachments (from finalizeChatAttachment).

Scalar. The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Object.

Field Type Description
id Int! —
name String! —
slug String! —
description String —
archived Boolean! —
member_count Int! —
members [TeamMember!]! —
channels [Channel!]! —
boards [Board!]! —
docs [Doc!]! —
check_ins [CheckIn!]! —
created_at String! —
updated_at String! —

Object.

Field Type Description
edges [TeamEdge!]! —
pageInfo PageInfo! —
totalCount Int! —

Object.

Field Type Description
node Team! —
cursor String! —

Object.

Field Type Description
id Int! —
team_id Int! —
auth_user_id String! —
display_name String! —
email String! —
role String! —
joined_at String! —

Object. One team’s row in the cross-team project rollup, teams with most overdue work first.

Field Type Description
team_id Int! —
team_name String! —
open_cards Int! —
overdue_cards Int! —
due_soon_cards Int! —
boards [BoardRollup!]! —

Object. One notetaker-captured spoken line.

Field Type Description
id Int! —
speaker_user_id String! —
speaker_name String! —
text String! —
spoken_at String! —

Input object.

Field Type Description
text String! —
spoken_at String ISO-8601; defaults to now.

Input object.

Field Type Description
title String —
description String —
assigneeId Int —
dueAt String —
labels [String!] —

Input object.

Field Type Description
name String —
topic String —

Input object.

Field Type Description
question String —
cadence String —
weekday Int —
hour Int —
active Boolean —

Input object.

Field Type Description
title String —
body String —
baseRevision Int The Doc.revision the client loaded before editing. When provided and stale (someone saved in between), the mutation fails with BAD_USER_INPUT instead of overwriting. Omit to force-save.

Input object.

Field Type Description
body String! —

Input object.

Field Type Description
name String —
slug String —
description String —

Object. One assignee’s slice of a team’s board work (see Query.teamWorkload).

Field Type Description
member TeamMember Null for the unassigned-cards bucket.
open_cards Int! —
overdue_cards Int! —
due_soon_cards Int! Due within the next 7 days (and not overdue).
cards [CardDigest!]! Up to 20 cards, due-soonest first; counts always cover everything.