{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-eco-data-area-grant-schema.json",
  "title": "EcoDataAreaGrant",
  "description": "A data-area grant captured at GEAI approval, expressed in the consent grammar\n(target area + key/scope pattern + read/write rights). Stored on the binding in chunk 1;\nenforcement beyond standard scopes is a later capability/data-access chunk.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aimeat-io-ecosystem-apps-api-openapi.yml#/components/schemas/EcoDataAreaGrant",
  "type": "object",
  "required": [
    "area",
    "pattern",
    "rights"
  ],
  "properties": {
    "area": {
      "type": "string",
      "description": "What the grant targets: memory | storage | knowledge | organisms."
    },
    "pattern": {
      "type": "string",
      "description": "Key prefix / bucket / topic / workspace-id pattern (e.g. \"support.*\")."
    },
    "rights": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "read",
          "write"
        ]
      }
    }
  }
}