{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-index-maintenance-request-schema.json",
  "title": "IndexMaintenanceRequest",
  "description": "Exact observations from index status. Each selected owner is admitted atomically through the replicated transaction journal; the selection is not one global transaction. Cancellation, conflicts, or a lost acknowledgement may leave some owners admitted. Resubmit the identical request to resume safely; do not replace its observations with newer progress unless starting a new maintenance attempt.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-index-management-api-openapi.yml#/components/schemas/IndexMaintenanceRequest",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "table_id",
    "schema_version",
    "owners"
  ],
  "properties": {
    "table_id": {
      "type": "string",
      "pattern": "^[0-9]+$"
    },
    "schema_version": {
      "type": "integer",
      "format": "uint32"
    },
    "owners": {
      "type": "array",
      "minItems": 1,
      "maxItems": 128,
      "items": {
        "$ref": "#/$defs/IndexMaintenanceOwnerProof"
      }
    }
  },
  "$defs": {
    "IndexMaintenanceOwnerProof": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "group_id",
        "generation",
        "slot",
        "owner",
        "comparison",
        "progress_digest",
        "maintenance_epoch"
      ],
      "properties": {
        "group_id": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "generation": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "slot": {
          "type": "integer",
          "format": "uint32"
        },
        "owner": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "comparison": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "progress_digest": {
          "type": "string",
          "pattern": "^[0-9a-f]{64}$"
        },
        "maintenance_epoch": {
          "type": "string",
          "pattern": "^[0-9]+$"
        }
      }
    }
  }
}