{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corebee-ai/json-schema/corebee-ai-message-schema.json",
  "title": "Message",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corebee-ai-conversations-api-openapi.yml#/components/schemas/Message",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "conversation_id": {
      "type": "string",
      "format": "uuid"
    },
    "content": {
      "type": "string"
    },
    "content_type": {
      "type": "integer",
      "default": 0
    },
    "message_type": {
      "type": "integer",
      "default": 1
    },
    "sender_type": {
      "type": "string",
      "description": "Who sent the message.",
      "enum": [
        "agent",
        "customer",
        "agent_bot"
      ]
    },
    "private": {
      "type": "boolean",
      "default": false
    },
    "status": {
      "type": "integer"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}