{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pencil-ink/json-schema/pencil-ink-meeting-schema.json",
  "title": "Meeting",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pencil-ink-openapi.yml#/components/schemas/Meeting",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "noteId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "source": {
      "$ref": "#/$defs/MeetingSource"
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ]
    },
    "meetingAt": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Epoch ms."
    },
    "durationSec": {
      "type": [
        "integer",
        "null"
      ]
    },
    "participants": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeetingParticipant"
      }
    },
    "organizerEmail": {
      "type": [
        "string",
        "null"
      ]
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "summaryStatus": {
      "$ref": "#/$defs/MeetingSummaryStatus"
    },
    "summaryError": {
      "type": [
        "string",
        "null"
      ]
    },
    "decisions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "actionItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeetingActionItem"
      }
    },
    "actionItemCount": {
      "type": "integer"
    },
    "openActionItemCount": {
      "type": "integer"
    },
    "sourceUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "recordingUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "projectId": {
      "type": [
        "string",
        "null"
      ]
    },
    "projectName": {
      "type": [
        "string",
        "null"
      ]
    },
    "relatedObjects": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MeetingRelatedObject"
      }
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "transcript": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only present on `GET /meetings/{id}?includeTranscript=true`."
    },
    "createdAt": {
      "type": "integer",
      "description": "Epoch ms."
    },
    "updatedAt": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Epoch ms."
    }
  },
  "$defs": {
    "MeetingActionItem": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string"
        },
        "ownerHint": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "suggested",
            "dismissed",
            "converted"
          ]
        },
        "taskId": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "MeetingObjectKind": {
      "type": "string",
      "enum": [
        "task",
        "project",
        "product",
        "company",
        "initiative",
        "goal",
        "epic",
        "feature",
        "component",
        "requirement",
        "persona",
        "stakeholder",
        "feedback",
        "idea",
        "deliverable",
        "sprint",
        "iteration",
        "bug",
        "milestone",
        "repo"
      ]
    },
    "MeetingParticipant": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      }
    },
    "MeetingRelatedObject": {
      "type": "object",
      "required": [
        "kind",
        "objectId"
      ],
      "properties": {
        "kind": {
          "$ref": "#/$defs/MeetingObjectKind"
        },
        "objectId": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Resolved title in responses."
        },
        "globalId": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "MeetingSource": {
      "type": "string",
      "enum": [
        "fireflies",
        "tldv",
        "google_meet",
        "microsoft_teams",
        "recall",
        "email",
        "manual"
      ]
    },
    "MeetingSummaryStatus": {
      "type": "string",
      "enum": [
        "none",
        "pending",
        "ready",
        "error"
      ]
    }
  }
}