{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/daon/json-schema/daon-archive-inflight-response-schema.json",
  "title": "ArchiveInflightResponse",
  "description": "Current archive in-flight load and remaining capacity for a tenant.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/daon-process-instance-archiving-api-openapi.yml#/components/schemas/ArchiveInflightResponse",
  "type": "object",
  "properties": {
    "numInflight": {
      "type": "integer",
      "format": "int64",
      "description": "Number of archives currently in-flight for the tenant (PENDING or RETRYING)."
    },
    "maxInflight": {
      "type": "integer",
      "format": "int32",
      "description": "The tenant's effective maximum number of concurrent in-flight archives."
    },
    "availableCapacity": {
      "type": "integer",
      "format": "int64",
      "description": "Remaining in-flight capacity before the throttle rejects further submissions (max(0, maxInflightPerTenant - numInflight))."
    }
  }
}