{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://ponolens.com/developers/capabilities-v1.schema.json",
  "title": "PonoLens Developer Capability Manifest v1",
  "type": "object",
  "required": ["apiVersion", "schema", "integration", "endpoints", "permissions", "capabilities", "eventTypes", "dataFields", "limits", "privacy"],
  "properties": {
    "apiVersion": { "type": "string" },
    "schema": { "const": "ponolens.event.v1" },
    "integration": { "type": "object", "required": ["id", "name"] },
    "endpoints": { "type": "object", "required": ["events", "capabilities"] },
    "permissions": { "type": "array", "items": { "enum": ["events:write", "capabilities:read"] } },
    "capabilities": { "type": "object" },
    "eventTypes": { "type": "array", "items": { "type": "string" } },
    "dataFields": { "type": "array", "items": { "type": "string" } },
    "limits": { "type": "object" },
    "privacy": { "type": "object" }
  }
}
