{
    "swagger": "2.0",
    "info": {
        "description": "Collects SBOMs from linux, windows and kubernetes agents, scans them with Grype and reports the findings.",
        "title": "Vulnerability Operator API",
        "contact": {},
        "version": "1.0"
    },
    "basePath": "/api/v1",
    "paths": {
        "/.well-known/oauth-protected-resource": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "mcp"
                ],
                "summary": "MCP protected resource metadata",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                }
            }
        },
        "/agent-releases": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List agent releases",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AgentRelease"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "multipart/form-data"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Upload an agent release",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Version, e.g. 1.4.0",
                        "name": "version",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "linux or windows",
                        "name": "os",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "amd64 or arm64",
                        "name": "arch",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Release notes",
                        "name": "notes",
                        "in": "formData"
                    },
                    {
                        "type": "file",
                        "description": "Agent binary",
                        "name": "file",
                        "in": "formData",
                        "required": true
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AgentRelease"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent-releases/published": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "The versions CI published to the release bucket. Mirrored tells whether the server holds the binary already. Updates fetch a version the server does not hold yet.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List published agent versions",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.publishedResponse"
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent-releases/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Delete an agent release",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Release ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent-updates": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Sets the target version of every enabled linux and windows agent that is not a container. An empty version cancels the pending updates. Each agent picks the update up on its next heartbeat.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Update all host agents",
                "parameters": [
                    {
                        "description": "Target version, empty cancels",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.updateAllRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.updateAllResult"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/fim": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Every watched file of the host with its hash and mode. The server compares the scan with the previous one and records the changes. Only host agents send scans.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Upload a file integrity scan",
                "parameters": [
                    {
                        "description": "Scan",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMSnapshot"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/heartbeat": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Called by every agent once per heartbeat interval. The response carries the pending update, if the administrator requested one.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Agent heartbeat",
                "parameters": [
                    {
                        "description": "Heartbeat",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.HeartbeatRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.HeartbeatResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/inventory": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Multipart upload with the JSON field \"meta\" (protocol.InventoryMeta) and the SBOM document in the field \"sbom\". Accepts syft-json, CycloneDX or SPDX documents.",
                "consumes": [
                    "multipart/form-data"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Upload an SBOM",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Inventory metadata as JSON",
                        "name": "meta",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "file",
                        "description": "SBOM document",
                        "name": "sbom",
                        "in": "formData",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.InventoryResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/inventory/place": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Records the container. When the server already has the SBOM of its image, the answer is known=true and the agent does not upload it. Otherwise the agent uploads the SBOM. Used by kubernetes agents.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Place a container of a known image",
                "parameters": [
                    {
                        "description": "Container",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.InventoryMeta"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.PlaceResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/inventory/sync": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Every asset of the agent that is not listed in the request is removed. Used by kubernetes agents.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Reconcile the assets of an agent",
                "parameters": [
                    {
                        "description": "Current asset keys",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.SyncRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.SyncResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/register": {
            "post": {
                "description": "Called by a kubernetes node agent or a linux host agent at start, with the cluster token, the agent type and the name of its node. Creates the agent on first use. Each call issues a new key for the agent, and the previous key stops working.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Register a node agent",
                "parameters": [
                    {
                        "description": "Cluster token, agent type and node name",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.RegisterRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.RegisterResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/releases/{version}/{os}/{arch}/download": {
            "get": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Download an agent release",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Release version",
                        "name": "version",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "linux or windows",
                        "name": "os",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "amd64 or arm64",
                        "name": "arch",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/windows-updates/plan": {
            "get": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "The updates the policy of this Windows host approves now, and whether the host may restart. Only Windows agents call it.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Windows update plan",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsPlanResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agent/windows-updates/report": {
            "post": {
                "security": [
                    {
                        "AgentKey": []
                    }
                ],
                "description": "Stores the outcome of an update run: failures, and whether the host waits for a restart.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agent"
                ],
                "summary": "Report a Windows update run",
                "parameters": [
                    {
                        "description": "Run outcome",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsUpdateReport"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List agents",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/internal_api.AgentView"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Register an agent",
                "parameters": [
                    {
                        "description": "Agent",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.createAgentRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentCreated"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents/{id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Get an agent",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentView"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Delete an agent and its inventory",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Update an agent",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Changes",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.updateAgentRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentView"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents/{id}/fim-events": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List file integrity changes",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.FIMEvent"
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents/{id}/rotate-key": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Rotate the agent key",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentCreated"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents/{id}/update": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Request an agent update",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Target version, empty cancels",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.updateRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/agents/{id}/windows-policy": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Set the Windows update policy of a host",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "{\\",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/alert-channels": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "List alert channels",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/internal_api.ChannelView"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Create an alert channel",
                "parameters": [
                    {
                        "description": "Channel",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.ChannelRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.ChannelView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/alert-channels/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Update an alert channel",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Channel ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Channel",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.ChannelRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.ChannelView"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Delete an alert channel",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Channel ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/alert-channels/{id}/test": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Send a test message",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Channel ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/alert-events": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "List alert deliveries",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AlertEvent"
                            }
                        }
                    }
                }
            }
        },
        "/alert-rules": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "List alert rules",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/internal_api.AlertRuleView"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Finding rules fire once for every newly seen finding that matches all conditions. Agent-offline rules fire once per offline episode.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Create an alert rule",
                "parameters": [
                    {
                        "description": "Rule",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.AlertRuleRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AlertRuleView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/alert-rules/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Update an alert rule",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Rule ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Rule",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.AlertRuleRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AlertRuleView"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "alerts"
                ],
                "summary": "Delete an alert rule",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Rule ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/assets": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "assets"
                ],
                "summary": "List assets",
                "parameters": [
                    {
                        "type": "string",
                        "description": "host or container",
                        "name": "kind",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Cluster",
                        "name": "cluster",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Namespace",
                        "name": "namespace",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "agentId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Name contains",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Image contains",
                        "name": "image",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Host name of the agent contains",
                        "name": "hostname",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Operating system or distribution contains",
                        "name": "os",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "OS version contains, from the distribution name",
                        "name": "version",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size, max 500",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Asset"
                        }
                    }
                }
            }
        },
        "/auth/login": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Log in with email and password",
                "parameters": [
                    {
                        "description": "Credentials",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.loginRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.LoginResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "429": {
                        "description": "Too Many Requests",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/auth/me": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Current user",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.UserView"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/auth/oidc/callback": {
            "get": {
                "tags": [
                    "auth"
                ],
                "summary": "OpenID Connect callback",
                "parameters": [
                    {
                        "type": "string",
                        "description": "State of the sign-in",
                        "name": "state",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Authorization code",
                        "name": "code",
                        "in": "query"
                    }
                ],
                "responses": {
                    "302": {
                        "description": "Found"
                    }
                }
            }
        },
        "/auth/oidc/login": {
            "get": {
                "tags": [
                    "auth"
                ],
                "summary": "Start OpenID Connect sign-in",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Path in the UI to open after sign-in",
                        "name": "return",
                        "in": "query"
                    }
                ],
                "responses": {
                    "302": {
                        "description": "Found"
                    }
                }
            }
        },
        "/auth/password": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Change own password",
                "parameters": [
                    {
                        "description": "Passwords",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.passwordRequest"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/auth/providers": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Sign-in methods",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.authProvidersResponse"
                        }
                    }
                }
            }
        },
        "/auth/saml/acs": {
            "post": {
                "consumes": [
                    "application/x-www-form-urlencoded"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "SAML assertion consumer service",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Response of the identity provider",
                        "name": "SAMLResponse",
                        "in": "formData",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Relay state of the sign-in",
                        "name": "RelayState",
                        "in": "formData"
                    }
                ],
                "responses": {
                    "302": {
                        "description": "Found"
                    }
                }
            }
        },
        "/auth/saml/login": {
            "get": {
                "tags": [
                    "auth"
                ],
                "summary": "Start SAML sign-in",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Path in the UI to open after sign-in",
                        "name": "return",
                        "in": "query"
                    }
                ],
                "responses": {
                    "302": {
                        "description": "Found"
                    }
                }
            }
        },
        "/auth/saml/metadata": {
            "get": {
                "produces": [
                    "application/xml"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "SAML service provider metadata",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/auth/tokens": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "List own API tokens",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.APIToken"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Create a personal API token for the REST API and MCP",
                "parameters": [
                    {
                        "description": "Token name",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.createTokenRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.CreatedToken"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/auth/tokens/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "auth"
                ],
                "summary": "Revoke an API token",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Token ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/cluster-tokens": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List cluster registration tokens",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ClusterToken"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Creates the token that the node agents of a cluster register with. Every node uses the same token. It is shown once and works until it is deleted.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Create a cluster registration token",
                "parameters": [
                    {
                        "description": "Cluster",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.clusterTokenRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.ClusterTokenCreated"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/cluster-tokens/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Delete a cluster registration token",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Token ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/cpe-mappings": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "List CPE mappings",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.CPEMapping"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Create a CPE mapping",
                "parameters": [
                    {
                        "description": "mapping",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.cpeMappingRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.CPEMapping"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/cpe-mappings/resolve": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Resolve a program name to a vendor and product",
                "parameters": [
                    {
                        "type": "string",
                        "description": "program name, as installed",
                        "name": "name",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "vendor the agent reported",
                        "name": "vendor",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Resolution"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/cpe-mappings/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Update a CPE mapping",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "mapping id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "mapping",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.cpeMappingRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.CPEMapping"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Delete a CPE mapping",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "mapping id",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    }
                }
            }
        },
        "/dashboard/summary": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "dashboard"
                ],
                "summary": "Dashboard summary",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Severity filter, comma separated",
                        "name": "severity",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Cluster",
                        "name": "cluster",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Namespace",
                        "name": "namespace",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "agentId",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.Summary"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/enroll-tokens": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Creates a token that registers one host with an installer script. It works once and expires. The command runs the installer, which downloads the agent, writes its configuration and starts it.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Create an enrollment token",
                "parameters": [
                    {
                        "description": "Host to enroll",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.enrollRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.enrollResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/export/findings": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Accepts the same filters as GET /findings. The PDF is rendered by a worker as a report, limited to the configured report row count: the response is that report, downloaded from /reports/{id}/download once ready.",
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "Export vulnerability findings",
                "parameters": [
                    {
                        "type": "string",
                        "default": "csv",
                        "description": "csv, json, sarif or pdf",
                        "name": "format",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/export/packages": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "packages"
                ],
                "summary": "Export dependencies",
                "parameters": [
                    {
                        "type": "string",
                        "default": "csv",
                        "description": "csv, json or pdf",
                        "name": "format",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "202": {
                        "description": "PDF: the report that a worker renders",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/export/vex": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Decisions with a status, for findings the caller may see. Open findings with only an owner or a ticket are left out.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "Export the decisions as OpenVEX",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.openVEX"
                        }
                    }
                }
            }
        },
        "/finding-decisions": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "A decision says whether a finding affects its package, and who looks after it. Not-affected findings are hidden from the findings.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "List triage decisions",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Page",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size, max 500",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_FindingDecision"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Creates or replaces the decision on the finding named by asset, package and vulnerability. A not_affected decision needs a justification from the OpenVEX list and hides the finding.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "Record a triage decision",
                "parameters": [
                    {
                        "description": "Decision",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.decisionRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.FindingDecision"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/finding-decisions/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "findings"
                ],
                "summary": "Remove a triage decision",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Decision ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/findings": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Filters are combined with AND. Multi-value filters take comma separated values.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "List vulnerability findings",
                "parameters": [
                    {
                        "type": "string",
                        "description": "critical,high,medium,low,negligible,unknown",
                        "name": "severity",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Cluster name",
                        "name": "cluster",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Namespace",
                        "name": "namespace",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Pod name",
                        "name": "pod",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Container name",
                        "name": "container",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "host or container",
                        "name": "kind",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Asset name contains",
                        "name": "asset",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Agent ID",
                        "name": "agentId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Package name contains",
                        "name": "package",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Package type, e.g. deb, npm",
                        "name": "packageType",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Package version contains",
                        "name": "version",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Host name of the agent contains",
                        "name": "hostname",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Operating system or distribution contains",
                        "name": "os",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Vulnerability ID contains",
                        "name": "cve",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Free text",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "boolean",
                        "description": "Only fixable findings",
                        "name": "fixable",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "description": "Minimum CVSS",
                        "name": "minCvss",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "First seen since (RFC 3339 or YYYY-MM-DD)",
                        "name": "since",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "severity, cvss, cve, package, asset, firstSeen",
                        "name": "sort",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "asc or desc",
                        "name": "order",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page, starting at 1",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size, max 500",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Finding"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/findings/facets": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "findings"
                ],
                "summary": "Distinct values for filters",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Facets"
                        }
                    }
                }
            }
        },
        "/healthz": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "Liveness probe",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/install/agent/{os}/{arch}": {
            "get": {
                "produces": [
                    "application/octet-stream"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Agent binary for the installers",
                "parameters": [
                    {
                        "type": "string",
                        "description": "linux or windows",
                        "name": "os",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "amd64 or arm64",
                        "name": "arch",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/install/linux.sh": {
            "get": {
                "description": "The bash installer for Linux (install.sh) or the PowerShell installer for Windows (install.ps1), made for one enrollment token.",
                "produces": [
                    "text/plain"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Installer script",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Enrollment token",
                        "name": "token",
                        "in": "query",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "type": "string"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "type": "string"
                        }
                    }
                }
            }
        },
        "/install/register": {
            "post": {
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Register a host with an enrollment token",
                "parameters": [
                    {
                        "description": "Token and host name",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.registerRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.registerResponse"
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "410": {
                        "description": "Gone",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/mcp": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Model Context Protocol (streamable HTTP) for AI assistants. Tools: search_findings (filter and list vulnerability findings), vulnerability_summary (counts by severity, top CVEs and packages, agent liveness), list_packages (dependencies with asset and finding counts), list_assets (hosts and containers), list_agents (registered agents and whether they are online). Sign in with the identity provider; personal API tokens are not accepted here.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json",
                    "text/event-stream"
                ],
                "tags": [
                    "mcp"
                ],
                "summary": "MCP endpoint",
                "parameters": [
                    {
                        "description": "JSON-RPC 2.0 message, for example tools/list or tools/call",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "401": {
                        "description": "Unauthorized",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/nvd-cpes/import": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Import the NVD CPE dictionary",
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/nvd-cpes/search": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "Search the NVD CPE dictionary",
                "parameters": [
                    {
                        "type": "string",
                        "description": "program name, as installed",
                        "name": "name",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "integer",
                        "default": 10,
                        "description": "most candidates to return",
                        "name": "limit",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Candidate"
                            }
                        }
                    }
                }
            }
        },
        "/nvd-cpes/status": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "nvd-cpes"
                ],
                "summary": "NVD CPE dictionary status",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Status"
                        }
                    }
                }
            }
        },
        "/packages": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "packages"
                ],
                "summary": "List dependencies",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Name contains",
                        "name": "name",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Package type",
                        "name": "type",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Language",
                        "name": "language",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Free text on name and purl",
                        "name": "q",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Only packages on assets of this cluster",
                        "name": "cluster",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Only packages on assets of this namespace",
                        "name": "namespace",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Only packages of this agent",
                        "name": "agentId",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Package version contains",
                        "name": "version",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Only packages on hosts whose name contains this",
                        "name": "hostname",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Only packages on hosts whose operating system or distribution contains this",
                        "name": "os",
                        "in": "query"
                    },
                    {
                        "type": "boolean",
                        "description": "Only packages with (true) or without (false) findings",
                        "name": "vulnerable",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size, max 500",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_store_PackageView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/packages/{id}": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "packages"
                ],
                "summary": "Get a dependency",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Package ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.PackageDetail"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/permissions": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "roles"
                ],
                "summary": "List permissions",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_rbac.Permission"
                            }
                        }
                    }
                }
            }
        },
        "/readyz": {
            "get": {
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "system"
                ],
                "summary": "Readiness probe",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "503": {
                        "description": "Service Unavailable",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/report-templates": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "List report templates",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ReportTemplate"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Create a report template",
                "parameters": [
                    {
                        "description": "Template",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.reportTemplateRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ReportTemplate"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/report-templates/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Update a report template",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Template ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Template",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.reportTemplateRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ReportTemplate"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Delete a report template",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Template ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/report-templates/{id}/reports": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Generate a report from a template",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Template ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/reports": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "List reports",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Page",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Report"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Vulnerability and dependency lists. The report is created as generating and the PDF is rendered in the background; poll GET /reports until its status is ready or failed. With aiSummary the configured OpenAI-compatible backend writes an executive summary from aggregated statistics only.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Generate a PDF report",
                "parameters": [
                    {
                        "description": "Report definition",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.reportRequest"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/reports/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Delete a report",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Report ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/reports/{id}/download": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/pdf"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Download or view a report",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Report ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "type": "boolean",
                        "description": "Show the PDF in the browser instead of saving it",
                        "name": "inline",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "file"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/reports/{id}/recreate": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Starts a new report with the kind, filter and AI option of an existing report. The original report is kept.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "reports"
                ],
                "summary": "Recreate a report",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Report ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/roles": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "roles"
                ],
                "summary": "List roles",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Role"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "roles"
                ],
                "summary": "Create a role",
                "parameters": [
                    {
                        "description": "Role",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.RoleRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Role"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/roles/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "roles"
                ],
                "summary": "Update a role",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Role ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Role",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.RoleRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Role"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "roles"
                ],
                "summary": "Delete a role",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Role ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/scans": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "scans"
                ],
                "summary": "List scan runs",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Page",
                        "name": "page",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Page size",
                        "name": "pageSize",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_ScanRun"
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "scans"
                ],
                "summary": "Start a vulnerability scan",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "Rescan every asset instead of only pending and outdated ones",
                        "name": "full",
                        "in": "query"
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/scans/{id}/cancel": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Ends the running scan. Its assets that are not scanned yet are skipped.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "scans"
                ],
                "summary": "Cancel a scan",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Scan run ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/settings/agent-updates": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "When on, every enabled host agent that is not a container is moved to the latest published release. Each agent picks the update up on its next heartbeat.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Automatic agent updates",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentAutoUpdateSettings"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Update automatic agent updates",
                "parameters": [
                    {
                        "description": "Settings",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentAutoUpdateSettings"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AgentAutoUpdateSettings"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/settings/ai": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Get AI backend settings",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AISettingsView"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Any OpenAI-compatible chat completions server works, for example OpenAI, Ollama or vLLM. The base URL is the API root that contains /chat/completions.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Update AI backend settings",
                "parameters": [
                    {
                        "description": "Settings",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.AISettingsRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.AISettingsView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/settings/ai/test": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Test the AI backend",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "502": {
                        "description": "Bad Gateway",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/settings/nvd": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "NVD settings",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.NVDSettingsView"
                        }
                    }
                }
            },
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "settings"
                ],
                "summary": "Update the NVD API key",
                "parameters": [
                    {
                        "description": "Settings",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.NVDSettingsRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.NVDSettingsView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/software/allowed": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "software"
                ],
                "summary": "List allowed software",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AllowedSoftware"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "software"
                ],
                "summary": "Allow a software package",
                "parameters": [
                    {
                        "description": "Allowed software",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.AllowedSoftwareRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AllowedSoftware"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/software/allowed/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "software"
                ],
                "summary": "Remove an allowed software package",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Entry ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/software/events": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Packages that hosts installed, updated or removed between two scans. With unallowed=true only the installed or updated packages that are not on the allowed list.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "software"
                ],
                "summary": "List software changes",
                "parameters": [
                    {
                        "type": "boolean",
                        "description": "Only packages that are not on the allowed list",
                        "name": "unallowed",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.SoftwareEvent"
                            }
                        }
                    }
                }
            }
        },
        "/task-runs": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Running jobs with their progress, and the last finished ones. A running job whose heartbeat stopped is listed as interrupted.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "List task runs",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_tasks.Overview"
                        }
                    }
                }
            }
        },
        "/task-runs/{id}/cancel": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Marks the running task run as cancelled. Its job stops at the next progress update.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "Cancel a task run",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Task run ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/tasks": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "List scheduled tasks",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_scheduler.TaskView"
                            }
                        }
                    }
                }
            }
        },
        "/tasks/{name}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "The schedule is a cron expression with five fields, or a descriptor such as @hourly or @every 30m.",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "Update a scheduled task",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Task name",
                        "name": "name",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Schedule",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.updateTaskRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ScheduledTask"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/tasks/{name}/run": {
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "tasks"
                ],
                "summary": "Run a scheduled task now",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Task name",
                        "name": "name",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "202": {
                        "description": "Accepted",
                        "schema": {
                            "type": "object",
                            "additionalProperties": {
                                "type": "string"
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/users": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "summary": "List users",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/internal_api.UserView"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "summary": "Create a user",
                "parameters": [
                    {
                        "description": "User",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.UserRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/internal_api.UserView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "409": {
                        "description": "Conflict",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/users/{id}": {
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "users"
                ],
                "summary": "Delete a user",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "User ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "patch": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "users"
                ],
                "summary": "Update a user",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "User ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Changes",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.UserRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.UserView"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/windows-policies": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List Windows update policies",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsPolicy"
                            }
                        }
                    }
                }
            },
            "post": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Create a Windows update policy",
                "parameters": [
                    {
                        "description": "Policy",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.windowsPolicyRequest"
                        }
                    }
                ],
                "responses": {
                    "201": {
                        "description": "Created",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsPolicy"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/windows-policies/{id}": {
            "put": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Update a Windows update policy",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Policy ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    },
                    {
                        "description": "Policy",
                        "name": "body",
                        "in": "body",
                        "required": true,
                        "schema": {
                            "$ref": "#/definitions/internal_api.windowsPolicyRequest"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsPolicy"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            },
            "delete": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Delete a Windows update policy",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Policy ID",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No Content"
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/windows-updates": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Each Windows host is compared with the cumulative updates that Microsoft published for its product, security, optional preview and out-of-band alike. The installed build comes from the host's inventory. Nothing is asked of the host about its updates.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List Windows update status",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/internal_api.WindowsUpdatesView"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/windows-updates/compliance": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "description": "Counts the Windows hosts that follow their policy: no approved update missing, no failed run, no restart pending. Lists each host that is not compliant with its reasons.",
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "Windows update compliance",
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.ComplianceReport"
                        }
                    },
                    "500": {
                        "description": "Internal Server Error",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        },
        "/windows-updates/hosts/{id}/missing": {
            "get": {
                "security": [
                    {
                        "BearerAuth": []
                    }
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "agents"
                ],
                "summary": "List the updates a Windows host is missing",
                "parameters": [
                    {
                        "type": "integer",
                        "description": "Asset ID of the host",
                        "name": "id",
                        "in": "path",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsUpdate"
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "schema": {
                            "$ref": "#/definitions/internal_api.errorBody"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "internal_api.AISettingsRequest": {
            "type": "object",
            "properties": {
                "apiKey": {
                    "type": "string"
                },
                "autoMatchCpe": {
                    "type": "boolean"
                },
                "baseUrl": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "model": {
                    "type": "string"
                },
                "timeoutSeconds": {
                    "type": "integer"
                }
            }
        },
        "internal_api.AISettingsView": {
            "type": "object",
            "properties": {
                "autoMatchCpe": {
                    "description": "AutoMatchCPE lets the model choose the CPE of Windows programs that the\nNVD dictionary does not match. It needs Enabled.",
                    "type": "boolean"
                },
                "baseUrl": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "hasApiKey": {
                    "type": "boolean"
                },
                "model": {
                    "type": "string"
                },
                "timeoutSeconds": {
                    "type": "integer"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.AgentAutoUpdateSettings": {
            "type": "object",
            "properties": {
                "autoUpdate": {
                    "type": "boolean"
                }
            }
        },
        "internal_api.AgentCreated": {
            "type": "object",
            "properties": {
                "arch": {
                    "type": "string"
                },
                "clusterName": {
                    "type": "string"
                },
                "container": {
                    "description": "Container is true when the agent runs in a container. Those are updated\nwith a new image, not by the agent.",
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "string"
                },
                "distro": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "hostname": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "ipAddress": {
                    "type": "string"
                },
                "key": {
                    "type": "string"
                },
                "lastInventoryAt": {
                    "description": "LastInventoryAt is the last SBOM upload. LastInventoryChanged tells whether\nthat upload brought changes; an unchanged SBOM is only acknowledged.",
                    "type": "string"
                },
                "lastInventoryChanged": {
                    "type": "boolean"
                },
                "lastSeenAt": {
                    "type": "string"
                },
                "lastUpdatedAt": {
                    "description": "LastUpdatedAt is when a package of the agent's hosts last changed its version,\nas the scans saw it. Nil until a host has been scanned twice.",
                    "type": "string"
                },
                "managedUpdates": {
                    "description": "ManagedUpdates is false for container agents: they update with a new image.",
                    "type": "boolean"
                },
                "mobile": {
                    "description": "Mobile marks an agent on a laptop or other host that is often offline. Its offline\nalerts are not sent.",
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "os": {
                    "type": "string"
                },
                "osBuild": {
                    "description": "OSBuild is the windows build the agent reported with its last heartbeat. OSBuildChangedAt\nis when it last changed.",
                    "type": "string"
                },
                "osBuildChangedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "targetVersion": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updateAvailable": {
                    "type": "boolean"
                },
                "updatedAt": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                },
                "windowsPolicyId": {
                    "description": "WindowsPolicyID is the policy of a windows agent. Nil means the default policy.",
                    "type": "integer"
                },
                "windowsRebootPending": {
                    "description": "WindowsRebootPending is the restart flag of the host, as the agent reported it\nafter its last update run. WindowsUpdateError is the last failure of a run.",
                    "type": "boolean"
                },
                "windowsUpdateError": {
                    "type": "string"
                },
                "windowsUpdatesAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.AgentRef": {
            "type": "object",
            "properties": {
                "clusterName": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "internal_api.AgentView": {
            "type": "object",
            "properties": {
                "arch": {
                    "type": "string"
                },
                "clusterName": {
                    "type": "string"
                },
                "container": {
                    "description": "Container is true when the agent runs in a container. Those are updated\nwith a new image, not by the agent.",
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "string"
                },
                "distro": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "hostname": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "ipAddress": {
                    "type": "string"
                },
                "lastInventoryAt": {
                    "description": "LastInventoryAt is the last SBOM upload. LastInventoryChanged tells whether\nthat upload brought changes; an unchanged SBOM is only acknowledged.",
                    "type": "string"
                },
                "lastInventoryChanged": {
                    "type": "boolean"
                },
                "lastSeenAt": {
                    "type": "string"
                },
                "lastUpdatedAt": {
                    "description": "LastUpdatedAt is when a package of the agent's hosts last changed its version,\nas the scans saw it. Nil until a host has been scanned twice.",
                    "type": "string"
                },
                "managedUpdates": {
                    "description": "ManagedUpdates is false for container agents: they update with a new image.",
                    "type": "boolean"
                },
                "mobile": {
                    "description": "Mobile marks an agent on a laptop or other host that is often offline. Its offline\nalerts are not sent.",
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "os": {
                    "type": "string"
                },
                "osBuild": {
                    "description": "OSBuild is the windows build the agent reported with its last heartbeat. OSBuildChangedAt\nis when it last changed.",
                    "type": "string"
                },
                "osBuildChangedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "targetVersion": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updateAvailable": {
                    "type": "boolean"
                },
                "updatedAt": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                },
                "windowsPolicyId": {
                    "description": "WindowsPolicyID is the policy of a windows agent. Nil means the default policy.",
                    "type": "integer"
                },
                "windowsRebootPending": {
                    "description": "WindowsRebootPending is the restart flag of the host, as the agent reported it\nafter its last update run. WindowsUpdateError is the last failure of a run.",
                    "type": "boolean"
                },
                "windowsUpdateError": {
                    "type": "string"
                },
                "windowsUpdatesAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.AlertRuleRequest": {
            "type": "object",
            "required": [
                "kind",
                "name"
            ],
            "properties": {
                "agentType": {
                    "type": "string"
                },
                "channelIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "cluster": {
                    "type": "string"
                },
                "cvePattern": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "kind": {
                    "type": "string",
                    "enum": [
                        "finding",
                        "agent-offline"
                    ]
                },
                "minSeverity": {
                    "type": "string"
                },
                "name": {
                    "type": "string",
                    "maxLength": 255
                },
                "namespace": {
                    "type": "string"
                },
                "onlyFixable": {
                    "type": "boolean"
                },
                "packagePattern": {
                    "type": "string"
                }
            }
        },
        "internal_api.AlertRuleView": {
            "type": "object",
            "properties": {
                "agentType": {
                    "type": "string"
                },
                "channelIds": {
                    "type": "array",
                    "items": {
                        "type": "integer"
                    }
                },
                "cluster": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "cvePattern": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "kind": {
                    "type": "string"
                },
                "minSeverity": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "namespace": {
                    "type": "string"
                },
                "onlyFixable": {
                    "type": "boolean"
                },
                "packagePattern": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.AllowedSoftwareRequest": {
            "type": "object",
            "properties": {
                "name": {
                    "description": "Name is a glob, for example \"openssl*\".",
                    "type": "string"
                },
                "note": {
                    "type": "string"
                },
                "version": {
                    "description": "Version is an optional glob. Empty allows every version.",
                    "type": "string"
                }
            }
        },
        "internal_api.ChannelRequest": {
            "type": "object",
            "required": [
                "name",
                "type"
            ],
            "properties": {
                "config": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_alerting.ChannelConfig"
                },
                "enabled": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string",
                    "maxLength": 255
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "ntfy",
                        "gotify",
                        "mail",
                        "slack",
                        "teams",
                        "discord"
                    ]
                }
            }
        },
        "internal_api.ChannelView": {
            "type": "object",
            "properties": {
                "config": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_alerting.ChannelConfig"
                },
                "createdAt": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.ClusterTokenCreated": {
            "type": "object",
            "properties": {
                "clusterName": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "createdBy": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "lastUsedAt": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "internal_api.CreatedToken": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "lastUsedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                },
                "userId": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Facets": {
            "type": "object",
            "properties": {
                "agents": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.AgentRef"
                    }
                },
                "assetKinds": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "clusters": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "namespaces": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "packageTypes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "severities": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "internal_api.LoginResponse": {
            "type": "object",
            "properties": {
                "expiresAt": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                },
                "user": {
                    "$ref": "#/definitions/internal_api.UserView"
                }
            }
        },
        "internal_api.NVDSettingsRequest": {
            "type": "object",
            "properties": {
                "apiKey": {
                    "type": "string"
                },
                "clear": {
                    "type": "boolean"
                }
            }
        },
        "internal_api.NVDSettingsView": {
            "type": "object",
            "properties": {
                "hasApiKey": {
                    "type": "boolean"
                }
            }
        },
        "internal_api.PackageDetail": {
            "type": "object",
            "properties": {
                "assets": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.AssetView"
                    }
                },
                "findings": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.FindingView"
                    }
                },
                "package": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.PackageView"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Asset": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Asset"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Finding": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Finding"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_FindingDecision": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.FindingDecision"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_Report": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Report"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_database_ScanRun": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ScanRun"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.Page-jonasled_dev_jonasled_vulnerability-operator_internal_store_PackageView": {
            "type": "object",
            "properties": {
                "items": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.PackageView"
                    }
                },
                "page": {
                    "type": "integer"
                },
                "pageSize": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "internal_api.RoleRequest": {
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "permissions": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "internal_api.UserRequest": {
            "type": "object",
            "properties": {
                "email": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "roles": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "scopeAll": {
                    "type": "boolean"
                },
                "scopeClusters": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "scopeNodes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "internal_api.UserView": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "email": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "permissions": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "provider": {
                    "description": "Provider is local for accounts with a password, or the identity provider\nthat signs the user in (oidc or saml). Those accounts have no password.",
                    "type": "string"
                },
                "roles": {
                    "description": "Roles and the scope are changed by an admin for local accounts. For the\naccounts of an identity provider they follow the group mapping at sign-in.",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.Role"
                    }
                },
                "scopeAll": {
                    "description": "ScopeAll lets the user see every cluster and node. Otherwise the user sees\nthe listed clusters and the listed nodes (see rbac.Scope).",
                    "type": "boolean"
                },
                "scopeClusters": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "scopeNodes": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "internal_api.WindowsUpdatesView": {
            "type": "object",
            "properties": {
                "catalogFetchedAt": {
                    "description": "CatalogFetchedAt is when the updates were last read from Microsoft.",
                    "type": "string"
                },
                "hosts": {
                    "description": "Hosts lists each host with the updates it is missing.",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.Host"
                    }
                },
                "updates": {
                    "description": "Updates lists each update of the products in use, with the hosts that need it.",
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.UpdateRow"
                    }
                }
            }
        },
        "internal_api.authProvidersResponse": {
            "type": "object",
            "properties": {
                "oidc": {
                    "$ref": "#/definitions/internal_api.providerInfo"
                },
                "passwordLogin": {
                    "type": "boolean"
                },
                "saml": {
                    "$ref": "#/definitions/internal_api.providerInfo"
                }
            }
        },
        "internal_api.clusterTokenRequest": {
            "type": "object",
            "required": [
                "clusterName"
            ],
            "properties": {
                "clusterName": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "internal_api.cpeMappingRequest": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "product": {
                    "type": "string"
                },
                "vendor": {
                    "type": "string"
                }
            }
        },
        "internal_api.createAgentRequest": {
            "type": "object",
            "required": [
                "name",
                "type"
            ],
            "properties": {
                "clusterName": {
                    "type": "string"
                },
                "name": {
                    "type": "string",
                    "maxLength": 255
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "linux",
                        "windows",
                        "macos",
                        "kubernetes"
                    ]
                }
            }
        },
        "internal_api.createTokenRequest": {
            "type": "object",
            "required": [
                "name"
            ],
            "properties": {
                "name": {
                    "type": "string",
                    "maxLength": 255
                }
            }
        },
        "internal_api.decisionRequest": {
            "type": "object",
            "required": [
                "assetId",
                "packageId",
                "vulnerabilityId"
            ],
            "properties": {
                "assetId": {
                    "type": "integer"
                },
                "detail": {
                    "type": "string"
                },
                "justification": {
                    "type": "string"
                },
                "owner": {
                    "type": "string"
                },
                "packageId": {
                    "type": "integer"
                },
                "status": {
                    "description": "Status is one of not_affected, affected, fixed and under_investigation.\nEmpty keeps the finding open and only records an owner or a ticket.",
                    "type": "string"
                },
                "ticketUrl": {
                    "type": "string"
                },
                "vulnerabilityId": {
                    "type": "string"
                }
            }
        },
        "internal_api.enrollRequest": {
            "type": "object",
            "required": [
                "type"
            ],
            "properties": {
                "expiresIn": {
                    "type": "string"
                },
                "name": {
                    "type": "string",
                    "maxLength": 255
                },
                "type": {
                    "type": "string",
                    "enum": [
                        "linux",
                        "windows",
                        "macos"
                    ]
                }
            }
        },
        "internal_api.enrollResponse": {
            "type": "object",
            "properties": {
                "command": {
                    "type": "string"
                },
                "expiresAt": {
                    "type": "string"
                },
                "installUrl": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "internal_api.errorBody": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string"
                }
            }
        },
        "internal_api.loginRequest": {
            "type": "object",
            "required": [
                "email",
                "password"
            ],
            "properties": {
                "email": {
                    "type": "string"
                },
                "password": {
                    "type": "string"
                }
            }
        },
        "internal_api.openVEX": {
            "type": "object",
            "properties": {
                "@context": {
                    "type": "string"
                },
                "@id": {
                    "type": "string"
                },
                "author": {
                    "type": "string"
                },
                "statements": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.openVEXStatement"
                    }
                },
                "timestamp": {
                    "type": "string"
                },
                "version": {
                    "type": "integer"
                }
            }
        },
        "internal_api.openVEXProduct": {
            "type": "object",
            "properties": {
                "@id": {
                    "type": "string"
                }
            }
        },
        "internal_api.openVEXStatement": {
            "type": "object",
            "properties": {
                "action_statement": {
                    "type": "string"
                },
                "impact_statement": {
                    "type": "string"
                },
                "justification": {
                    "type": "string"
                },
                "products": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.openVEXProduct"
                    }
                },
                "status": {
                    "type": "string"
                },
                "timestamp": {
                    "type": "string"
                },
                "vulnerability": {
                    "$ref": "#/definitions/internal_api.openVEXVulnerability"
                }
            }
        },
        "internal_api.openVEXVulnerability": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "internal_api.passwordRequest": {
            "type": "object",
            "required": [
                "currentPassword",
                "newPassword"
            ],
            "properties": {
                "currentPassword": {
                    "type": "string"
                },
                "newPassword": {
                    "type": "string",
                    "minLength": 8
                }
            }
        },
        "internal_api.providerInfo": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                }
            }
        },
        "internal_api.publishedArtifact": {
            "type": "object",
            "properties": {
                "arch": {
                    "type": "string"
                },
                "mirrored": {
                    "type": "boolean"
                },
                "os": {
                    "type": "string"
                },
                "sha256": {
                    "type": "string"
                },
                "size": {
                    "type": "integer"
                }
            }
        },
        "internal_api.publishedResponse": {
            "type": "object",
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "latest": {
                    "type": "string"
                },
                "versions": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.publishedVersion"
                    }
                }
            }
        },
        "internal_api.publishedVersion": {
            "type": "object",
            "properties": {
                "artifacts": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.publishedArtifact"
                    }
                },
                "publishedAt": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "internal_api.registerRequest": {
            "type": "object",
            "required": [
                "token"
            ],
            "properties": {
                "name": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "internal_api.registerResponse": {
            "type": "object",
            "properties": {
                "agentKey": {
                    "type": "string"
                },
                "agentName": {
                    "type": "string"
                },
                "serverUrl": {
                    "type": "string"
                }
            }
        },
        "internal_api.reportRequest": {
            "type": "object",
            "required": [
                "kind"
            ],
            "properties": {
                "aiSummary": {
                    "type": "boolean"
                },
                "kind": {
                    "type": "string",
                    "enum": [
                        "vulnerabilities",
                        "dependencies",
                        "windows-updates"
                    ]
                },
                "name": {
                    "type": "string"
                },
                "query": {
                    "type": "string"
                }
            }
        },
        "internal_api.reportTemplateRequest": {
            "type": "object",
            "required": [
                "kind",
                "name"
            ],
            "properties": {
                "aiSummary": {
                    "type": "boolean"
                },
                "kind": {
                    "type": "string",
                    "enum": [
                        "vulnerabilities",
                        "dependencies",
                        "windows-updates"
                    ]
                },
                "name": {
                    "type": "string",
                    "maxLength": 255
                },
                "query": {
                    "type": "string"
                }
            }
        },
        "internal_api.skippedRow": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string"
                },
                "reason": {
                    "type": "string"
                }
            }
        },
        "internal_api.updateAgentRequest": {
            "type": "object",
            "properties": {
                "clusterName": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "mobile": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "internal_api.updateAllRequest": {
            "type": "object",
            "properties": {
                "version": {
                    "type": "string"
                }
            }
        },
        "internal_api.updateAllResult": {
            "type": "object",
            "properties": {
                "skipped": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/internal_api.skippedRow"
                    }
                },
                "updated": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "internal_api.updateRequest": {
            "type": "object",
            "properties": {
                "version": {
                    "description": "Version is the release to install. Empty cancels a pending update.",
                    "type": "string"
                }
            }
        },
        "internal_api.updateTaskRequest": {
            "type": "object",
            "required": [
                "schedule"
            ],
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "schedule": {
                    "type": "string"
                }
            }
        },
        "internal_api.windowsPolicyRequest": {
            "type": "object",
            "properties": {
                "deadlineDays": {
                    "type": "integer"
                },
                "default": {
                    "type": "boolean"
                },
                "deferralDays": {
                    "type": "integer"
                },
                "install": {
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "restartMode": {
                    "type": "string"
                },
                "windowDays": {
                    "type": "string"
                },
                "windowEnd": {
                    "type": "string"
                },
                "windowStart": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_alerting.ChannelConfig": {
            "type": "object",
            "properties": {
                "appToken": {
                    "type": "string"
                },
                "from": {
                    "type": "string"
                },
                "host": {
                    "description": "mail",
                    "type": "string"
                },
                "password": {
                    "type": "string"
                },
                "port": {
                    "type": "integer"
                },
                "security": {
                    "type": "string"
                },
                "server": {
                    "description": "ntfy",
                    "type": "string"
                },
                "skipVerify": {
                    "type": "boolean"
                },
                "to": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "token": {
                    "type": "string"
                },
                "topic": {
                    "type": "string"
                },
                "url": {
                    "description": "gotify",
                    "type": "string"
                },
                "username": {
                    "type": "string"
                },
                "webhookUrl": {
                    "description": "slack, teams and discord",
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.APIToken": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "lastUsedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "userId": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.AgentRelease": {
            "type": "object",
            "properties": {
                "arch": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "createdBy": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "notes": {
                    "type": "string"
                },
                "os": {
                    "type": "string"
                },
                "sha256": {
                    "type": "string"
                },
                "size": {
                    "type": "integer"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.AlertEvent": {
            "type": "object",
            "properties": {
                "channelId": {
                    "type": "integer"
                },
                "createdAt": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "message": {
                    "type": "string"
                },
                "ruleId": {
                    "type": "integer"
                },
                "status": {
                    "type": "string"
                },
                "title": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.AllowedSoftware": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "note": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.Asset": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "collectedAt": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "image": {
                    "type": "string"
                },
                "imageId": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "lastScanError": {
                    "type": "string"
                },
                "lastScannedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "packageCount": {
                    "type": "integer"
                },
                "sbomFormat": {
                    "type": "string"
                },
                "sbomHash": {
                    "type": "string"
                },
                "sbomSize": {
                    "type": "integer"
                },
                "scanPending": {
                    "type": "boolean"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.AssetPlacement": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "assetId": {
                    "type": "integer"
                },
                "cluster": {
                    "type": "string"
                },
                "collectedAt": {
                    "type": "string"
                },
                "container": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "namespace": {
                    "type": "string"
                },
                "node": {
                    "type": "string"
                },
                "pod": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.CPEMapping": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "product": {
                    "type": "string"
                },
                "source": {
                    "description": "Source is \"manual\" for a mapping a person chose, and \"ai\" for one the\nmodel chose from the dictionary candidates. AI mappings are for review.",
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "vendor": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.ClusterToken": {
            "type": "object",
            "properties": {
                "clusterName": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "createdBy": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "lastUsedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.FIMEvent": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "change": {
                    "type": "string"
                },
                "detectedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "newSha256": {
                    "type": "string"
                },
                "oldSha256": {
                    "type": "string"
                },
                "path": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.Finding": {
            "type": "object",
            "properties": {
                "assetId": {
                    "type": "integer"
                },
                "assetKind": {
                    "type": "string"
                },
                "assetName": {
                    "type": "string"
                },
                "cvss": {
                    "type": "number"
                },
                "dataNamespace": {
                    "type": "string"
                },
                "dataSource": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "epss": {
                    "type": "number"
                },
                "firstSeenAt": {
                    "type": "string"
                },
                "fixState": {
                    "type": "string"
                },
                "fixVersions": {
                    "type": "string"
                },
                "fixable": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "image": {
                    "description": "Image is the image of the asset, as the agent reported it first.",
                    "type": "string"
                },
                "kev": {
                    "description": "KEV and EPSS are copied from ExploitIntel by exploit.Apply. They are not\nset by the scanner, so a finding is not ranked until the copy has run.",
                    "type": "boolean"
                },
                "lastSeenAt": {
                    "type": "string"
                },
                "location": {
                    "type": "string"
                },
                "matcher": {
                    "type": "string"
                },
                "packageId": {
                    "type": "integer"
                },
                "packageName": {
                    "type": "string"
                },
                "packageType": {
                    "type": "string"
                },
                "packageVersion": {
                    "type": "string"
                },
                "severity": {
                    "type": "string"
                },
                "vulnerabilityId": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.FindingDecision": {
            "type": "object",
            "properties": {
                "assetId": {
                    "type": "integer"
                },
                "detail": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "justification": {
                    "type": "string"
                },
                "owner": {
                    "type": "string"
                },
                "packageId": {
                    "type": "integer"
                },
                "status": {
                    "type": "string"
                },
                "ticketUrl": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "updatedBy": {
                    "type": "string"
                },
                "vulnerabilityId": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.Report": {
            "type": "object",
            "properties": {
                "aiModel": {
                    "type": "string"
                },
                "aiSummary": {
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "string"
                },
                "createdBy": {
                    "type": "string"
                },
                "error": {
                    "type": "string"
                },
                "filters": {
                    "type": "string"
                },
                "format": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "kind": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "rowCount": {
                    "type": "integer"
                },
                "size": {
                    "type": "integer"
                },
                "status": {
                    "description": "Status is generating while the PDF is rendered in the background. Rows\nstored before this field existed were complete, hence the default.",
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.ReportTemplate": {
            "type": "object",
            "properties": {
                "aiSummary": {
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "string"
                },
                "createdBy": {
                    "type": "string"
                },
                "filters": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "kind": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.Role": {
            "type": "object",
            "properties": {
                "builtIn": {
                    "type": "boolean"
                },
                "createdAt": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "permissions": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.ScanRun": {
            "type": "object",
            "properties": {
                "assetsFailed": {
                    "type": "integer"
                },
                "assetsScanned": {
                    "type": "integer"
                },
                "assetsTotal": {
                    "type": "integer"
                },
                "error": {
                    "type": "string"
                },
                "findingsTotal": {
                    "type": "integer"
                },
                "finishedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "newFindings": {
                    "type": "integer"
                },
                "startedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "trigger": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.ScheduledTask": {
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "lastDurationMs": {
                    "type": "integer"
                },
                "lastError": {
                    "type": "string"
                },
                "lastRunAt": {
                    "type": "string"
                },
                "lastStatus": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "schedule": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.SoftwareEvent": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "allowed": {
                    "type": "boolean"
                },
                "assetId": {
                    "type": "integer"
                },
                "assetName": {
                    "type": "string"
                },
                "change": {
                    "type": "string"
                },
                "detectedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "oldVersion": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.TaskRun": {
            "type": "object",
            "properties": {
                "done": {
                    "type": "integer"
                },
                "error": {
                    "type": "string"
                },
                "finishedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "kind": {
                    "type": "string"
                },
                "message": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "scanRunId": {
                    "description": "set on scan rows, so the UI can cancel the run",
                    "type": "integer"
                },
                "startedAt": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                },
                "total": {
                    "type": "integer"
                },
                "trigger": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsPolicy": {
            "type": "object",
            "properties": {
                "createdAt": {
                    "type": "string"
                },
                "deadlineDays": {
                    "type": "integer"
                },
                "default": {
                    "type": "boolean"
                },
                "deferralDays": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "install": {
                    "description": "Install is false for a policy that only reports what it would install.",
                    "type": "boolean"
                },
                "name": {
                    "type": "string"
                },
                "restartMode": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                },
                "windowDays": {
                    "description": "WindowDays lists the weekdays of the restart window, such as \"sat,sun\", and\nWindowStart and WindowEnd are its times as HH:MM, in the time zone of the agent.",
                    "type": "string"
                },
                "windowEnd": {
                    "type": "string"
                },
                "windowStart": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_database.WindowsUpdate": {
            "type": "object",
            "properties": {
                "build": {
                    "type": "string"
                },
                "fetchedAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "kb": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "product": {
                    "type": "string"
                },
                "releaseDate": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Candidate": {
            "type": "object",
            "properties": {
                "product": {
                    "type": "string"
                },
                "score": {
                    "type": "number"
                },
                "title": {
                    "type": "string"
                },
                "vendor": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Resolution": {
            "type": "object",
            "properties": {
                "product": {
                    "type": "string"
                },
                "score": {
                    "type": "number"
                },
                "source": {
                    "type": "string"
                },
                "update": {
                    "type": "string"
                },
                "vendor": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_nvdcpe.Status": {
            "type": "object",
            "properties": {
                "entries": {
                    "type": "integer"
                },
                "hasApiKey": {
                    "type": "boolean"
                },
                "importedAt": {
                    "type": "string"
                },
                "importing": {
                    "type": "boolean"
                },
                "lastError": {
                    "type": "string"
                },
                "loadedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMFile": {
            "type": "object",
            "properties": {
                "mode": {
                    "description": "Mode is the permission bits and type of the file, such as \"-rw-r--r--\".",
                    "type": "string"
                },
                "path": {
                    "type": "string"
                },
                "sha256": {
                    "type": "string"
                },
                "size": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMResponse": {
            "type": "object",
            "properties": {
                "added": {
                    "type": "integer"
                },
                "deleted": {
                    "type": "integer"
                },
                "modified": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMSnapshot": {
            "type": "object",
            "properties": {
                "files": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.FIMFile"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.HeartbeatRequest": {
            "type": "object",
            "properties": {
                "arch": {
                    "type": "string"
                },
                "container": {
                    "description": "Container is true when the agent runs in a container. Those are not updated by the agent.",
                    "type": "boolean"
                },
                "distro": {
                    "description": "Distro is the pretty name of the distribution, such as \"Arch Linux\". Empty when unknown.",
                    "type": "string"
                },
                "hostname": {
                    "type": "string"
                },
                "ipAddress": {
                    "type": "string"
                },
                "os": {
                    "type": "string"
                },
                "osBuild": {
                    "description": "OSBuild is the windows build with its revision, such as \"10.0.26100.9445\". It is\nsent with every heartbeat, because updates change it between inventories. Empty\non other systems.",
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.HeartbeatResponse": {
            "type": "object",
            "properties": {
                "serverTime": {
                    "type": "string"
                },
                "targetVersion": {
                    "type": "string"
                },
                "update": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.UpdateInfo"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.InventoryMeta": {
            "type": "object",
            "properties": {
                "cluster": {
                    "type": "string"
                },
                "collectedAt": {
                    "type": "string"
                },
                "container": {
                    "type": "string"
                },
                "image": {
                    "type": "string"
                },
                "imageId": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "namespace": {
                    "type": "string"
                },
                "pod": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.InventoryResponse": {
            "type": "object",
            "properties": {
                "assetKey": {
                    "type": "string"
                },
                "status": {
                    "description": "Status is \"accepted\" when the SBOM was stored and queued for a scan, or\n\"unchanged\" when the identical SBOM was already known.",
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.PlaceResponse": {
            "type": "object",
            "properties": {
                "known": {
                    "type": "boolean"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.RegisterRequest": {
            "type": "object",
            "properties": {
                "agentType": {
                    "type": "string"
                },
                "nodeName": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.RegisterResponse": {
            "type": "object",
            "properties": {
                "agentKey": {
                    "type": "string"
                },
                "agentName": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.SyncRequest": {
            "type": "object",
            "properties": {
                "keys": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.SyncResponse": {
            "type": "object",
            "properties": {
                "removed": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.UpdateInfo": {
            "type": "object",
            "properties": {
                "sha256": {
                    "type": "string"
                },
                "size": {
                    "type": "integer"
                },
                "url": {
                    "description": "URL is a path relative to the server base URL.",
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsPlanResponse": {
            "type": "object",
            "properties": {
                "restartAllowed": {
                    "type": "boolean"
                },
                "updates": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsPlanUpdate"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsPlanUpdate": {
            "type": "object",
            "properties": {
                "build": {
                    "type": "string"
                },
                "kb": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsUpdateFailure": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string"
                },
                "kb": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsUpdateReport": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string"
                },
                "failed": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_protocol.WindowsUpdateFailure"
                    }
                },
                "installed": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
                "rebootPending": {
                    "type": "boolean"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_rbac.Permission": {
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_scheduler.TaskView": {
            "type": "object",
            "properties": {
                "description": {
                    "type": "string"
                },
                "enabled": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "lastDurationMs": {
                    "type": "integer"
                },
                "lastError": {
                    "type": "string"
                },
                "lastRunAt": {
                    "type": "string"
                },
                "lastStatus": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "nextRunAt": {
                    "type": "string"
                },
                "schedule": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.AgentCounts": {
            "type": "object",
            "properties": {
                "offline": {
                    "type": "integer"
                },
                "online": {
                    "type": "integer"
                },
                "total": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.AssetView": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "collectedAt": {
                    "type": "string"
                },
                "createdAt": {
                    "type": "string"
                },
                "id": {
                    "type": "integer"
                },
                "image": {
                    "type": "string"
                },
                "imageId": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "lastScanError": {
                    "type": "string"
                },
                "lastScannedAt": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "packageCount": {
                    "type": "integer"
                },
                "placements": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AssetPlacement"
                    }
                },
                "sbomFormat": {
                    "type": "string"
                },
                "sbomHash": {
                    "type": "string"
                },
                "sbomSize": {
                    "type": "integer"
                },
                "scanPending": {
                    "type": "boolean"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.Count": {
            "type": "object",
            "properties": {
                "count": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.DayCount": {
            "type": "object",
            "properties": {
                "bySeverity": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "day": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.FindingView": {
            "type": "object",
            "properties": {
                "assetId": {
                    "type": "integer"
                },
                "assetKind": {
                    "type": "string"
                },
                "assetName": {
                    "type": "string"
                },
                "cvss": {
                    "type": "number"
                },
                "dataNamespace": {
                    "type": "string"
                },
                "dataSource": {
                    "type": "string"
                },
                "description": {
                    "type": "string"
                },
                "epss": {
                    "type": "number"
                },
                "firstSeenAt": {
                    "type": "string"
                },
                "fixState": {
                    "type": "string"
                },
                "fixVersions": {
                    "type": "string"
                },
                "fixable": {
                    "type": "boolean"
                },
                "id": {
                    "type": "integer"
                },
                "image": {
                    "description": "Image is the image of the asset, as the agent reported it first.",
                    "type": "string"
                },
                "kev": {
                    "description": "KEV and EPSS are copied from ExploitIntel by exploit.Apply. They are not\nset by the scanner, so a finding is not ranked until the copy has run.",
                    "type": "boolean"
                },
                "lastSeenAt": {
                    "type": "string"
                },
                "location": {
                    "type": "string"
                },
                "matcher": {
                    "type": "string"
                },
                "packageId": {
                    "type": "integer"
                },
                "packageName": {
                    "type": "string"
                },
                "packageType": {
                    "type": "string"
                },
                "packageVersion": {
                    "type": "string"
                },
                "placements": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.AssetPlacement"
                    }
                },
                "severity": {
                    "type": "string"
                },
                "vulnerabilityId": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.NamespaceCount": {
            "type": "object",
            "properties": {
                "cluster": {
                    "type": "string"
                },
                "findings": {
                    "type": "integer"
                },
                "namespace": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.PackageCount": {
            "type": "object",
            "properties": {
                "findings": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.PackageView": {
            "type": "object",
            "properties": {
                "assetCount": {
                    "type": "integer"
                },
                "cpe": {
                    "type": "string"
                },
                "findingCount": {
                    "type": "integer"
                },
                "id": {
                    "type": "integer"
                },
                "language": {
                    "type": "string"
                },
                "name": {
                    "type": "string"
                },
                "purl": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                },
                "version": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.Summary": {
            "type": "object",
            "properties": {
                "affectedAssets": {
                    "type": "integer"
                },
                "affectedClusters": {
                    "type": "integer"
                },
                "agents": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.AgentCounts"
                },
                "byCluster": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.Count"
                    }
                },
                "bySeverity": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "containers": {
                    "type": "integer"
                },
                "findings": {
                    "type": "integer"
                },
                "fixable": {
                    "type": "integer"
                },
                "fixableBySeverity": {
                    "type": "object",
                    "additionalProperties": {
                        "type": "integer",
                        "format": "int64"
                    }
                },
                "hosts": {
                    "type": "integer"
                },
                "lastScan": {
                    "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.ScanRun"
                },
                "newPerDay": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.DayCount"
                    }
                },
                "packages": {
                    "type": "integer"
                },
                "topNamespaces": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.NamespaceCount"
                    }
                },
                "topPackages": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.PackageCount"
                    }
                },
                "topVulnerabilities": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_store.VulnerabilityCount"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_store.VulnerabilityCount": {
            "type": "object",
            "properties": {
                "assets": {
                    "type": "integer"
                },
                "cvss": {
                    "type": "number"
                },
                "fixable": {
                    "type": "boolean"
                },
                "occurrences": {
                    "type": "integer"
                },
                "severity": {
                    "type": "string"
                },
                "vulnerabilityId": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_tasks.Overview": {
            "type": "object",
            "properties": {
                "recent": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.TaskRun"
                    }
                },
                "running": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_database.TaskRun"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.ComplianceProblem": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "agentName": {
                    "type": "string"
                },
                "assetId": {
                    "type": "integer"
                },
                "clusterName": {
                    "type": "string"
                },
                "policy": {
                    "type": "string"
                },
                "reasons": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.ComplianceReport": {
            "type": "object",
            "properties": {
                "checkedAt": {
                    "type": "string"
                },
                "compliant": {
                    "type": "integer"
                },
                "compliantPercent": {
                    "type": "number"
                },
                "failing": {
                    "type": "integer"
                },
                "hosts": {
                    "type": "integer"
                },
                "overdue": {
                    "type": "integer"
                },
                "policies": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.PolicyCompliance"
                    }
                },
                "problems": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.ComplianceProblem"
                    }
                },
                "restartPending": {
                    "type": "integer"
                },
                "unknown": {
                    "type": "integer"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.Host": {
            "type": "object",
            "properties": {
                "agentId": {
                    "type": "integer"
                },
                "agentName": {
                    "type": "string"
                },
                "assetId": {
                    "type": "integer"
                },
                "clusterName": {
                    "type": "string"
                },
                "installed": {
                    "type": "string"
                },
                "latest": {
                    "type": "string"
                },
                "latestKb": {
                    "type": "string"
                },
                "missingOptional": {
                    "type": "integer"
                },
                "missingSecurity": {
                    "type": "integer"
                },
                "policyId": {
                    "description": "PolicyID is nil while the host follows the default policy.",
                    "type": "integer"
                },
                "policyName": {
                    "type": "string"
                },
                "product": {
                    "type": "string"
                },
                "rebootPending": {
                    "description": "RebootPending and UpdateError are what the agent reported after its last update run.",
                    "type": "boolean"
                },
                "status": {
                    "type": "string"
                },
                "updateError": {
                    "type": "string"
                },
                "updatedAt": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.PolicyCompliance": {
            "type": "object",
            "properties": {
                "compliant": {
                    "type": "integer"
                },
                "compliantPercent": {
                    "type": "number"
                },
                "hosts": {
                    "type": "integer"
                },
                "name": {
                    "type": "string"
                }
            }
        },
        "jonasled_dev_jonasled_vulnerability-operator_internal_winupdate.UpdateRow": {
            "type": "object",
            "properties": {
                "build": {
                    "type": "string"
                },
                "installed": {
                    "type": "integer"
                },
                "kb": {
                    "type": "string"
                },
                "kind": {
                    "type": "string"
                },
                "needed": {
                    "type": "integer"
                },
                "product": {
                    "type": "string"
                },
                "releaseDate": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        }
    },
    "securityDefinitions": {
        "AgentKey": {
            "description": "Agent key starting with vopa_. Send as \"Bearer \u003ckey\u003e\".",
            "type": "apiKey",
            "name": "Authorization",
            "in": "header"
        },
        "BearerAuth": {
            "description": "Session token from /auth/login, or a personal token starting with vopt_. Send as \"Bearer \u003ctoken\u003e\".",
            "type": "apiKey",
            "name": "Authorization",
            "in": "header"
        }
    }
}