{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/osis-co/json-schema/osis-co-conversation-schema.json",
  "title": "Conversation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/osis-co-conversations-api-openapi.yml#/components/schemas/Conversation",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "contact_id": {
      "type": "string"
    },
    "phone": {
      "type": "string",
      "description": "The other person's number, in E.164 format."
    },
    "name": {
      "type": "string"
    },
    "channel": {
      "type": "string"
    },
    "state": {
      "type": "string"
    },
    "last_message_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_message_preview": {
      "type": "string"
    },
    "unread": {
      "type": "boolean"
    },
    "line_e164": {
      "type": "string",
      "description": "Your number in this conversation. Left out if unknown."
    }
  }
}