{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/linkbreakers-com/json-schema/linkbreakers-com-assistant-get-conversation-response-schema.json",
  "title": "AssistantGetConversationResponse contains the display-ready messages",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/linkbreakers-com-assistant-api-openapi.yml#/components/schemas/AssistantGetConversationResponse",
  "properties": {
    "messages": {
      "items": {
        "$ref": "#/$defs/AssistantDisplayMessage",
        "type": "object"
      },
      "type": "array"
    },
    "unreadCount": {
      "description": "Assistant messages in this conversation the member has not seen yet.",
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "AssistantDisplayMessage": {
      "properties": {
        "attachments": {
          "items": {
            "$ref": "#/$defs/AssistantDisplayMessageAttachment",
            "type": "object"
          },
          "type": "array"
        },
        "id": {
          "type": "string"
        },
        "readAt": {
          "description": "When the member had this assistant message on screen. Unset while an\nassistant message has not been seen, and on every user message.",
          "format": "date-time",
          "type": "string"
        },
        "sender": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "timestamp": {
          "format": "date-time",
          "type": "string"
        },
        "uiActions": {
          "description": "The buttons the reply showed, so a reopened conversation offers them again.",
          "items": {
            "$ref": "#/$defs/ChatUIAction",
            "type": "object"
          },
          "type": "array"
        }
      },
      "title": "AssistantDisplayMessage is a user-visible message for rendering",
      "type": "object"
    },
    "AssistantDisplayMessageAttachment": {
      "properties": {
        "mimeType": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "title": "AssistantDisplayMessageAttachment is a file attached to a message",
      "type": "object"
    },
    "ChatUIAction": {
      "properties": {
        "label": {
          "type": "string"
        },
        "options": {
          "items": {
            "$ref": "#/$defs/ChatUIOption",
            "type": "object"
          },
          "type": "array"
        },
        "type": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "title": "ChatUIAction represents an interactive element rendered in the chat",
      "type": "object"
    },
    "ChatUIOption": {
      "properties": {
        "description": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}