{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/muro-chat/json-schema/muro-chat-conversation-schema.json",
  "title": "Conversation",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/muro-chat-openapi.json#/components/schemas/Conversation",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "const": "conversation"
    },
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "open",
        "closed",
        "snoozed"
      ]
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "unread_count": {
      "type": "integer"
    },
    "website_id": {
      "type": "string"
    },
    "assigned_user_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "visitor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "last_message": {
      "type": [
        "object",
        "null"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": true
    },
    "summary": {
      "type": [
        "string",
        "null"
      ],
      "description": "AI recap (auto-generated on close)."
    },
    "summary_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}