mirror of
https://github.com/yyhuni/xingrin.git
synced 2026-02-01 04:03:23 +08:00
37 lines
722 B
TypeScript
37 lines
722 B
TypeScript
export type NucleiTemplateNodeType = "folder" | "file"
|
|
|
|
export interface NucleiTemplateTreeNode {
|
|
type: NucleiTemplateNodeType
|
|
name: string
|
|
path: string
|
|
children?: NucleiTemplateTreeNode[]
|
|
templateId?: string
|
|
severity?: string
|
|
tags?: string[]
|
|
}
|
|
|
|
export interface NucleiTemplateTreeResponse {
|
|
roots: NucleiTemplateTreeNode[]
|
|
}
|
|
|
|
export interface NucleiTemplateContent {
|
|
path: string
|
|
name: string
|
|
templateId?: string
|
|
severity?: string
|
|
tags?: string[]
|
|
content: string
|
|
}
|
|
|
|
export type NucleiTemplateScope = "custom" | "public"
|
|
|
|
export interface UploadNucleiTemplatePayload {
|
|
scope: NucleiTemplateScope
|
|
file: File
|
|
}
|
|
|
|
export interface SaveNucleiTemplatePayload {
|
|
path: string
|
|
content: string
|
|
}
|