{
    "openapi": "3.1.2",
    "info": {
        "title": "HackIndex Ladon API",
        "version": "1.0.0",
        "description": "Manage watches, projects and channels, search the catalog and read the delivery log of a HackIndex Ladon team. Authentication, scopes, errors and limits: https://ladon.hackindex.io/docs/api"
    },
    "servers": [
        {
            "url": "https://ladon.hackindex.io/api/v1"
        }
    ],
    "security": [
        {
            "http": []
        }
    ],
    "paths": {
        "/rules": {
            "get": {
                "operationId": "v1.rules.index",
                "summary": "Every rule of the team, or of the project named by project",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "query",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `RuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/RuleResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.rules.store",
                "description": "Answers 402 when the plan has no room for another active rule.",
                "summary": "Add a rule",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CveRuleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`RuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RuleResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/rules/{rule}": {
            "get": {
                "operationId": "v1.rules.show",
                "summary": "One rule",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "parameters": [
                    {
                        "name": "rule",
                        "in": "path",
                        "required": true,
                        "description": "The rule public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`RuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RuleResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.rules.update",
                "summary": "Change the name, conditions, channels or whether the rule is paused. Fields you leave out stay as they are",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "parameters": [
                    {
                        "name": "rule",
                        "in": "path",
                        "required": true,
                        "description": "The rule public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/CveRuleRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`RuleResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/RuleResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.rules.destroy",
                "summary": "Remove a rule",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "parameters": [
                    {
                        "name": "rule",
                        "in": "path",
                        "required": true,
                        "description": "The rule public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/rules/{rule}/matches": {
            "get": {
                "operationId": "v1.rules.matches",
                "summary": "The CVEs a rule matched, newest first",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "parameters": [
                    {
                        "name": "rule",
                        "in": "path",
                        "required": true,
                        "description": "The rule public id",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "current_page": {
                                            "type": "integer",
                                            "minimum": 1
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "cve_id": {
                                                        "type": "string"
                                                    },
                                                    "reasons": {
                                                        "type": "array",
                                                        "items": {}
                                                    },
                                                    "matched_at": {
                                                        "type": "string"
                                                    },
                                                    "notified_at": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    }
                                                },
                                                "required": [
                                                    "cve_id",
                                                    "reasons",
                                                    "matched_at",
                                                    "notified_at"
                                                ]
                                            }
                                        },
                                        "first_page_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "from": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "minimum": 1
                                        },
                                        "last_page_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "last_page": {
                                            "type": "integer",
                                            "minimum": 1
                                        },
                                        "links": {
                                            "type": "array",
                                            "description": "Generated paginator links.",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "url": {
                                                        "type": [
                                                            "string",
                                                            "null"
                                                        ]
                                                    },
                                                    "label": {
                                                        "type": "string"
                                                    },
                                                    "active": {
                                                        "type": "boolean"
                                                    }
                                                },
                                                "required": [
                                                    "url",
                                                    "label",
                                                    "active"
                                                ]
                                            }
                                        },
                                        "next_page_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "path": {
                                            "type": [
                                                "string",
                                                "null"
                                            ],
                                            "description": "Base path for paginator generated URLs."
                                        },
                                        "per_page": {
                                            "type": "integer",
                                            "description": "Number of items shown per page.",
                                            "minimum": 0
                                        },
                                        "prev_page_url": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "to": {
                                            "type": [
                                                "integer",
                                                "null"
                                            ],
                                            "description": "Number of the last item in the slice.",
                                            "minimum": 1
                                        },
                                        "total": {
                                            "type": "integer",
                                            "description": "Total number of items being paginated.",
                                            "minimum": 0
                                        }
                                    },
                                    "required": [
                                        "current_page",
                                        "data",
                                        "first_page_url",
                                        "from",
                                        "last_page_url",
                                        "last_page",
                                        "links",
                                        "next_page_url",
                                        "path",
                                        "per_page",
                                        "prev_page_url",
                                        "to",
                                        "total"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/rules/preview": {
            "post": {
                "operationId": "v1.rules.preview",
                "description": "Send the same `conditions` as for a rule. Answers how many CVEs match and the newest five.",
                "summary": "Try conditions on the CVEs of the last 30 days, without saving a rule",
                "tags": [
                    "CVE rules",
                    "Rule"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "allOf": [
                                    {
                                        "$ref": "#/components/schemas/CveMatcher"
                                    },
                                    {
                                        "type": "object",
                                        "properties": {
                                            "conditions": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "days": {
                                            "type": "string"
                                        },
                                        "count": {
                                            "type": "integer",
                                            "const": 0
                                        },
                                        "scanned": {
                                            "type": "integer",
                                            "const": 0
                                        },
                                        "cves": {
                                            "type": "array",
                                            "items": {}
                                        }
                                    },
                                    "required": [
                                        "days",
                                        "count",
                                        "scanned",
                                        "cves"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/cves": {
            "get": {
                "operationId": "v1.cves.index",
                "summary": "Search CVEs, newest first",
                "tags": [
                    "CVEs",
                    "Cve"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Words in the title or description",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 200
                        }
                    },
                    {
                        "name": "severity",
                        "in": "query",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "critical",
                                "high",
                                "medium",
                                "low",
                                "none"
                            ]
                        }
                    },
                    {
                        "name": "kev",
                        "in": "query",
                        "description": "Only CVEs on the CISA KEV list",
                        "schema": {
                            "type": [
                                "boolean",
                                "null"
                            ]
                        }
                    },
                    {
                        "name": "published_after",
                        "in": "query",
                        "description": "Only CVEs published on or after this date",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "format": "date-time"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `CveResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/CveResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/cves/{id}": {
            "get": {
                "operationId": "v1.cves.show",
                "summary": "One CVE by its id, such as CVE-2024-3400",
                "tags": [
                    "CVEs",
                    "Cve"
                ],
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`CveResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/CveResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/endpoints": {
            "get": {
                "operationId": "v1.endpoints.index",
                "summary": "The channels of the team, in every project or in the one named by project",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "project",
                        "in": "query",
                        "description": "Public id of a project, left out lists the channels of every project",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `EndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/EndpointResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.endpoints.store",
                "description": "A generic webhook is verified right away and its signing secret is in the answer, only this once. Chat channels get a test message. Email addresses get a confirmation link first.",
                "summary": "Add a channel",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApiEndpointRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`EndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EndpointResource"
                                        },
                                        "meta": {
                                            "anyOf": [
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "secret": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "verification": {
                                                            "type": "object",
                                                            "properties": {
                                                                "ok": {
                                                                    "type": "string"
                                                                },
                                                                "error": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "status": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ]
                                                                }
                                                            },
                                                            "required": [
                                                                "ok",
                                                                "error",
                                                                "status"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "secret",
                                                        "verification"
                                                    ]
                                                },
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "minItems": 0,
                                                    "maxItems": 0
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/endpoints/{endpoint}": {
            "get": {
                "operationId": "v1.endpoints.show",
                "summary": "One channel",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`EndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EndpointResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.endpoints.update",
                "description": "A new URL for a generic webhook is verified again before alerts go there.",
                "summary": "Change a channel. Only the fields you send change. paused pauses or switches it on",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApiEndpointRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`EndpointResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/EndpointResource"
                                        },
                                        "meta": {
                                            "anyOf": [
                                                {
                                                    "type": "object",
                                                    "properties": {
                                                        "verification": {
                                                            "type": "object",
                                                            "properties": {
                                                                "ok": {
                                                                    "type": "string"
                                                                },
                                                                "error": {
                                                                    "type": [
                                                                        "string",
                                                                        "null"
                                                                    ]
                                                                },
                                                                "status": {
                                                                    "type": [
                                                                        "integer",
                                                                        "null"
                                                                    ]
                                                                }
                                                            },
                                                            "required": [
                                                                "ok",
                                                                "error",
                                                                "status"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "verification"
                                                    ]
                                                },
                                                {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    },
                                                    "minItems": 0,
                                                    "maxItems": 0
                                                }
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.endpoints.destroy",
                "summary": "Remove a channel and its delivery log",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/endpoints/{endpoint}/test": {
            "post": {
                "operationId": "v1.endpoints.test",
                "summary": "Send a test message, at most 5 a minute per channel",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "result": {
                                                    "type": "string",
                                                    "enum": [
                                                        "succeeded",
                                                        "failed",
                                                        "throttled"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "result"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/endpoints/{endpoint}/rotate-secret": {
            "post": {
                "operationId": "v1.endpoints.rotate-secret",
                "summary": "Give a generic webhook a new signing secret. The old one keeps signing for 24 hours",
                "tags": [
                    "Channels",
                    "Endpoint"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "secret": {
                                                    "type": "string"
                                                },
                                                "previous_secret_expires_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "secret",
                                                "previous_secret_expires_at"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/endpoints/{endpoint}/messages": {
            "get": {
                "operationId": "v1.endpoints.messages",
                "summary": "Messages of a channel, newest first. Kept for 7, 30 or 90 days, depending on the plan",
                "tags": [
                    "Deliveries",
                    "Delivery"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/MessageStatus"
                                },
                                {
                                    "type": "null"
                                }
                            ]
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `MessageResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/MessageResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/messages/{message}/attempts": {
            "get": {
                "operationId": "v1.messages.attempts",
                "summary": "Every attempt to deliver one message, oldest first",
                "tags": [
                    "Deliveries",
                    "Delivery"
                ],
                "parameters": [
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "description": "The message public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Array of `AttemptResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/AttemptResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/messages/{message}/retry": {
            "post": {
                "operationId": "v1.messages.retry",
                "summary": "Send a failed or abandoned message again, on the next dispatch within about 10 seconds",
                "tags": [
                    "Deliveries",
                    "Delivery"
                ],
                "parameters": [
                    {
                        "name": "message",
                        "in": "path",
                        "required": true,
                        "description": "The message public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "202": {
                        "description": "`MessageResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/MessageResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/endpoints/{endpoint}/recover": {
            "post": {
                "operationId": "v1.endpoints.recover",
                "summary": "Send everything that failed or was abandoned since a moment again, for example after an outage on your side",
                "tags": [
                    "Deliveries",
                    "Delivery"
                ],
                "parameters": [
                    {
                        "name": "endpoint",
                        "in": "path",
                        "required": true,
                        "description": "The endpoint public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "since": {
                                        "type": "string",
                                        "format": "date-time",
                                        "description": "ISO 8601, at most 30 days ago"
                                    }
                                },
                                "required": [
                                    "since"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "202": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "requeued": {
                                                    "type": "integer"
                                                }
                                            },
                                            "required": [
                                                "requeued"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/site/token": {
            "delete": {
                "operationId": "v1.site.disconnect",
                "tags": [
                    "Disconnect"
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    }
                }
            },
            "post": {
                "operationId": "v1.site.token",
                "tags": [
                    "Token"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "code": {
                                        "type": "string",
                                        "maxLength": 100
                                    },
                                    "code_verifier": {
                                        "type": "string",
                                        "minLength": 43,
                                        "maxLength": 128
                                    }
                                },
                                "required": [
                                    "code",
                                    "code_verifier"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "token": {
                                            "type": "string"
                                        },
                                        "site": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "name": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "url",
                                                "name"
                                            ]
                                        },
                                        "team": {
                                            "type": "object",
                                            "properties": {
                                                "slug": {
                                                    "type": "string"
                                                },
                                                "plan": {
                                                    "type": "string"
                                                }
                                            },
                                            "required": [
                                                "slug",
                                                "plan"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "token",
                                        "site",
                                        "team"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/events": {
            "get": {
                "operationId": "v1.events.index",
                "description": "Each event has the same shape as a webhook. Part of the Business plan.",
                "summary": "Events that matched the watches of the team, oldest first. Poll with after set to the last id you saw",
                "tags": [
                    "Events",
                    "Event"
                ],
                "parameters": [
                    {
                        "name": "after",
                        "in": "query",
                        "description": "The id of the last event you processed, like evt_01JB\u2026",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 40
                        }
                    },
                    {
                        "name": "limit",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "project",
                        "in": "query",
                        "description": "Public id of a project, left out lists the events of every project",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "type": "object",
                                                "properties": {
                                                    "id": {
                                                        "type": "string"
                                                    },
                                                    "type": {
                                                        "type": "string"
                                                    },
                                                    "created_at": {
                                                        "type": "string"
                                                    },
                                                    "data": {
                                                        "type": "object",
                                                        "properties": {
                                                            "match": {
                                                                "type": "object",
                                                                "properties": {
                                                                    "watch_id": {
                                                                        "type": "string"
                                                                    },
                                                                    "version_constraint": {
                                                                        "type": [
                                                                            "string",
                                                                            "null"
                                                                        ]
                                                                    },
                                                                    "sites": {
                                                                        "type": "array",
                                                                        "items": {
                                                                            "type": "string"
                                                                        },
                                                                        "minItems": 0,
                                                                        "maxItems": 0
                                                                    }
                                                                },
                                                                "required": [
                                                                    "watch_id",
                                                                    "version_constraint",
                                                                    "sites"
                                                                ]
                                                            }
                                                        },
                                                        "required": [
                                                            "match"
                                                        ],
                                                        "additionalProperties": {}
                                                    }
                                                },
                                                "required": [
                                                    "id",
                                                    "type",
                                                    "created_at",
                                                    "data"
                                                ]
                                            }
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "next_cursor": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "has_more": {
                                                    "type": "boolean"
                                                }
                                            },
                                            "required": [
                                                "next_cursor",
                                                "has_more"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/site/inventory": {
            "post": {
                "operationId": "v1.site.inventory",
                "tags": [
                    "Inventory"
                ],
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/SiteInventoryRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "accepted": {
                                            "type": "boolean"
                                        },
                                        "changed": {
                                            "type": "boolean"
                                        },
                                        "inventory_hash": {
                                            "type": "string"
                                        },
                                        "next_heartbeat_after": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "accepted",
                                        "changed",
                                        "inventory_hash",
                                        "next_heartbeat_after"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/me": {
            "get": {
                "operationId": "v1.me",
                "summary": "The token, its team, plan and limits",
                "tags": [
                    "Meta",
                    "Me"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "token": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "scopes": {
                                                            "type": "array",
                                                            "items": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "expires_at": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name",
                                                        "scopes",
                                                        "expires_at"
                                                    ]
                                                },
                                                "team": {
                                                    "type": "object",
                                                    "properties": {
                                                        "id": {
                                                            "type": "string"
                                                        },
                                                        "name": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "id",
                                                        "name"
                                                    ]
                                                },
                                                "plan": {
                                                    "type": "object",
                                                    "properties": {
                                                        "tier": {
                                                            "type": "string"
                                                        },
                                                        "limits": {
                                                            "type": "object",
                                                            "properties": {
                                                                "watches": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "used": {
                                                                            "type": "integer"
                                                                        },
                                                                        "limit": {
                                                                            "type": "integer"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "used",
                                                                        "limit"
                                                                    ]
                                                                },
                                                                "channels": {
                                                                    "type": "object",
                                                                    "properties": {
                                                                        "used": {
                                                                            "type": "integer",
                                                                            "minimum": 0
                                                                        },
                                                                        "limit": {
                                                                            "type": "integer"
                                                                        }
                                                                    },
                                                                    "required": [
                                                                        "used",
                                                                        "limit"
                                                                    ]
                                                                },
                                                                "requests_per_minute": {
                                                                    "type": "integer"
                                                                }
                                                            },
                                                            "required": [
                                                                "watches",
                                                                "channels",
                                                                "requests_per_minute"
                                                            ]
                                                        },
                                                        "features": {
                                                            "type": "object",
                                                            "properties": {
                                                                "integrations": {
                                                                    "type": "boolean"
                                                                },
                                                                "email": {
                                                                    "type": "boolean"
                                                                },
                                                                "advanced_delivery": {
                                                                    "type": "boolean"
                                                                },
                                                                "api_write": {
                                                                    "type": "boolean"
                                                                },
                                                                "api_events": {
                                                                    "type": "boolean"
                                                                }
                                                            },
                                                            "required": [
                                                                "integrations",
                                                                "email",
                                                                "advanced_delivery",
                                                                "api_write",
                                                                "api_events"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "tier",
                                                        "limits",
                                                        "features"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "token",
                                                "team",
                                                "plan"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/projects": {
            "get": {
                "operationId": "v1.projects.index",
                "summary": "Every project of the team",
                "tags": [
                    "Project"
                ],
                "responses": {
                    "200": {
                        "description": "Array of `ProjectResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/ProjectResource"
                                            }
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            },
            "post": {
                "operationId": "v1.projects.store",
                "description": "Send the lockfile as a multipart upload in `lockfile`, or as text in `content` with its name in `filename`. Answers 402 when the plan has no room for another project.",
                "summary": "Add a project from its lockfile",
                "tags": [
                    "Project"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ProjectRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects/{project}": {
            "get": {
                "operationId": "v1.projects.show",
                "summary": "One project with its report: every known vulnerability in the installed versions, like npm audit",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.projects.update",
                "summary": "Change the name, tags or whether dev dependencies raise alerts",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ProjectRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.projects.destroy",
                "summary": "Remove a project. Its watches go too, watches the team made itself stay",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/projects/{project}/lockfile": {
            "post": {
                "operationId": "v1.projects.lockfile",
                "description": "A POST, because PHP and many proxies only read multipart uploads from a POST. Sending the same lockfile again changes nothing. When the new lockfile adds versions with known vulnerabilities, channels that listen to `project.vulnerable` hear about it.",
                "summary": "Send a new lockfile, for example from CI after `npm ci` or `composer install`",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "multipart/form-data": {
                            "schema": {
                                "$ref": "#/components/schemas/ProjectRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects/{project}/software": {
            "post": {
                "operationId": "v1.projects.software.store",
                "description": "Name it by `software.type` and `software.slug`. Leave out `events` for the defaults, and `version_constraint` to watch every version. Answers 402 when the plan is full.",
                "summary": "Add software to the project by hand, such as a WordPress plugin, theme or core, next to what its lockfile installs",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApiProjectSoftwareRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/projects/{project}/software/{type}/{slug}": {
            "delete": {
                "operationId": "v1.projects.software.destroy",
                "summary": "Remove software the team added by hand. Packages from the lockfile stay",
                "tags": [
                    "Project"
                ],
                "parameters": [
                    {
                        "name": "project",
                        "in": "path",
                        "required": true,
                        "description": "The project public id",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "object",
                                            "properties": {
                                                "summary": {
                                                    "type": "object",
                                                    "properties": {
                                                        "packages": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "direct": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "dev": {
                                                            "type": "integer",
                                                            "minimum": 0
                                                        },
                                                        "vulnerable_packages": {
                                                            "type": "integer"
                                                        },
                                                        "by_severity": {
                                                            "type": "object",
                                                            "properties": {
                                                                "critical": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "high": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "medium": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                },
                                                                "low": {
                                                                    "type": "integer",
                                                                    "const": 0
                                                                }
                                                            },
                                                            "required": [
                                                                "critical",
                                                                "high",
                                                                "medium",
                                                                "low"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "packages",
                                                        "direct",
                                                        "dev",
                                                        "vulnerable_packages",
                                                        "by_severity"
                                                    ]
                                                },
                                                "findings": {
                                                    "type": "array",
                                                    "items": {}
                                                },
                                                "attribution": {
                                                    "type": "array",
                                                    "prefixItems": [
                                                        {
                                                            "type": "array",
                                                            "items": {}
                                                        },
                                                        {
                                                            "anyOf": [
                                                                {
                                                                    "type": "array",
                                                                    "prefixItems": [
                                                                        {
                                                                            "type": "object",
                                                                            "properties": {
                                                                                "notice": {
                                                                                    "type": "string",
                                                                                    "const": "OpenSSF Malicious Packages, Apache 2.0"
                                                                                },
                                                                                "license": {
                                                                                    "type": "string",
                                                                                    "const": "Data from the OpenSSF Malicious Packages project (https://github.com/ossf/malicious-packages), licensed under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0)."
                                                                                }
                                                                            },
                                                                            "required": [
                                                                                "notice",
                                                                                "license"
                                                                            ]
                                                                        }
                                                                    ],
                                                                    "minItems": 1,
                                                                    "maxItems": 1
                                                                },
                                                                {
                                                                    "type": "array",
                                                                    "items": {
                                                                        "type": "string"
                                                                    },
                                                                    "minItems": 0,
                                                                    "maxItems": 0
                                                                }
                                                            ]
                                                        }
                                                    ],
                                                    "minItems": 2,
                                                    "maxItems": 2
                                                }
                                            },
                                            "required": [
                                                "summary",
                                                "findings",
                                                "attribution"
                                            ],
                                            "additionalProperties": {}
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        },
        "/software/{type}/{slug}/vulnerabilities": {
            "get": {
                "operationId": "v1.software.vulnerabilities",
                "summary": "Known vulnerabilities of the software, newest first. Withdrawn ones are included with withdrawn_at",
                "tags": [
                    "Software"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `VulnerabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/VulnerabilityResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/software": {
            "get": {
                "operationId": "v1.software.index",
                "summary": "Search the catalog. Narrow it with type: plugin, theme, core, npm, composer, pypi, gem, cargo or github",
                "tags": [
                    "Software"
                ],
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "Name or slug, at least 2 characters",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ],
                            "maxLength": 100
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "schema": {
                            "anyOf": [
                                {
                                    "$ref": "#/components/schemas/SoftwareType"
                                },
                                {
                                    "type": "null"
                                }
                            ]
                        }
                    },
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `SoftwareResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/SoftwareResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/software/{type}/{slug}": {
            "get": {
                "operationId": "v1.software.show",
                "description": "A premium plugin or theme that a team added by its slug only answers for teams that watch it, until WordPress.org or a vulnerability feed knows it.",
                "summary": "One piece of software by type and slug. Package and repository names keep their slash, such as vendor/package or owner/repo",
                "tags": [
                    "Software"
                ],
                "parameters": [
                    {
                        "name": "type",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "slug",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`SoftwareResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/SoftwareResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/site": {
            "get": {
                "operationId": "v1.site.status",
                "tags": [
                    "Status"
                ],
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "site": {
                                            "type": "object",
                                            "properties": {
                                                "id": {
                                                    "type": "string"
                                                },
                                                "url": {
                                                    "type": "string"
                                                },
                                                "status": {
                                                    "type": "string",
                                                    "enum": [
                                                        "vulnerable",
                                                        "ok"
                                                    ]
                                                },
                                                "last_seen_at": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "vulnerable_count": {
                                                    "type": "string"
                                                },
                                                "components": {
                                                    "type": "object",
                                                    "properties": {
                                                        "plugins": {
                                                            "type": "string"
                                                        },
                                                        "themes": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "required": [
                                                        "plugins",
                                                        "themes"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "id",
                                                "url",
                                                "status",
                                                "last_seen_at",
                                                "vulnerable_count",
                                                "components"
                                            ]
                                        },
                                        "team": {
                                            "type": "object",
                                            "properties": {
                                                "slug": {
                                                    "type": "string"
                                                },
                                                "plan": {
                                                    "type": "string"
                                                },
                                                "limits": {
                                                    "type": "object",
                                                    "properties": {
                                                        "sites": {
                                                            "type": "object",
                                                            "properties": {
                                                                "used": {
                                                                    "type": "integer",
                                                                    "minimum": 0
                                                                },
                                                                "limit": {
                                                                    "type": "string"
                                                                }
                                                            },
                                                            "required": [
                                                                "used",
                                                                "limit"
                                                            ]
                                                        }
                                                    },
                                                    "required": [
                                                        "sites"
                                                    ]
                                                },
                                                "upgrade": {
                                                    "type": [
                                                        "object",
                                                        "null"
                                                    ],
                                                    "properties": {
                                                        "plan": {
                                                            "type": [
                                                                "string",
                                                                "null"
                                                            ]
                                                        },
                                                        "url": {
                                                            "type": "string"
                                                        },
                                                        "perks": {
                                                            "type": "array",
                                                            "items": {
                                                                "anyOf": [
                                                                    {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "key": {
                                                                                "type": "string"
                                                                            },
                                                                            "value": {
                                                                                "type": "integer"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "key",
                                                                            "value"
                                                                        ]
                                                                    },
                                                                    {
                                                                        "type": "object",
                                                                        "properties": {
                                                                            "key": {
                                                                                "type": "string"
                                                                            },
                                                                            "value": {
                                                                                "type": "null"
                                                                            }
                                                                        },
                                                                        "required": [
                                                                            "key",
                                                                            "value"
                                                                        ]
                                                                    }
                                                                ]
                                                            }
                                                        }
                                                    },
                                                    "required": [
                                                        "plan",
                                                        "url",
                                                        "perks"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "slug",
                                                "plan",
                                                "limits",
                                                "upgrade"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "site",
                                        "team"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/vulnerabilities/{uuid}": {
            "get": {
                "operationId": "v1.vulnerabilities.show",
                "summary": "One vulnerability with every piece of software it affects",
                "tags": [
                    "Vulnerabilities",
                    "Vulnerability"
                ],
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`VulnerabilityResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/VulnerabilityResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/watches": {
            "get": {
                "operationId": "v1.watches.index",
                "summary": "The software the team watches, in every project or in the one named by project",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "parameters": [
                    {
                        "name": "per_page",
                        "in": "query",
                        "schema": {
                            "type": [
                                "integer",
                                "null"
                            ],
                            "minimum": 1,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "project",
                        "in": "query",
                        "description": "Public id of a project, left out lists the watches of every project",
                        "schema": {
                            "type": [
                                "string",
                                "null"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Paginated set of `WatchResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "$ref": "#/components/schemas/WatchResource"
                                            }
                                        },
                                        "links": {
                                            "type": "object",
                                            "properties": {
                                                "first": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "last": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "prev": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                },
                                                "next": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ]
                                                }
                                            },
                                            "required": [
                                                "first",
                                                "last",
                                                "prev",
                                                "next"
                                            ]
                                        },
                                        "meta": {
                                            "type": "object",
                                            "properties": {
                                                "current_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "from": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "minimum": 1
                                                },
                                                "last_page": {
                                                    "type": "integer",
                                                    "minimum": 1
                                                },
                                                "links": {
                                                    "type": "array",
                                                    "description": "Generated paginator links.",
                                                    "items": {
                                                        "type": "object",
                                                        "properties": {
                                                            "url": {
                                                                "type": [
                                                                    "string",
                                                                    "null"
                                                                ]
                                                            },
                                                            "label": {
                                                                "type": "string"
                                                            },
                                                            "active": {
                                                                "type": "boolean"
                                                            }
                                                        },
                                                        "required": [
                                                            "url",
                                                            "label",
                                                            "active"
                                                        ]
                                                    }
                                                },
                                                "path": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Base path for paginator generated URLs."
                                                },
                                                "per_page": {
                                                    "type": "integer",
                                                    "description": "Number of items shown per page.",
                                                    "minimum": 0
                                                },
                                                "to": {
                                                    "type": [
                                                        "integer",
                                                        "null"
                                                    ],
                                                    "description": "Number of the last item in the slice.",
                                                    "minimum": 1
                                                },
                                                "total": {
                                                    "type": "integer",
                                                    "description": "Total number of items being paginated.",
                                                    "minimum": 0
                                                }
                                            },
                                            "required": [
                                                "current_page",
                                                "from",
                                                "last_page",
                                                "links",
                                                "path",
                                                "per_page",
                                                "to",
                                                "total"
                                            ]
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "links",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "post": {
                "operationId": "v1.watches.store",
                "description": "A premium plugin or theme that is not in the catalog yet is added by its slug and stays private until WordPress.org or a vulnerability feed knows it. Leave out events to get the defaults. Leave out project to use the team's default project. Answers 409 when the project already watches it and 402 when the plan is full.",
                "summary": "Start watching software",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApiWatchRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "201": {
                        "description": "`WatchResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WatchResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "put": {
                "operationId": "v1.watches.sync",
                "description": "Leave out project to use the team's default project. Software that is not in the list stops being watched in that project. Premium plugins and themes that are not in the catalog yet are added by their slug, like POST does. Sending the same list twice changes nothing, which suits CI or a WP-CLI export. To watch every package of a lockfile, send it as a project.",
                "summary": "Replace all watches of a project with the list you send",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "type": "object",
                                "properties": {
                                    "project": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "description": "Public id of the project to sync, left out means the team's default project"
                                    },
                                    "watches": {
                                        "type": "array",
                                        "items": {
                                            "type": "object",
                                            "properties": {
                                                "software": {
                                                    "type": "object",
                                                    "properties": {
                                                        "type": {
                                                            "$ref": "#/components/schemas/SoftwareType"
                                                        },
                                                        "slug": {
                                                            "type": "string",
                                                            "maxLength": 214
                                                        }
                                                    },
                                                    "required": [
                                                        "type",
                                                        "slug"
                                                    ]
                                                },
                                                "version_constraint": {
                                                    "type": [
                                                        "string",
                                                        "null"
                                                    ],
                                                    "description": "Empty or left out means every version. Packages and repositories take the range syntax of their ecosystem, such as ^1.2 for npm or ~> 7.1 for gem",
                                                    "maxLength": 255
                                                },
                                                "events": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/VulnEventType"
                                                    },
                                                    "minItems": 1
                                                },
                                                "include_informational": {
                                                    "type": "boolean"
                                                },
                                                "tags": {
                                                    "type": [
                                                        "array",
                                                        "null"
                                                    ],
                                                    "description": "Left out keeps the tags a watch already has, an empty list removes them",
                                                    "items": {
                                                        "type": "string",
                                                        "pattern": "^[a-z0-9][a-z0-9._-]*$",
                                                        "maxLength": 32
                                                    },
                                                    "maxItems": 10
                                                }
                                            },
                                            "required": [
                                                "software"
                                            ]
                                        },
                                        "maxItems": 2000
                                    }
                                },
                                "required": [
                                    "watches"
                                ]
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "type": "array",
                                            "items": {}
                                        },
                                        "meta": {
                                            "type": "string"
                                        }
                                    },
                                    "required": [
                                        "data",
                                        "meta"
                                    ]
                                }
                            }
                        }
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            }
        },
        "/watches/{watch}": {
            "get": {
                "operationId": "v1.watches.show",
                "summary": "One watch",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "parameters": [
                    {
                        "name": "watch",
                        "in": "path",
                        "required": true,
                        "description": "The watch public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "`WatchResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WatchResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            },
            "patch": {
                "operationId": "v1.watches.update",
                "summary": "Change a watch. Only the fields you send change. paused pauses or resumes it",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "parameters": [
                    {
                        "name": "watch",
                        "in": "path",
                        "required": true,
                        "description": "The watch public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ApiWatchRequest"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "`WatchResource`",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "data": {
                                            "$ref": "#/components/schemas/WatchResource"
                                        }
                                    },
                                    "required": [
                                        "data"
                                    ]
                                }
                            }
                        }
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    },
                    "422": {
                        "$ref": "#/components/responses/ValidationException"
                    }
                }
            },
            "delete": {
                "operationId": "v1.watches.destroy",
                "summary": "Stop watching",
                "tags": [
                    "Watches",
                    "Watch"
                ],
                "parameters": [
                    {
                        "name": "watch",
                        "in": "path",
                        "required": true,
                        "description": "The watch public id",
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "204": {
                        "description": "No content"
                    },
                    "404": {
                        "$ref": "#/components/responses/ModelNotFoundException"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "http": {
                "type": "http",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "ApiEndpointRequest": {
                "type": "object",
                "description": "The channel rules of the app. A PATCH only changes the fields it sends.",
                "properties": {
                    "type": {
                        "$ref": "#/components/schemas/EndpointType"
                    },
                    "name": {
                        "type": "string",
                        "maxLength": 80
                    },
                    "url": {
                        "type": "string"
                    },
                    "forum": {
                        "type": "string"
                    },
                    "recipients": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "email",
                            "maxLength": 254
                        },
                        "uniqueItems": true
                    },
                    "events": {
                        "type": "array",
                        "description": "Left out means the default alerts",
                        "items": {
                            "$ref": "#/components/schemas/VulnEventType"
                        },
                        "minItems": 1
                    },
                    "delivery_mode": {
                        "description": "Left out means direct",
                        "$ref": "#/components/schemas/DeliveryMode"
                    },
                    "batch_window_minutes": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "enum": [
                            "5",
                            "15",
                            "60",
                            null
                        ]
                    },
                    "digest_frequency": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "hourly",
                            "daily",
                            "weekly",
                            null
                        ]
                    },
                    "digest_time": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "digest_weekday": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1,
                        "maximum": 7
                    },
                    "digest_timezone": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "Africa/Abidjan",
                            "Africa/Accra",
                            "Africa/Addis_Ababa",
                            "Africa/Algiers",
                            "Africa/Asmara",
                            "Africa/Bamako",
                            "Africa/Bangui",
                            "Africa/Banjul",
                            "Africa/Bissau",
                            "Africa/Blantyre",
                            "Africa/Brazzaville",
                            "Africa/Bujumbura",
                            "Africa/Cairo",
                            "Africa/Casablanca",
                            "Africa/Ceuta",
                            "Africa/Conakry",
                            "Africa/Dakar",
                            "Africa/Dar_es_Salaam",
                            "Africa/Djibouti",
                            "Africa/Douala",
                            "Africa/El_Aaiun",
                            "Africa/Freetown",
                            "Africa/Gaborone",
                            "Africa/Harare",
                            "Africa/Johannesburg",
                            "Africa/Juba",
                            "Africa/Kampala",
                            "Africa/Khartoum",
                            "Africa/Kigali",
                            "Africa/Kinshasa",
                            "Africa/Lagos",
                            "Africa/Libreville",
                            "Africa/Lome",
                            "Africa/Luanda",
                            "Africa/Lubumbashi",
                            "Africa/Lusaka",
                            "Africa/Malabo",
                            "Africa/Maputo",
                            "Africa/Maseru",
                            "Africa/Mbabane",
                            "Africa/Mogadishu",
                            "Africa/Monrovia",
                            "Africa/Nairobi",
                            "Africa/Ndjamena",
                            "Africa/Niamey",
                            "Africa/Nouakchott",
                            "Africa/Ouagadougou",
                            "Africa/Porto-Novo",
                            "Africa/Sao_Tome",
                            "Africa/Tripoli",
                            "Africa/Tunis",
                            "Africa/Windhoek",
                            "America/Adak",
                            "America/Anchorage",
                            "America/Anguilla",
                            "America/Antigua",
                            "America/Araguaina",
                            "America/Argentina/Buenos_Aires",
                            "America/Argentina/Catamarca",
                            "America/Argentina/Cordoba",
                            "America/Argentina/Jujuy",
                            "America/Argentina/La_Rioja",
                            "America/Argentina/Mendoza",
                            "America/Argentina/Rio_Gallegos",
                            "America/Argentina/Salta",
                            "America/Argentina/San_Juan",
                            "America/Argentina/San_Luis",
                            "America/Argentina/Tucuman",
                            "America/Argentina/Ushuaia",
                            "America/Aruba",
                            "America/Asuncion",
                            "America/Atikokan",
                            "America/Bahia",
                            "America/Bahia_Banderas",
                            "America/Barbados",
                            "America/Belem",
                            "America/Belize",
                            "America/Blanc-Sablon",
                            "America/Boa_Vista",
                            "America/Bogota",
                            "America/Boise",
                            "America/Cambridge_Bay",
                            "America/Campo_Grande",
                            "America/Cancun",
                            "America/Caracas",
                            "America/Cayenne",
                            "America/Cayman",
                            "America/Chicago",
                            "America/Chihuahua",
                            "America/Ciudad_Juarez",
                            "America/Costa_Rica",
                            "America/Coyhaique",
                            "America/Creston",
                            "America/Cuiaba",
                            "America/Curacao",
                            "America/Danmarkshavn",
                            "America/Dawson",
                            "America/Dawson_Creek",
                            "America/Denver",
                            "America/Detroit",
                            "America/Dominica",
                            "America/Edmonton",
                            "America/Eirunepe",
                            "America/El_Salvador",
                            "America/Fort_Nelson",
                            "America/Fortaleza",
                            "America/Glace_Bay",
                            "America/Goose_Bay",
                            "America/Grand_Turk",
                            "America/Grenada",
                            "America/Guadeloupe",
                            "America/Guatemala",
                            "America/Guayaquil",
                            "America/Guyana",
                            "America/Halifax",
                            "America/Havana",
                            "America/Hermosillo",
                            "America/Indiana/Indianapolis",
                            "America/Indiana/Knox",
                            "America/Indiana/Marengo",
                            "America/Indiana/Petersburg",
                            "America/Indiana/Tell_City",
                            "America/Indiana/Vevay",
                            "America/Indiana/Vincennes",
                            "America/Indiana/Winamac",
                            "America/Inuvik",
                            "America/Iqaluit",
                            "America/Jamaica",
                            "America/Juneau",
                            "America/Kentucky/Louisville",
                            "America/Kentucky/Monticello",
                            "America/Kralendijk",
                            "America/La_Paz",
                            "America/Lima",
                            "America/Los_Angeles",
                            "America/Lower_Princes",
                            "America/Maceio",
                            "America/Managua",
                            "America/Manaus",
                            "America/Marigot",
                            "America/Martinique",
                            "America/Matamoros",
                            "America/Mazatlan",
                            "America/Menominee",
                            "America/Merida",
                            "America/Metlakatla",
                            "America/Mexico_City",
                            "America/Miquelon",
                            "America/Moncton",
                            "America/Monterrey",
                            "America/Montevideo",
                            "America/Montserrat",
                            "America/Nassau",
                            "America/New_York",
                            "America/Nome",
                            "America/Noronha",
                            "America/North_Dakota/Beulah",
                            "America/North_Dakota/Center",
                            "America/North_Dakota/New_Salem",
                            "America/Nuuk",
                            "America/Ojinaga",
                            "America/Panama",
                            "America/Paramaribo",
                            "America/Phoenix",
                            "America/Port-au-Prince",
                            "America/Port_of_Spain",
                            "America/Porto_Velho",
                            "America/Puerto_Rico",
                            "America/Punta_Arenas",
                            "America/Rankin_Inlet",
                            "America/Recife",
                            "America/Regina",
                            "America/Resolute",
                            "America/Rio_Branco",
                            "America/Santarem",
                            "America/Santiago",
                            "America/Santo_Domingo",
                            "America/Sao_Paulo",
                            "America/Scoresbysund",
                            "America/Sitka",
                            "America/St_Barthelemy",
                            "America/St_Johns",
                            "America/St_Kitts",
                            "America/St_Lucia",
                            "America/St_Thomas",
                            "America/St_Vincent",
                            "America/Swift_Current",
                            "America/Tegucigalpa",
                            "America/Thule",
                            "America/Tijuana",
                            "America/Toronto",
                            "America/Tortola",
                            "America/Vancouver",
                            "America/Whitehorse",
                            "America/Winnipeg",
                            "America/Yakutat",
                            "Antarctica/Casey",
                            "Antarctica/Davis",
                            "Antarctica/DumontDUrville",
                            "Antarctica/Macquarie",
                            "Antarctica/Mawson",
                            "Antarctica/McMurdo",
                            "Antarctica/Palmer",
                            "Antarctica/Rothera",
                            "Antarctica/Syowa",
                            "Antarctica/Troll",
                            "Antarctica/Vostok",
                            "Arctic/Longyearbyen",
                            "Asia/Aden",
                            "Asia/Almaty",
                            "Asia/Amman",
                            "Asia/Anadyr",
                            "Asia/Aqtau",
                            "Asia/Aqtobe",
                            "Asia/Ashgabat",
                            "Asia/Atyrau",
                            "Asia/Baghdad",
                            "Asia/Bahrain",
                            "Asia/Baku",
                            "Asia/Bangkok",
                            "Asia/Barnaul",
                            "Asia/Beirut",
                            "Asia/Bishkek",
                            "Asia/Brunei",
                            "Asia/Chita",
                            "Asia/Colombo",
                            "Asia/Damascus",
                            "Asia/Dhaka",
                            "Asia/Dili",
                            "Asia/Dubai",
                            "Asia/Dushanbe",
                            "Asia/Famagusta",
                            "Asia/Gaza",
                            "Asia/Hebron",
                            "Asia/Ho_Chi_Minh",
                            "Asia/Hong_Kong",
                            "Asia/Hovd",
                            "Asia/Irkutsk",
                            "Asia/Jakarta",
                            "Asia/Jayapura",
                            "Asia/Jerusalem",
                            "Asia/Kabul",
                            "Asia/Kamchatka",
                            "Asia/Karachi",
                            "Asia/Kathmandu",
                            "Asia/Khandyga",
                            "Asia/Kolkata",
                            "Asia/Krasnoyarsk",
                            "Asia/Kuala_Lumpur",
                            "Asia/Kuching",
                            "Asia/Kuwait",
                            "Asia/Macau",
                            "Asia/Magadan",
                            "Asia/Makassar",
                            "Asia/Manila",
                            "Asia/Muscat",
                            "Asia/Nicosia",
                            "Asia/Novokuznetsk",
                            "Asia/Novosibirsk",
                            "Asia/Omsk",
                            "Asia/Oral",
                            "Asia/Phnom_Penh",
                            "Asia/Pontianak",
                            "Asia/Pyongyang",
                            "Asia/Qatar",
                            "Asia/Qostanay",
                            "Asia/Qyzylorda",
                            "Asia/Riyadh",
                            "Asia/Sakhalin",
                            "Asia/Samarkand",
                            "Asia/Seoul",
                            "Asia/Shanghai",
                            "Asia/Singapore",
                            "Asia/Srednekolymsk",
                            "Asia/Taipei",
                            "Asia/Tashkent",
                            "Asia/Tbilisi",
                            "Asia/Tehran",
                            "Asia/Thimphu",
                            "Asia/Tokyo",
                            "Asia/Tomsk",
                            "Asia/Ulaanbaatar",
                            "Asia/Urumqi",
                            "Asia/Ust-Nera",
                            "Asia/Vientiane",
                            "Asia/Vladivostok",
                            "Asia/Yakutsk",
                            "Asia/Yangon",
                            "Asia/Yekaterinburg",
                            "Asia/Yerevan",
                            "Atlantic/Azores",
                            "Atlantic/Bermuda",
                            "Atlantic/Canary",
                            "Atlantic/Cape_Verde",
                            "Atlantic/Faroe",
                            "Atlantic/Madeira",
                            "Atlantic/Reykjavik",
                            "Atlantic/South_Georgia",
                            "Atlantic/St_Helena",
                            "Atlantic/Stanley",
                            "Australia/Adelaide",
                            "Australia/Brisbane",
                            "Australia/Broken_Hill",
                            "Australia/Darwin",
                            "Australia/Eucla",
                            "Australia/Hobart",
                            "Australia/Lindeman",
                            "Australia/Lord_Howe",
                            "Australia/Melbourne",
                            "Australia/Perth",
                            "Australia/Sydney",
                            "Europe/Amsterdam",
                            "Europe/Andorra",
                            "Europe/Astrakhan",
                            "Europe/Athens",
                            "Europe/Belgrade",
                            "Europe/Berlin",
                            "Europe/Bratislava",
                            "Europe/Brussels",
                            "Europe/Bucharest",
                            "Europe/Budapest",
                            "Europe/Busingen",
                            "Europe/Chisinau",
                            "Europe/Copenhagen",
                            "Europe/Dublin",
                            "Europe/Gibraltar",
                            "Europe/Guernsey",
                            "Europe/Helsinki",
                            "Europe/Isle_of_Man",
                            "Europe/Istanbul",
                            "Europe/Jersey",
                            "Europe/Kaliningrad",
                            "Europe/Kirov",
                            "Europe/Kyiv",
                            "Europe/Lisbon",
                            "Europe/Ljubljana",
                            "Europe/London",
                            "Europe/Luxembourg",
                            "Europe/Madrid",
                            "Europe/Malta",
                            "Europe/Mariehamn",
                            "Europe/Minsk",
                            "Europe/Monaco",
                            "Europe/Moscow",
                            "Europe/Oslo",
                            "Europe/Paris",
                            "Europe/Podgorica",
                            "Europe/Prague",
                            "Europe/Riga",
                            "Europe/Rome",
                            "Europe/Samara",
                            "Europe/San_Marino",
                            "Europe/Sarajevo",
                            "Europe/Saratov",
                            "Europe/Simferopol",
                            "Europe/Skopje",
                            "Europe/Sofia",
                            "Europe/Stockholm",
                            "Europe/Tallinn",
                            "Europe/Tirane",
                            "Europe/Ulyanovsk",
                            "Europe/Vaduz",
                            "Europe/Vatican",
                            "Europe/Vienna",
                            "Europe/Vilnius",
                            "Europe/Volgograd",
                            "Europe/Warsaw",
                            "Europe/Zagreb",
                            "Europe/Zurich",
                            "Indian/Antananarivo",
                            "Indian/Chagos",
                            "Indian/Christmas",
                            "Indian/Cocos",
                            "Indian/Comoro",
                            "Indian/Kerguelen",
                            "Indian/Mahe",
                            "Indian/Maldives",
                            "Indian/Mauritius",
                            "Indian/Mayotte",
                            "Indian/Reunion",
                            "Pacific/Apia",
                            "Pacific/Auckland",
                            "Pacific/Bougainville",
                            "Pacific/Chatham",
                            "Pacific/Chuuk",
                            "Pacific/Easter",
                            "Pacific/Efate",
                            "Pacific/Fakaofo",
                            "Pacific/Fiji",
                            "Pacific/Funafuti",
                            "Pacific/Galapagos",
                            "Pacific/Gambier",
                            "Pacific/Guadalcanal",
                            "Pacific/Guam",
                            "Pacific/Honolulu",
                            "Pacific/Kanton",
                            "Pacific/Kiritimati",
                            "Pacific/Kosrae",
                            "Pacific/Kwajalein",
                            "Pacific/Majuro",
                            "Pacific/Marquesas",
                            "Pacific/Midway",
                            "Pacific/Nauru",
                            "Pacific/Niue",
                            "Pacific/Norfolk",
                            "Pacific/Noumea",
                            "Pacific/Pago_Pago",
                            "Pacific/Palau",
                            "Pacific/Pitcairn",
                            "Pacific/Pohnpei",
                            "Pacific/Port_Moresby",
                            "Pacific/Rarotonga",
                            "Pacific/Saipan",
                            "Pacific/Tahiti",
                            "Pacific/Tarawa",
                            "Pacific/Tongatapu",
                            "Pacific/Wake",
                            "Pacific/Wallis",
                            "UTC",
                            null
                        ]
                    },
                    "critical_bypass": {
                        "type": "boolean"
                    },
                    "link_to_ladon": {
                        "type": "boolean",
                        "description": "Show \"Open in Ladon\" in chat messages and emails. Turn off for channels read by people without a Ladon account. Webhooks always carry the links"
                    },
                    "appearance": {
                        "type": "object",
                        "description": "What chat messages and emails show. Part of Pro and higher, webhooks keep their JSON",
                        "properties": {
                            "hidden": {
                                "type": "array",
                                "items": {
                                    "type": "string",
                                    "enum": [
                                        "severity",
                                        "cve",
                                        "fixed",
                                        "projects",
                                        "changes",
                                        "details",
                                        "matched"
                                    ]
                                }
                            },
                            "layout": {
                                "type": "string",
                                "enum": [
                                    "full",
                                    "compact"
                                ]
                            },
                            "prefix": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Text before every title, such as [Acme]",
                                "maxLength": 30
                            },
                            "mentions": {
                                "type": "array",
                                "description": "Discord: role:ID, user:ID or here. Slack: here, channel or group:ID of a user group",
                                "items": {
                                    "type": "string"
                                },
                                "maxItems": 10,
                                "uniqueItems": true
                            },
                            "mention_from": {
                                "type": "string",
                                "enum": [
                                    "critical",
                                    "high"
                                ]
                            },
                            "color": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "description": "Discord: one color for the line next to every message, such as #15803d. Left out or null colors by severity",
                                "pattern": "^#[0-9a-fA-F]{6}$"
                            }
                        }
                    },
                    "use_brand": {
                        "type": "boolean",
                        "description": "Send in the brand of the team instead of the look of Ladon. Business and higher"
                    },
                    "max_messages_per_hour": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 1,
                        "maximum": 1000
                    },
                    "locale": {
                        "type": "string",
                        "description": "Language of emails, chat messages and tests. Left out means the language of the person who adds the channel",
                        "enum": [
                            "en",
                            "nl"
                        ]
                    },
                    "tag_filter": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "Only alerts for watches with at least one of these tags. Empty or left out means every watch",
                        "items": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*$",
                            "maxLength": 32
                        },
                        "maxItems": 10
                    },
                    "severity_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "all",
                            "levels",
                            "score",
                            null
                        ]
                    },
                    "severity_levels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "critical",
                                "high",
                                "medium",
                                "low",
                                "unscored"
                            ]
                        }
                    },
                    "cvss_min": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 10
                    },
                    "cvss_max": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 10
                    },
                    "cvss_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "3.1",
                            "4.0",
                            null
                        ]
                    },
                    "paused": {
                        "type": "boolean"
                    },
                    "project": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Public id of the project the channel belongs to. Left out means the team's default project. Only read when the channel is made"
                    }
                },
                "required": [
                    "type",
                    "name"
                ],
                "title": "ApiEndpointRequest"
            },
            "ApiProjectSoftwareRequest": {
                "type": "object",
                "description": "Add software to a project by hand through the API. For now only the WordPress catalog: plugins, themes and core.",
                "properties": {
                    "software": {
                        "type": "object",
                        "properties": {
                            "type": {
                                "$ref": "#/components/schemas/SoftwareType"
                            },
                            "slug": {
                                "type": "string",
                                "maxLength": 100
                            }
                        },
                        "required": [
                            "type",
                            "slug"
                        ]
                    },
                    "version_constraint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Empty or left out means every version",
                        "maxLength": 255
                    }
                },
                "required": [
                    "software"
                ],
                "title": "ApiProjectSoftwareRequest"
            },
            "ApiWatchRequest": {
                "type": "object",
                "description": "Software is named by type and slug. A PATCH only changes the fields it sends.",
                "properties": {
                    "version_constraint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 255
                    },
                    "events": {
                        "type": "array",
                        "description": "Left out means the default alerts",
                        "items": {
                            "$ref": "#/components/schemas/VulnEventType"
                        },
                        "minItems": 1
                    },
                    "include_informational": {
                        "type": "boolean"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "description": "Up to 10 labels, such as a client or an environment, that channels can route alerts by",
                        "items": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*$",
                            "maxLength": 32
                        },
                        "maxItems": 10
                    },
                    "severity_mode": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "all",
                            "levels",
                            "score",
                            null
                        ]
                    },
                    "severity_levels": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "enum": [
                                "critical",
                                "high",
                                "medium",
                                "low",
                                "unscored"
                            ]
                        }
                    },
                    "cvss_min": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 10
                    },
                    "cvss_max": {
                        "type": [
                            "number",
                            "null"
                        ],
                        "minimum": 0,
                        "maximum": 10
                    },
                    "cvss_version": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "3.1",
                            "4.0",
                            null
                        ]
                    },
                    "software": {
                        "type": "object",
                        "description": "A plugin or theme the catalog does not know yet, such as a premium one, is added by its slug. Core has to be in the catalog. A package or repository is looked up in its registry or on GitHub and refused when it does not exist",
                        "properties": {
                            "type": {
                                "$ref": "#/components/schemas/SoftwareType"
                            },
                            "slug": {
                                "type": "string",
                                "maxLength": 100
                            }
                        },
                        "required": [
                            "type",
                            "slug"
                        ]
                    },
                    "project": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Public id of the project to watch it in. Left out means the team's default project. A watch cannot move to another project"
                    },
                    "paused": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "software"
                ],
                "title": "ApiWatchRequest"
            },
            "AttemptResource": {
                "type": "object",
                "properties": {
                    "attempt": {
                        "type": "integer"
                    },
                    "started_at": {
                        "type": "string"
                    },
                    "duration_ms": {
                        "type": "integer"
                    },
                    "http_status": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "error": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Null when it was delivered"
                    },
                    "response_excerpt": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The first 512 bytes of the answer"
                    }
                },
                "required": [
                    "attempt",
                    "started_at",
                    "duration_ms",
                    "http_status",
                    "error",
                    "response_excerpt"
                ],
                "title": "AttemptResource"
            },
            "CveMatcher": {
                "type": "object",
                "description": "Runs the active rules over CVEs that changed. A rule hears about a CVE once, when the CVE starts to meet it.\nA CVE that already met the rule before the change stays quiet, so a new score on an old CVE or a daily EPSS step is no news.",
                "title": "CveMatcher"
            },
            "CveResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "title": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "state": {
                        "type": "string"
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "assigner": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "severity": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cvss": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "score": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "vector": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "source": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "score",
                            "version",
                            "vector",
                            "source"
                        ]
                    },
                    "cwe_ids": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "vendors": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "products": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "kev": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "added_at": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "added_at"
                        ]
                    },
                    "epss": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "score": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "percentile": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "score",
                            "percentile"
                        ]
                    },
                    "references": {
                        "type": "array",
                        "items": {}
                    },
                    "url": {
                        "type": "string"
                    },
                    "source": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string",
                                "const": "CVE List"
                            },
                            "url": {
                                "type": "string"
                            },
                            "notices": {
                                "type": "array",
                                "items": {}
                            }
                        },
                        "required": [
                            "name",
                            "url",
                            "notices"
                        ]
                    }
                },
                "required": [
                    "id",
                    "title",
                    "description",
                    "state",
                    "published_at",
                    "updated_at",
                    "assigner",
                    "severity",
                    "cvss",
                    "cwe_ids",
                    "vendors",
                    "products",
                    "kev",
                    "epss",
                    "references",
                    "url",
                    "source"
                ],
                "title": "CveResource"
            },
            "CveRuleRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "description": "A name you recognize in alerts",
                        "maxLength": 100
                    },
                    "conditions": {
                        "type": "array",
                        "description": "A group: `{\"match\": \"all\" or \"any\", \"conditions\": [...]}`, where a condition is `{\"field\", \"op\", \"value\"}` or another group. See the docs for the fields and operators",
                        "items": {
                            "type": "string"
                        },
                        "minItems": 1
                    },
                    "channels": {
                        "type": "array",
                        "description": "Ids of the channels that get the alerts of this rule",
                        "items": {
                            "type": "string"
                        },
                        "maxItems": 20,
                        "uniqueItems": true
                    },
                    "project": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Public id of the project the rule belongs to. Left out means the team's default project. Only read when the rule is made"
                    },
                    "paused": {
                        "type": "boolean",
                        "description": "Pause the rule, it then matches nothing until it is switched on again"
                    }
                },
                "required": [
                    "name",
                    "conditions"
                ],
                "title": "CveRuleRequest"
            },
            "DeliveryMode": {
                "type": "string",
                "enum": [
                    "direct",
                    "batched",
                    "digest"
                ],
                "title": "DeliveryMode"
            },
            "EndpointResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "enum": [
                            "generic",
                            "email",
                            "slack",
                            "discord",
                            "teams"
                        ]
                    },
                    "name": {
                        "type": "string"
                    },
                    "url": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Only for your own webhooks"
                    },
                    "host": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending_verification",
                            "active",
                            "paused",
                            "disabled_failing",
                            "disabled_gone"
                        ]
                    },
                    "disabled_reason": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "severity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "mode": {
                                "type": "string"
                            },
                            "levels": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "min": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "max": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "mode",
                            "levels",
                            "min",
                            "max",
                            "version"
                        ]
                    },
                    "tag_filter": {
                        "type": "array",
                        "description": "Only alerts for watches with at least one of these tags. Empty means every watch",
                        "items": {
                            "type": "string"
                        }
                    },
                    "project": {
                        "type": "string",
                        "description": "Public id of the project whose alerts reach the channel"
                    },
                    "delivery": {
                        "type": "object",
                        "properties": {
                            "mode": {
                                "type": "string",
                                "enum": [
                                    "direct",
                                    "batched",
                                    "digest"
                                ]
                            },
                            "batch_window_minutes": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "digest_schedule": {
                                "type": [
                                    "object",
                                    "null"
                                ],
                                "properties": {
                                    "frequency": {
                                        "type": "string"
                                    },
                                    "time": {
                                        "type": "string"
                                    },
                                    "timezone": {
                                        "type": "string"
                                    },
                                    "weekday": {
                                        "type": "integer"
                                    }
                                },
                                "required": [
                                    "time",
                                    "timezone"
                                ]
                            },
                            "next_digest_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "max_messages_per_hour": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "critical_bypass": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "mode",
                            "batch_window_minutes",
                            "digest_schedule",
                            "next_digest_at",
                            "max_messages_per_hour",
                            "critical_bypass"
                        ]
                    },
                    "link_to_ladon": {
                        "type": "boolean",
                        "description": "Chat messages and emails show \"Open in Ladon\""
                    },
                    "appearance": {
                        "type": "object",
                        "description": "What chat messages and emails show. Kept on a downgrade, but only applied on Pro and higher",
                        "properties": {
                            "hidden": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "layout": {
                                "type": "string"
                            },
                            "prefix": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "mentions": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "mention_from": {
                                "type": "string"
                            },
                            "color": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "hidden",
                            "layout",
                            "prefix",
                            "mentions",
                            "mention_from",
                            "color"
                        ]
                    },
                    "use_brand": {
                        "type": "boolean",
                        "description": "Sends in the brand of the team. Kept on a downgrade, but only applied on Business and higher"
                    },
                    "locale": {
                        "type": "string",
                        "description": "Language of emails, chat messages and tests",
                        "enum": [
                            "en",
                            "nl"
                        ]
                    },
                    "api_version": {
                        "type": "string"
                    },
                    "recipients": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "properties": {
                                "email": {
                                    "type": "string"
                                },
                                "confirmed": {
                                    "type": "boolean"
                                }
                            },
                            "required": [
                                "email",
                                "confirmed"
                            ]
                        }
                    },
                    "verified_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_success_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_failure_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "consecutive_failures": {
                        "type": "integer"
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "type",
                    "name",
                    "url",
                    "host",
                    "status",
                    "disabled_reason",
                    "events",
                    "severity",
                    "tag_filter",
                    "project",
                    "delivery",
                    "link_to_ladon",
                    "appearance",
                    "use_brand",
                    "locale",
                    "api_version",
                    "recipients",
                    "verified_at",
                    "last_success_at",
                    "last_failure_at",
                    "consecutive_failures",
                    "created_at"
                ],
                "title": "EndpointResource"
            },
            "EndpointType": {
                "type": "string",
                "enum": [
                    "generic",
                    "email",
                    "slack",
                    "discord",
                    "teams"
                ],
                "title": "EndpointType"
            },
            "MessageResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "endpoint_id": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "description": "An event type, or ping, digest or batch"
                    },
                    "status": {
                        "type": "string",
                        "enum": [
                            "pending",
                            "delivering",
                            "succeeded",
                            "failed",
                            "abandoned"
                        ]
                    },
                    "attempts": {
                        "type": "integer"
                    },
                    "next_attempt_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "delivered_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    },
                    "payload": {
                        "type": "object",
                        "description": "The event, digest or test as Ladon built it",
                        "additionalProperties": {}
                    }
                },
                "required": [
                    "id",
                    "endpoint_id",
                    "type",
                    "status",
                    "attempts",
                    "next_attempt_at",
                    "delivered_at",
                    "created_at",
                    "payload"
                ],
                "title": "MessageResource"
            },
            "MessageStatus": {
                "type": "string",
                "enum": [
                    "pending",
                    "delivering",
                    "succeeded",
                    "failed",
                    "abandoned"
                ],
                "title": "MessageStatus"
            },
            "ProjectRequest": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 100
                    },
                    "lockfile": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "The lockfile as a file upload, such as package-lock.json, composer.lock, poetry.lock, Gemfile.lock, Cargo.lock, go.mod, gradle.lockfile or pom.xml. It replaces the lockfile of the project with the same name, the others stay. Leave it out to start an empty project and add software by hand"
                    },
                    "content": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "The lockfile as text instead of an upload, with its file name in filename",
                        "maxLength": 20971520
                    },
                    "filename": {
                        "type": "string"
                    },
                    "manifest": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "binary",
                        "contentMediaType": "application/octet-stream",
                        "description": "The manifest next to the lockfile, such as package.json or pyproject.toml. Only needed where the lockfile does not tell direct and dev dependencies apart"
                    },
                    "lockfiles": {
                        "type": "array",
                        "description": "The web form sends several lockfiles at once, each with the manifests that belong to it",
                        "items": {
                            "type": "string",
                            "format": "binary",
                            "contentMediaType": "application/octet-stream",
                            "description": "Maximum file size: 20480 kilobytes."
                        },
                        "maxItems": 20
                    },
                    "manifests": {
                        "type": "array",
                        "items": {
                            "type": "string",
                            "format": "binary",
                            "contentMediaType": "application/octet-stream",
                            "description": "Maximum file size: 2048 kilobytes."
                        },
                        "maxItems": 20
                    },
                    "manifest_content": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 2097152
                    },
                    "include_dev": {
                        "type": "boolean"
                    },
                    "tags": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9._-]*$",
                            "maxLength": 32
                        },
                        "maxItems": 10
                    }
                },
                "required": [
                    "name"
                ],
                "title": "ProjectRequest"
            },
            "ProjectResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "kind": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "npm",
                            "composer",
                            "pypi",
                            "gem",
                            "cargo",
                            "golang",
                            "maven",
                            "plugin",
                            "theme",
                            "core",
                            null
                        ]
                    },
                    "lockfile_format": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "package-lock",
                            "yarn-classic",
                            "yarn-berry",
                            "pnpm",
                            "composer",
                            "poetry",
                            "uv",
                            "pipfile",
                            "requirements",
                            "bundler",
                            "cargo",
                            "gomod",
                            "gradle",
                            "pom",
                            "multiple",
                            null
                        ]
                    },
                    "include_dev": {
                        "type": "boolean",
                        "description": "Dev dependencies raise alerts too"
                    },
                    "tags": {
                        "type": "array",
                        "description": "Event types the watches of its packages get",
                        "items": {
                            "type": "string"
                        }
                    },
                    "package_count": {
                        "type": "integer"
                    },
                    "paused": {
                        "type": "boolean"
                    },
                    "last_synced_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "name",
                    "kind",
                    "lockfile_format",
                    "include_dev",
                    "tags",
                    "package_count",
                    "paused",
                    "last_synced_at",
                    "created_at"
                ],
                "title": "ProjectResource"
            },
            "RuleResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "project": {
                        "type": "string",
                        "description": "Public id of the project the rule belongs to"
                    },
                    "name": {
                        "type": "string"
                    },
                    "conditions": {
                        "type": "object",
                        "description": "The tree of conditions, as sent",
                        "additionalProperties": {}
                    },
                    "channels": {
                        "type": "array",
                        "description": "Ids of the channels that get its alerts",
                        "items": {
                            "type": "string"
                        }
                    },
                    "paused": {
                        "type": "boolean"
                    },
                    "paused_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "manual",
                            "plan_limit",
                            null
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "project",
                    "name",
                    "conditions",
                    "channels",
                    "paused",
                    "paused_reason",
                    "created_at"
                ],
                "title": "RuleResource"
            },
            "SiteInventoryRequest": {
                "type": "object",
                "description": "One inventory push from the plugin. Sizes are capped and slugs validated, the site itself is trusted only for its own data.",
                "properties": {
                    "core": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "php": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "maxLength": 32
                    },
                    "plugins": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                                    "maxLength": 214
                                },
                                "version": {
                                    "type": "string",
                                    "maxLength": 64
                                },
                                "active": {
                                    "type": "boolean"
                                },
                                "new_version": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 64
                                },
                                "active_sites": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "maxItems": 100
                                }
                            },
                            "required": [
                                "slug",
                                "version"
                            ]
                        },
                        "maxItems": 2000
                    },
                    "themes": {
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "type": "object",
                            "properties": {
                                "slug": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
                                    "maxLength": 214
                                },
                                "version": {
                                    "type": "string",
                                    "maxLength": 64
                                },
                                "active": {
                                    "type": "boolean"
                                },
                                "new_version": {
                                    "type": [
                                        "string",
                                        "null"
                                    ],
                                    "maxLength": 64
                                },
                                "active_sites": {
                                    "type": [
                                        "array",
                                        "null"
                                    ],
                                    "items": {
                                        "type": "string",
                                        "maxLength": 255
                                    },
                                    "maxItems": 100
                                }
                            },
                            "required": [
                                "slug",
                                "version"
                            ]
                        },
                        "maxItems": 2000
                    },
                    "multisite": {
                        "type": "boolean"
                    },
                    "network_sites": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "minimum": 0
                    },
                    "subsites_scanned": {
                        "type": "boolean"
                    }
                },
                "title": "SiteInventoryRequest"
            },
            "SoftwareResource": {
                "type": "object",
                "properties": {
                    "type": {
                        "type": "string",
                        "enum": [
                            "plugin",
                            "theme",
                            "core",
                            "npm",
                            "composer",
                            "pypi",
                            "gem",
                            "cargo",
                            "golang",
                            "maven",
                            "github"
                        ]
                    },
                    "slug": {
                        "type": "string"
                    },
                    "name": {
                        "type": "string"
                    },
                    "latest_version": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "on_wordpress_org": {
                        "type": "boolean"
                    },
                    "active_installs": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "closed": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "description": "Set when WordPress.org closed it, the registry deprecated or abandoned the package, or GitHub archived the repository",
                        "properties": {
                            "date": {
                                "type": "string"
                            },
                            "reason": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "permanent": {
                                "type": [
                                    "boolean",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "date",
                            "reason",
                            "permanent"
                        ]
                    }
                },
                "required": [
                    "type",
                    "slug",
                    "name",
                    "latest_version",
                    "on_wordpress_org",
                    "active_installs",
                    "closed"
                ],
                "title": "SoftwareResource"
            },
            "SoftwareType": {
                "type": "string",
                "description": "Package types use the names of the package URL standard, so they read the same as in other tools.\n",
                "enum": [
                    "plugin",
                    "theme",
                    "core",
                    "npm",
                    "composer",
                    "pypi",
                    "gem",
                    "cargo",
                    "golang",
                    "maven",
                    "github"
                ],
                "title": "SoftwareType"
            },
            "VulnEventType": {
                "type": "string",
                "enum": [
                    "vulnerability.created",
                    "vulnerability.updated",
                    "vulnerability.deleted",
                    "vulnerability.patched",
                    "patch.released",
                    "software.version_released",
                    "software.closed",
                    "software.reopened",
                    "package.malicious",
                    "project.vulnerable",
                    "project.resolved",
                    "site.vulnerable",
                    "site.resolved",
                    "vulnerability.exploited",
                    "vulnerability.exploit_published",
                    "vulnerability.cve_assigned"
                ],
                "title": "VulnEventType"
            },
            "VulnerabilityResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "title": {
                        "type": "string"
                    },
                    "description": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cve": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cvss": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "cwe": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "severity": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "critical",
                            "high",
                            "medium",
                            "low",
                            "none",
                            null
                        ]
                    },
                    "informational": {
                        "type": "boolean"
                    },
                    "published_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "updated_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "withdrawn_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Set when the source withdrew the vulnerability"
                    },
                    "references": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "software": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "type": {
                                    "type": "string"
                                },
                                "ecosystem": {
                                    "type": "string"
                                },
                                "slug": {
                                    "type": "string"
                                },
                                "name": {
                                    "type": "string"
                                },
                                "affected_versions": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "label": {
                                                "type": "string"
                                            },
                                            "from": {
                                                "type": "string"
                                            },
                                            "from_inclusive": {
                                                "type": "boolean"
                                            },
                                            "to": {
                                                "type": "string"
                                            },
                                            "to_inclusive": {
                                                "type": "boolean"
                                            }
                                        },
                                        "required": [
                                            "label",
                                            "from",
                                            "from_inclusive",
                                            "to",
                                            "to_inclusive"
                                        ]
                                    }
                                },
                                "patched": {
                                    "type": "boolean"
                                },
                                "patched_versions": {
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "remediation": {
                                    "type": [
                                        "string",
                                        "null"
                                    ]
                                }
                            },
                            "required": [
                                "type",
                                "ecosystem",
                                "slug",
                                "name",
                                "affected_versions",
                                "patched",
                                "patched_versions",
                                "remediation"
                            ]
                        }
                    },
                    "source": {
                        "description": "Keep the link, the notices and the licenses with every copy of this data",
                        "anyOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "url": {
                                        "type": "string"
                                    },
                                    "copyrights": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        },
                                        "minItems": 0,
                                        "maxItems": 0
                                    }
                                },
                                "required": [
                                    "url",
                                    "copyrights"
                                ]
                            }
                        ]
                    },
                    "links": {
                        "type": "object",
                        "properties": {
                            "dashboard": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "dashboard"
                        ]
                    }
                },
                "required": [
                    "id",
                    "title",
                    "description",
                    "cve",
                    "cvss",
                    "cwe",
                    "severity",
                    "informational",
                    "published_at",
                    "updated_at",
                    "withdrawn_at",
                    "references",
                    "software",
                    "source",
                    "links"
                ],
                "title": "VulnerabilityResource"
            },
            "WatchResource": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "string"
                    },
                    "project": {
                        "type": "string",
                        "description": "Public id of the project the watch belongs to"
                    },
                    "software": {
                        "$ref": "#/components/schemas/SoftwareResource"
                    },
                    "version_constraint": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "description": "Empty means every version"
                    },
                    "events": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "severity": {
                        "type": [
                            "object",
                            "null"
                        ],
                        "properties": {
                            "mode": {
                                "type": "string"
                            },
                            "levels": {
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            },
                            "min": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "max": {
                                "type": [
                                    "number",
                                    "null"
                                ]
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        },
                        "required": [
                            "mode",
                            "levels",
                            "min",
                            "max",
                            "version"
                        ]
                    },
                    "include_informational": {
                        "type": "boolean"
                    },
                    "tags": {
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "paused": {
                        "type": "boolean"
                    },
                    "paused_reason": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "manual",
                            "plan_limit",
                            null
                        ]
                    },
                    "created_at": {
                        "type": "string"
                    }
                },
                "required": [
                    "id",
                    "project",
                    "software",
                    "version_constraint",
                    "events",
                    "severity",
                    "include_informational",
                    "tags",
                    "paused",
                    "paused_reason",
                    "created_at"
                ],
                "title": "WatchResource"
            }
        },
        "responses": {
            "ValidationException": {
                "description": "Validation error",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Errors overview."
                                },
                                "errors": {
                                    "type": "object",
                                    "description": "A detailed description of each field that failed validation.",
                                    "additionalProperties": {
                                        "type": "array",
                                        "items": {
                                            "type": "string"
                                        }
                                    }
                                }
                            },
                            "required": [
                                "message",
                                "errors"
                            ]
                        }
                    }
                }
            },
            "ModelNotFoundException": {
                "description": "Not found",
                "content": {
                    "application/json": {
                        "schema": {
                            "type": "object",
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "description": "Error overview."
                                }
                            },
                            "required": [
                                "message"
                            ]
                        }
                    }
                }
            }
        }
    }
}