{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dialogbrain-com/json-schema/dialogbrain-com-contact-summary-response-schema.json",
  "title": "ContactSummaryResponse",
  "description": "Unified contact summary.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dialogbrain-com-contacts-api-openapi.yml#/components/schemas/ContactSummaryResponse",
  "properties": {
    "person_id": {
      "type": "integer",
      "title": "Person Id"
    },
    "display_name": {
      "type": "string",
      "title": "Display Name"
    },
    "summary": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Summary"
    },
    "key_topics": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Key Topics",
      "default": []
    },
    "relationship_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Relationship Type"
    },
    "pain_points": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Pain Points",
      "default": []
    },
    "key_decisions": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Key Decisions",
      "default": []
    },
    "shared_events": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Shared Events",
      "default": []
    },
    "first_interaction_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "First Interaction At"
    },
    "last_interaction_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Interaction At"
    },
    "total_threads": {
      "type": "integer",
      "title": "Total Threads",
      "default": 0
    },
    "total_messages": {
      "type": "integer",
      "title": "Total Messages",
      "default": 0
    },
    "version": {
      "type": "integer",
      "title": "Version",
      "default": 1
    },
    "model_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Name"
    }
  },
  "type": "object",
  "required": [
    "person_id",
    "display_name"
  ]
}