{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cogram-com/json-schema/cogram-com-action-item-list-v1-schema.json",
  "title": "ActionItemListV1",
  "description": "Paginated action item list response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cogram-com-action-items-api-openapi.yml#/components/schemas/ActionItemListV1",
  "properties": {
    "data": {
      "items": {
        "$ref": "#/$defs/ActionItemV1"
      },
      "type": "array",
      "title": "Data"
    },
    "total": {
      "type": "integer",
      "title": "Total",
      "description": "Total matches across all pages, not just this page."
    },
    "page": {
      "type": "integer",
      "title": "Page"
    },
    "page_size": {
      "type": "integer",
      "title": "Page Size"
    }
  },
  "type": "object",
  "required": [
    "data",
    "total",
    "page",
    "page_size"
  ],
  "$defs": {
    "ActionItemV1": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "description": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Description"
        },
        "assignee": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Assignee",
          "description": "Free-text name, not a user reference."
        },
        "status": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "SUGGESTED",
                "ACCEPTED",
                "REJECTED",
                "COMPLETED"
              ],
              "title": "ActionItemStatus"
            },
            {
              "type": "null"
            }
          ],
          "title": "Status"
        },
        "origin": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "AUTO",
                "MANUAL"
              ],
              "title": "ActionItemOrigin"
            },
            {
              "type": "null"
            }
          ],
          "title": "Origin",
          "description": "`AUTO` (AI-extracted) or `MANUAL` (user-created)."
        },
        "due_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Due Date"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Completed At"
        },
        "archived": {
          "type": "boolean",
          "title": "Archived"
        },
        "meeting_id": {
          "type": "string",
          "title": "Meeting Id"
        },
        "meeting_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Meeting Name"
        },
        "project_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Project Id",
          "description": "Project the source meeting is filed under."
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "title": "Created At"
        },
        "updated_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Updated At",
          "description": "Null if never updated."
        }
      },
      "type": "object",
      "required": [
        "id",
        "description",
        "assignee",
        "status",
        "origin",
        "due_date",
        "completed_at",
        "archived",
        "meeting_id",
        "meeting_name",
        "project_id",
        "created_at",
        "updated_at"
      ],
      "title": "ActionItemV1",
      "description": "Action item response."
    }
  }
}