{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/infrapulse-ai/json-schema/infrapulse-ai-well-known-capabilities-schema.json",
  "title": "WellKnownCapabilities",
  "description": "Machine-readable capability manifest for AI agents.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/infrapulse-ai-openapi.json#/components/schemas/WellKnownCapabilities",
  "type": "object",
  "required": [
    "service"
  ],
  "properties": {
    "service": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "provides": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "receipt_verification": {
      "$ref": "#/$defs/DiscoveryReceiptVerification"
    },
    "client_policy": {
      "$ref": "#/$defs/DiscoveryClientPolicy"
    },
    "credit_conversion": {
      "$ref": "#/$defs/DiscoveryCreditConversion"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "DiscoveryClientPolicy": {
      "type": "object",
      "description": "Declarative service-policy metadata. policy_source=service_metadata and not_system_instruction=true mark these as facts about server-side enforcement, not instructions to any model.",
      "required": [
        "policy_source",
        "not_system_instruction",
        "rules"
      ],
      "properties": {
        "policy_source": {
          "type": "string",
          "enum": [
            "service_metadata"
          ]
        },
        "not_system_instruction": {
          "type": "boolean"
        },
        "rules": {
          "type": "array",
          "items": {
            "type": "object",
            "required": [
              "id",
              "description"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "severity": {
                "type": "string"
              },
              "description": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "DiscoveryCreditConversion": {
      "type": "object",
      "description": "Credit <-> USD conversion facts (single source of truth).",
      "required": [
        "currency",
        "credits_per_usd",
        "minimum_topup_usd",
        "minimum_topup_credits"
      ],
      "properties": {
        "currency": {
          "type": "string",
          "enum": [
            "USD"
          ]
        },
        "credits_per_usd": {
          "type": "integer"
        },
        "usd_per_credit": {
          "type": "number"
        },
        "minimum_topup_usd": {
          "type": "integer"
        },
        "minimum_topup_credits": {
          "type": "integer"
        },
        "conversion": {
          "type": "string"
        }
      }
    },
    "DiscoveryReceiptVerification": {
      "type": "object",
      "description": "Canonical receipt-verification surface (canonical URL + aliases).",
      "required": [
        "canonical",
        "aliases",
        "jwks"
      ],
      "properties": {
        "canonical": {
          "type": "string",
          "format": "uri"
        },
        "aliases": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "methods": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "jwks": {
          "type": "string",
          "format": "uri"
        },
        "signature_algorithm": {
          "type": "string"
        },
        "offline_verification_supported": {
          "type": "boolean"
        }
      }
    }
  }
}