@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 +2 -1
- package/dist/types/tasks.d.ts +1 -0
- package/package.json +1 -1
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
|
package/dist/types/tasks.d.ts
CHANGED