{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commentary-dev/json-schema/commentary-dev-review-progress-response-schema.json",
  "title": "ReviewProgressResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commentary-dev-review-progress-api-openapi.yml#/components/schemas/ReviewProgressResponse",
  "type": "object",
  "required": [
    "ok",
    "viewerScoped",
    "summary",
    "files"
  ],
  "properties": {
    "ok": {
      "const": true
    },
    "viewerScoped": {
      "type": "boolean"
    },
    "summary": {
      "$ref": "#/$defs/ReviewProgressSummary"
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReviewProgressFile"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "ReviewProgressFile": {
      "type": "object",
      "required": [
        "filePath",
        "status",
        "changedSinceReviewed"
      ],
      "properties": {
        "filePath": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "not_started",
            "in_progress",
            "reviewed",
            "needs_re_review",
            "skipped"
          ]
        },
        "reviewedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reviewedByViewerId": {
          "type": [
            "string",
            "null"
          ]
        },
        "reviewedByLogin": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastInteractedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "reviewedRevision": {
          "type": [
            "string",
            "null"
          ]
        },
        "currentRevision": {
          "type": [
            "string",
            "null"
          ]
        },
        "changedSinceReviewed": {
          "type": "boolean"
        },
        "skippedReason": {
          "type": [
            "string",
            "null"
          ]
        },
        "partial": {
          "type": [
            "object",
            "null"
          ],
          "additionalProperties": true
        }
      },
      "additionalProperties": true
    },
    "ReviewProgressSummary": {
      "type": "object",
      "properties": {
        "totalFiles": {
          "type": "integer"
        },
        "reviewedFiles": {
          "type": "integer"
        },
        "inProgressFiles": {
          "type": "integer"
        },
        "skippedFiles": {
          "type": "integer"
        },
        "needsReReviewFiles": {
          "type": "integer"
        },
        "notStartedFiles": {
          "type": "integer"
        },
        "changedSinceReviewedFiles": {
          "type": "integer"
        },
        "percentReviewed": {
          "type": "integer"
        },
        "lastReviewedFilePath": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastReviewedSectionTitle": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}