{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sealgate-ai/json-schema/sealgate-ai-accept-auto-labels-request-schema.json",
  "title": "AcceptAutoLabelsRequest",
  "description": "Request body for POST config-perms/review/accept.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sealgate-ai-config-perms-api-openapi.yml#/components/schemas/AcceptAutoLabelsRequest",
  "properties": {
    "server": {
      "type": "string",
      "title": "Server",
      "description": "MCP server name"
    },
    "items": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/AutoLabelItemRef"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Items",
      "description": "Specific elements to mark reviewed. Omit (null) to accept every unreviewed auto-applied label on the server."
    }
  },
  "type": "object",
  "required": [
    "server"
  ],
  "$defs": {
    "AutoLabelItemRef": {
      "properties": {
        "item_type": {
          "type": "string",
          "title": "Item Type",
          "description": "Element type: tool, resource, or prompt"
        },
        "item_name": {
          "type": "string",
          "title": "Item Name",
          "description": "Element name"
        }
      },
      "type": "object",
      "required": [
        "item_type",
        "item_name"
      ],
      "title": "AutoLabelItemRef",
      "description": "Reference to one labelled element inside a server."
    }
  }
}