{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Peaks Recommendation Plan",
  "type": "object",
  "required": ["intent", "workflow", "profile", "audience", "options", "requiredCapabilities", "availability", "decisionRequired", "machine", "presentation"],
  "properties": {
    "intent": { "type": "string" },
    "workflow": { "type": "string" },
    "profile": { "type": "string" },
    "audience": { "type": "string" },
    "options": { "type": "array" },
    "requiredCapabilities": { "type": "array", "items": { "type": "string" } },
    "availability": { "type": "array" },
    "fallbacks": { "type": "array" },
    "decisionRequired": { "type": "boolean" },
    "machine": {
      "type": "object",
      "required": ["nextActions"],
      "properties": {
        "nextActions": { "type": "array" },
        "constraints": { "type": "array" },
        "stopConditions": { "type": "array" }
      }
    },
    "presentation": {
      "type": "object",
      "required": ["language", "summary", "options"],
      "properties": {
        "language": { "type": "string" },
        "summary": { "type": "string" },
        "options": { "type": "array" },
        "warnings": { "type": "array" },
        "explanations": { "type": "array" }
      }
    }
  }
}
