@deepbounty/sdk 1.1.0 → 1.1.1

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.
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export interface ServerAPI {
45
45
  config: ConfigAPI;
46
46
  /**
47
47
  * Register a task template that can be scheduled for all targets
48
+ * @param uniqueKey Unique identifier for this task within the module (e.g., "subdomain-scan")
48
49
  * @param name Friendly name for the task
49
50
  * @param description Task description
50
51
  * @param taskContent The task content including commands and tools
@@ -52,7 +53,7 @@ export interface ServerAPI {
52
53
  * @param onComplete Optional callback executed when the task completes
53
54
  * @returns The ID of the registered task template
54
55
  */
55
- registerTaskTemplate(name: string, description: string, taskContent: TaskContent, interval: number, onComplete?: (result: TaskResult) => void): Promise<number>;
56
+ registerTaskTemplate(uniqueKey: string, name: string, description: string, taskContent: TaskContent, interval: number, onComplete?: (result: TaskResult) => void): Promise<number>;
56
57
  /**
57
58
  * Unregister a task template
58
59
  * @param templateId The ID of the task template to unregister
@@ -7,6 +7,7 @@ export interface TaskContent {
7
7
  export interface TaskTemplate {
8
8
  id: number;
9
9
  moduleId: string;
10
+ uniqueKey: string;
10
11
  name: string;
11
12
  description?: string;
12
13
  content: TaskContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepbounty/sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "DeepBounty SDK for module development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",