{ "type": "object", "description": "Represents a conversation thread containing messages between participants.", "name": "Thread", "properties": { "id": { "type": "string", "description": "Unique identifier for the thread" }, "inboxId": { "type": "string", "description": "ID of the inbox containing this thread" }, "status": { "type": "string", "description": "Current status of the thread", "enum": [ "OPEN", "CLOSED" ] }, "spam": { "type": "boolean", "description": "Whether the thread is marked as spam" }, "associatedContactId": { "type": "string", "description": "ID of the associated CRM contact" }, "assignedTo": { "type": "string", "description": "User ID the thread is assigned to" }, "originalChannelId": { "type": "string", "description": "ID of the original communication channel" }, "originalChannelAccountId": { "type": "string", "description": "ID of the original channel account" }, "latestMessageTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest message" }, "latestMessageSentTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest sent message" }, "latestMessageReceivedTimestamp": { "type": "datetime", "description": "ISO 8601 timestamp of the latest received message" }, "closedAt": { "type": "datetime", "description": "ISO 8601 timestamp when the thread was closed" }, "createdAt": { "type": "datetime", "description": "ISO 8601 timestamp when the thread was created" }, "archived": { "type": "boolean", "description": "Whether the thread is archived" } }, "required": [ "id", "inboxId", "status", "createdAt" ], "$schema": "https://json-structure.org/draft/2020-12/schema" }