{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dpf-it-com/json-schema/dpf-it-com-list-maintenance-runs-request-schema.json",
  "title": "List Maintenance Runs",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dpf-it-com-workspaces-api-openapi.yml#/components/schemas/ListMaintenanceRunsRequest",
  "type": "object",
  "required": [
    "action",
    "workspaceId"
  ],
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "list-maintenance-runs"
      ],
      "description": "Action type"
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "description": "Workspace to list Iceberg table maintenance history for"
    },
    "pageSize": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 25,
      "description": "Number of records per page"
    },
    "cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque pagination cursor from a prior response's `nextCursor` (omit for the first page)"
    },
    "rowType": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "table",
        "sweep",
        null
      ],
      "description": "Filter by row type. `table` rows are written only for tables that actually changed or failed; `sweep` rows are written once per run regardless.\n"
    },
    "tableName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filter to a single Iceberg table (applies to `table` rows only)"
    },
    "runId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Filter to the rows written by one sweep. Combined with the sweep row's `startedAt`/`endTime` window this returns exactly that run's table rows, which is how the UI expands a run in the maintenance tree.\n"
    },
    "startTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Lower bound (inclusive) on when the run started, ISO 8601"
    },
    "endTime": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Upper bound (inclusive) on when the run started, ISO 8601"
    }
  }
}