{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/proactions-ai-kit-configuration/_shared/latest--partial-section.schema.json",
  "title": "ProActions Section Schema",
  "description": "A logical section containing grouped actions",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/em-al-wi/proactions-schema/main/schema/partial-section.schema.json",
    "sourceSha256": "26da8e2ddecfbfc13b7031c04ac51b9996fad2a4201843f76a1c9e3c420bec98"
  },
  "type": "object",
  "properties": {
    "section": {
      "type": "string",
      "description": "Section identifier"
    },
    "category": {
      "type": "string",
      "description": "Category for grouping sections"
    },
    "hidden": {
      "type": "boolean",
      "description": "Whether this section is hidden from UI"
    },
    "app": {
      "type": "string",
      "enum": [
        "prime",
        "swing",
        "standalone"
      ],
      "description": "Application where this section applies"
    },
    "context": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "all",
            "report",
            "story",
            "dwp",
            "dashboard"
          ]
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "all",
              "report",
              "story",
              "dwp",
              "dashboard"
            ]
          }
        }
      ],
      "description": "Document context where this section appears"
    },
    "keywords": {
      "type": "string",
      "description": "Search keywords for finding actions"
    },
    "icon": {
      "type": "string",
      "description": "Icon html for this section"
    },
    "actions": {
      "type": "array",
      "description": "List of actions in this section",
      "items": {
        "oneOf": [
          {
            "$ref": "https://catalog.lintel.tools/schemas/schemastore/proactions-ai-kit-configuration/_shared/latest--partial-action.schema.json"
          },
          {
            "type": "string",
            "description": "Path to an external file using !include directive"
          }
        ]
      }
    }
  },
  "required": [
    "section",
    "actions"
  ]
}
