@deepbounty/sdk 1.2.5 → 1.2.6

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 +7 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -209,6 +209,13 @@ export interface TargetAPI {
209
209
  * @returns The target ID or null if not found
210
210
  */
211
211
  getTargetIdByHostname(hostname: string): Promise<number | null>;
212
+ /**
213
+ * Get all targets with their information
214
+ * Only targets enabled for the given task template are returned.
215
+ * @param taskTemplateId The task template ID
216
+ * @returns Array of targets enabled for the task template
217
+ */
218
+ getTargetsForTask(taskTemplateId: number): Promise<Target[]>;
212
219
  }
213
220
  export interface ServerAPI {
214
221
  version: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepbounty/sdk",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "DeepBounty SDK for module development",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",