id | string | Unique conversation identifier (UUID). |
type | "direct" | "group" | "space" | Conversation type. |
name | string | null | Display name. Always null for direct conversations. |
description | string | null | Optional description. Used for group and space conversations. |
spaceId | string | null | The Space this conversation belongs to. Set only when type is "space". |
directKey | string | null | Identifies the pair of members of a direct conversation. Set on direct conversations only; null for group and space conversations. |
createdById | string | null | ID of the user who created the conversation. null for auto-created space conversations. |
avatarFileId | string | null | ID of the conversation’s avatar file: uploaded as avatarFile on Create Group Conversation or Update Conversation, and removed with removeFileIds on the update. |
avatarFile | File | null | undefined | Populated avatar file object. Returned by Create Group Conversation and Update Conversation when the files-images bundle is installed, and sent to members in the conversation:updated event when the avatar changes; null when the conversation has no avatar. |
lastMessageAt | Date | null | Timestamp of the most recent message. Used for conversation list sorting. null if no messages have been sent. |
postingPermission | "members" | "team" | null | Who can post in the conversation: any active member ("members"), or only the space’s active admins and moderators ("team"). Only set for space conversations. null for direct and group conversations. |
metadata | Record<string, any> | Custom key-value data. Limited to 1 MB. |
memberCount | number | undefined | Total number of active members. Returned by Fetch Conversation and Fetch Space Conversation, and on every ConversationPreview. |
currentMember | ConversationMember | null | undefined | The requesting user’s own membership row, with their mute state. Returned by Fetch Conversation and Fetch Space Conversation; null when they have no row. |
createdAt | Date | Timestamp when the conversation was created. |
updatedAt | Date | Timestamp of the last update. |