main
py 30 lines 622 Bytes
Raw
1 from typing import List
2
3 from pydantic import BaseModel
4 from pydantic import Field
5
6
7 class NucleiScanRequest(BaseModel):
8 host: str = Field(..., title="Host", description="Host to scan")
9
10
11 class NucleiScanResponse(BaseModel):
12 message: str
13 success: bool
14
15
16 class NucleiReportsAvailableResponse(BaseModel):
17 reports: List[str] = Field(..., title="Reports", description="Reports available")
18 success: bool
19 message: str
20
21
22 class NucleiReportCollectionResponse(BaseModel):
23 markdown: str
24 success: bool
25 message: str
26
27
28 class DeleteNucleiReportResponse(BaseModel):
29 success: bool
30 message: str