{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/itsconvo-com/json-schema/itsconvo-com-contact-briefing-schema.json",
  "title": "ContactBriefing",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/itsconvo-com-openapi.json#/components/schemas/ContactBriefing",
  "type": "object",
  "properties": {
    "contact": {
      "$ref": "#/$defs/Contact"
    },
    "summary": {
      "type": [
        "object",
        "null"
      ],
      "description": "What Convo Memory knows about this relationship, or null before a summary exists",
      "properties": {
        "prose": {
          "type": "string"
        },
        "topics": {
          "type": "array",
          "items": {}
        },
        "open_questions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "summaryGeneratedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "recentMeetings": {
      "type": "array",
      "description": "The most recent meetings with this contact, newest first",
      "items": {
        "type": "object",
        "properties": {
          "sessionId": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "date": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    },
    "openActionItems": {
      "type": "array",
      "description": "Up to 10 open action items from those meetings, newest meeting first",
      "items": {
        "$ref": "#/$defs/BriefingActionItem"
      }
    },
    "recentDecisions": {
      "type": "array",
      "description": "Up to 10 decisions from those meetings, without repeats",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "BriefingActionItem": {
      "type": "object",
      "properties": {
        "item": {
          "type": "string"
        },
        "sessionId": {
          "type": "string"
        },
        "hash": {
          "type": "string",
          "description": "Identifies the action item within its conversation"
        },
        "owner": {
          "type": [
            "string",
            "null"
          ]
        },
        "priority": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "meetingDate": {
          "type": "string",
          "format": "date-time"
        },
        "meetingTitle": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "displayName": {
          "type": [
            "string",
            "null"
          ]
        },
        "companyDomain": {
          "type": [
            "string",
            "null"
          ],
          "description": "The email domain; null for personal email providers"
        },
        "meetingCount": {
          "type": "integer"
        },
        "firstSeenAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastSeenAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}