@deepbounty/sdk 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +13 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ModuleSetting, TaskContent, TaskResult, Tool } from "./types";
1
+ import { Alert, ModuleSetting, TaskContent, TaskResult, Tool } from "./types";
2
2
  export interface Logger {
3
3
  info: (...args: any[]) => void;
4
4
  warn: (...args: any[]) => void;
@@ -102,6 +102,18 @@ export interface ServerAPI {
102
102
  * @param tool The tool to register
103
103
  */
104
104
  registerTool(tool: Tool): void;
105
+ /**
106
+ * Create a new alert for a target
107
+ * @param targetId The ID of the target
108
+ * @param name The title of the alert
109
+ * @param subdomain The subdomain where the vulnerability was found
110
+ * @param score The severity score (0=Informational, 1=Low, 2=Medium, 3=High, 4=Critical)
111
+ * @param description Detailed description of the alert
112
+ * @param endpoint Specific endpoint/path where the vulnerability was found
113
+ * @param confirmed Whether the vulnerability has been confirmed (default: false)
114
+ * @returns The created alert ID
115
+ */
116
+ createAlert(targetId: number, name: string, subdomain: string, score: number, description: string, endpoint: string, confirmed?: boolean): Promise<Alert>;
105
117
  }
106
118
  export interface PluginLifecycle {
107
119
  run?(api: ServerAPI): Promise<void> | void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepbounty/sdk",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "DeepBounty SDK for module development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",