{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aginera-ai/json-schema/aginera-ai-capabilities-schema.json",
  "title": "Capabilities",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aginera-ai-openapi.json#/components/schemas/Capabilities",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "capability": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "tools": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "available",
              "coming_soon",
              "not_enabled"
            ]
          },
          "pricing": {
            "type": "string",
            "description": "How this capability is priced for the account, when it has its own price."
          }
        },
        "required": [
          "capability",
          "description",
          "tools",
          "status"
        ]
      }
    },
    "example_requests": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "environment": {
      "$ref": "#/$defs/Environment"
    },
    "billing_mode": {
      "type": "string",
      "enum": [
        "ledger",
        "artifact"
      ]
    },
    "products": {
      "type": "object",
      "additionalProperties": {
        "type": "boolean"
      }
    },
    "disciplines": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Discipline"
      }
    },
    "export_formats": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExportFormat"
      }
    },
    "limits": {
      "type": "object",
      "additionalProperties": {
        "type": "number"
      }
    },
    "credits_available": {
      "type": [
        "number",
        "null"
      ]
    },
    "unit_system": {
      "type": "string",
      "enum": [
        "imperial",
        "metric"
      ]
    },
    "api_version": {
      "type": "string"
    },
    "taxonomy_version": {
      "type": "string"
    }
  },
  "required": [
    "name",
    "description",
    "capabilities",
    "example_requests",
    "environment",
    "billing_mode",
    "products",
    "disciplines",
    "export_formats",
    "limits",
    "credits_available",
    "unit_system",
    "api_version",
    "taxonomy_version"
  ],
  "$defs": {
    "Discipline": {
      "type": "string",
      "enum": [
        "electrical",
        "mechanical",
        "plumbing",
        "fire_protection",
        "process",
        "structural",
        "multi_discipline"
      ]
    },
    "Environment": {
      "type": "string",
      "enum": [
        "sandbox",
        "production"
      ]
    },
    "ExportFormat": {
      "type": "string",
      "enum": [
        "csv",
        "xlsx",
        "json",
        "accubid",
        "mccormick",
        "intellibid",
        "bluebeam_ost",
        "procore"
      ]
    }
  }
}