@caido/sdk-workflow 0.39.0-dev.1 → 0.39.0
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/package.json +1 -1
- package/src/types/common.d.ts +31 -2
package/package.json
CHANGED
package/src/types/common.d.ts
CHANGED
|
@@ -150,13 +150,23 @@ declare module "caido:utils" {
|
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* A saved immutable Finding.
|
|
153
|
-
*
|
|
154
|
-
* To modify, use `toSpec` to get a `FindingSpec` object.
|
|
155
153
|
*/
|
|
156
154
|
export type Finding = {
|
|
155
|
+
/**
|
|
156
|
+
* The unique Caido {@link ID} of the finding.
|
|
157
|
+
*/
|
|
157
158
|
getId(): ID;
|
|
159
|
+
/**
|
|
160
|
+
* The title of the finding.
|
|
161
|
+
*/
|
|
158
162
|
getTitle(): string;
|
|
163
|
+
/**
|
|
164
|
+
* The description of the finding.
|
|
165
|
+
*/
|
|
159
166
|
getDescription(): string | undefined;
|
|
167
|
+
/**
|
|
168
|
+
* The name of the reporter.
|
|
169
|
+
*/
|
|
160
170
|
getReporter(): string;
|
|
161
171
|
};
|
|
162
172
|
|
|
@@ -164,9 +174,27 @@ declare module "caido:utils" {
|
|
|
164
174
|
* A mutable Finding not yet created.
|
|
165
175
|
*/
|
|
166
176
|
export type FindingSpec = {
|
|
177
|
+
/**
|
|
178
|
+
* The title of the finding.
|
|
179
|
+
*/
|
|
167
180
|
title: string;
|
|
181
|
+
/**
|
|
182
|
+
* The description of the finding.
|
|
183
|
+
*/
|
|
168
184
|
description?: string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* The name of the reporter.
|
|
187
|
+
* It will be used to group findings.
|
|
188
|
+
*/
|
|
169
189
|
reporter: string;
|
|
190
|
+
/**
|
|
191
|
+
* Deduplication key for findings.
|
|
192
|
+
* If a finding with the same dedupe key already exists, it will not be created.
|
|
193
|
+
*/
|
|
194
|
+
dedupeKey?: string | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* The associated {@link Request}.
|
|
197
|
+
*/
|
|
170
198
|
request: Request;
|
|
171
199
|
};
|
|
172
200
|
|
|
@@ -184,6 +212,7 @@ declare module "caido:utils" {
|
|
|
184
212
|
* title: "Title",
|
|
185
213
|
* description: "Description",
|
|
186
214
|
* reporter: "Reporter",
|
|
215
|
+
* dedupe: `${request.getHost()}-${request.getPath()}`,
|
|
187
216
|
* request,
|
|
188
217
|
* });
|
|
189
218
|
*/
|