{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aircover.ai/schemas/aircover-pipeline/meetings-1.0.json",
  "title": "Aircover Pipeline — meetings.json (v1.0)",
  "description": "List of meetings pulled from /analytics for a date range, after applying optional --exclude-domains and --filter-emails filters.",
  "type": "array",
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": ["id", "deal_id", "team_ids", "date", "notes_sent_to"],
    "properties": {
      "id": {
        "type": "string",
        "description": "Aircover meeting identifier."
      },
      "deal_id": {
        "type": "string",
        "description": "Of the form '<prospect-domain>/<deal-id>'. Empty string when the meeting has no linked Salesforce deal."
      },
      "team_ids": {
        "type": "string",
        "description": "Comma-separated list of Aircover team IDs the meeting is associated with. Empty string if none."
      },
      "date": {
        "type": "string",
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "description": "YYYY-MM-DD calendar date of the meeting (from the meeting's ISO start timestamp)."
      },
      "notes_sent_to": {
        "type": "string",
        "description": "Comma-separated list of attendee email addresses on the meeting's deal team. Empty string if none."
      }
    }
  }
}
