{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.vexstars.com/schemas/agent-service.v1.json",
  "title": "VexStars Agent Service",
  "type": "object",
  "required": [
    "name",
    "url",
    "summary",
    "offers",
    "approval_required_for",
    "human_approval_rule"
  ],
  "properties": {
    "schema": { "type": "string" },
    "name": { "type": "string" },
    "url": { "type": "string", "format": "uri" },
    "type": { "type": "string" },
    "summary": { "type": "string" },
    "status": { "type": "string" },
    "agent_readable_pages": {
      "type": "object",
      "additionalProperties": { "type": "string", "format": "uri" }
    },
    "offers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "name", "price", "availability", "description"],
        "properties": {
          "id": { "type": "string" },
          "name": { "type": "string" },
          "price": { "type": "string" },
          "availability": { "type": "string" },
          "description": { "type": "string" }
        }
      }
    },
    "approval_required_for": {
      "type": "array",
      "items": { "type": "string" }
    },
    "allowed_agent_actions": {
      "type": "array",
      "items": { "type": "string" }
    },
    "disallowed_claims": {
      "type": "array",
      "items": { "type": "string" }
    },
    "human_approval_rule": { "type": "string" },
    "last_updated": { "type": "string" }
  },
  "additionalProperties": true
}
