{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usewrit-app/json-schema/usewrit-app-data-runs-index-schema.json",
  "title": "DataRunsIndex",
  "description": "The snapshot index (`GET /v1/workflows/{id}/data/runs`).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/usewrit-app-data-api-openapi.yml#/components/schemas/DataRunsIndex",
  "type": "object",
  "required": [
    "runs",
    "identity",
    "scanned_runs",
    "truncated"
  ],
  "properties": {
    "runs": {
      "type": "array",
      "description": "Newest-first successful data-bearing runs; each entry carries `run_id`, record count, explicit-empty flag, per-snapshot delta (null for the oldest) and the run's `status`.",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "identity": {
      "type": "object",
      "description": "The chosen record identity.",
      "additionalProperties": true
    },
    "scanned_runs": {
      "type": "integer"
    },
    "truncated": {
      "type": "boolean"
    }
  }
}