@mitre/hdf-converters 3.6.0 → 3.7.0-rc.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/README.md +1 -1
- package/dist/detect.d.ts +5 -5
- package/dist/detect.d.ts.map +1 -1
- package/dist/detect.js +1 -1
- package/dist/index.d.ts +91 -79
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2188 -515
- package/dist/index.js.map +1 -1
- package/dist/{register-all-CDfYvwQF.js → register-all-BEuKQGEZ.js} +69 -64
- package/dist/register-all-BEuKQGEZ.js.map +1 -0
- package/dist/registry.d.ts +9 -10
- package/dist/registry.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/register-all-CDfYvwQF.js.map +0 -1
package/README.md
CHANGED
|
@@ -202,7 +202,7 @@ Each converter has shared test fixtures and differential tests that verify TypeS
|
|
|
202
202
|
|
|
203
203
|
## Adding a New Converter
|
|
204
204
|
|
|
205
|
-
See [
|
|
205
|
+
See [Writing a Converter](../site/docs/contributing/writing-a-converter.md) for implementation instructions.
|
|
206
206
|
|
|
207
207
|
Summary:
|
|
208
208
|
1. Add real tool output fixtures in `converters/<name>/fixtures/input/`
|
package/dist/detect.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ interface DetectionResult {
|
|
|
6
6
|
/** Detected format version (e.g. "2.1.0" for SARIF). Empty when not available. */
|
|
7
7
|
version: string;
|
|
8
8
|
}
|
|
9
|
-
declare function detectConverter(input: string): DetectionResult | undefined;
|
|
10
|
-
declare function detectConverterAll(input: string): DetectionResult[];
|
|
11
|
-
declare function detectFamily(input: string): InputFamily | undefined;
|
|
9
|
+
export declare function detectConverter(input: string): DetectionResult | undefined;
|
|
10
|
+
export declare function detectConverterAll(input: string): DetectionResult[];
|
|
11
|
+
export declare function detectFamily(input: string): InputFamily | undefined;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region shared/typescript/register-all.d.ts
|
|
14
14
|
/**
|
|
@@ -21,7 +21,7 @@ declare function detectFamily(input: string): InputFamily | undefined;
|
|
|
21
21
|
* Register all known converter fingerprints.
|
|
22
22
|
* Idempotent — safe to call multiple times or after _resetRegistry().
|
|
23
23
|
*/
|
|
24
|
-
declare function registerAllFingerprints(): void;
|
|
24
|
+
export declare function registerAllFingerprints(): void;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { type ConverterDirection, type ConverterFingerprint, type DetectionResult, type InputFamily, type OutputType,
|
|
26
|
+
export { type ConverterDirection, type ConverterFingerprint, type DetectionResult, type InputFamily, type OutputType, getFingerprint, getFingerprints, getIngestFingerprints, registerFingerprint };
|
|
27
27
|
//# sourceMappingURL=detect.d.ts.map
|
package/dist/detect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","names":[],"sources":["../shared/typescript/fingerprint.ts","../shared/typescript/register-all.ts"],"mappings":";;UASiB;EACf,aAAa;EACb;;EAEA;;
|
|
1
|
+
{"version":3,"file":"detect.d.ts","names":[],"sources":["../shared/typescript/fingerprint.ts","../shared/typescript/register-all.ts"],"mappings":";;UASiB;EACf,aAAa;EACb;;EAEA;;wBAMc,gBAAgB,gBAAgB;wBAgBhC,mBAAmB,gBAAgB;wBAgDnC,aAAa,gBAAgB;;;;;;;;;;;;;wBCoD7B"}
|
package/dist/detect.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { getFingerprint, getFingerprints, getIngestFingerprints, registerFingerprint } from "./registry.js";
|
|
2
|
-
import { a as detectFamily, i as detectConverterAll, r as detectConverter, t as registerAllFingerprints } from "./register-all-
|
|
2
|
+
import { a as detectFamily, i as detectConverterAll, r as detectConverter, t as registerAllFingerprints } from "./register-all-BEuKQGEZ.js";
|
|
3
3
|
export { detectConverter, detectConverterAll, detectFamily, getFingerprint, getFingerprints, getIngestFingerprints, registerAllFingerprints, registerFingerprint };
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ interface LegacyResult {
|
|
|
20
20
|
backtrace?: unknown;
|
|
21
21
|
resource_class?: string;
|
|
22
22
|
resource_params?: string;
|
|
23
|
-
resource_id?:
|
|
23
|
+
resource_id?: unknown;
|
|
24
24
|
skip_message?: string;
|
|
25
25
|
[key: string]: unknown;
|
|
26
26
|
}
|
|
@@ -100,6 +100,10 @@ interface LegacyHDFResults {
|
|
|
100
100
|
statistics: unknown;
|
|
101
101
|
generator?: unknown;
|
|
102
102
|
timestamp?: string;
|
|
103
|
+
passthrough?: {
|
|
104
|
+
hdf_components?: unknown[];
|
|
105
|
+
[key: string]: unknown;
|
|
106
|
+
};
|
|
103
107
|
[key: string]: unknown;
|
|
104
108
|
}
|
|
105
109
|
interface V2Result {
|
|
@@ -242,30 +246,30 @@ interface HDFV2Results {
|
|
|
242
246
|
remediation?: unknown;
|
|
243
247
|
extensions?: Record<string, unknown>;
|
|
244
248
|
}
|
|
245
|
-
declare function convertLegacyHdf(v1Data: LegacyHDFResults, converterVersion?: string): HDFV2Results;
|
|
249
|
+
export declare function convertLegacyHdf(v1Data: LegacyHDFResults, converterVersion?: string): HDFV2Results;
|
|
246
250
|
/**
|
|
247
251
|
* Validate that data appears to be HDF v1.0 format.
|
|
248
252
|
*
|
|
249
253
|
* @param data - Unknown data to validate
|
|
250
254
|
* @returns true if data looks like HDF v1.0
|
|
251
255
|
*/
|
|
252
|
-
declare function isLegacyHdf(data: unknown): data is LegacyHDFResults;
|
|
256
|
+
export declare function isLegacyHdf(data: unknown): data is LegacyHDFResults;
|
|
253
257
|
//#endregion
|
|
254
258
|
//#region converters/asff-to-hdf/typescript/converter.d.ts
|
|
255
259
|
/** Converts an ASFF document to HDF Results JSON. */
|
|
256
|
-
declare function convertAsffToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
260
|
+
export declare function convertAsffToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
257
261
|
//#endregion
|
|
258
262
|
//#region converters/sarif-to-hdf/typescript/converter.d.ts
|
|
259
|
-
declare function convertSarifToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
263
|
+
export declare function convertSarifToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
260
264
|
//#endregion
|
|
261
265
|
//#region converters/junit-to-hdf/typescript/converter.d.ts
|
|
262
266
|
/**
|
|
263
267
|
* Converts JUnit XML test results to HDF format.
|
|
264
268
|
*/
|
|
265
|
-
declare function convertJunitToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
269
|
+
export declare function convertJunitToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
266
270
|
//#endregion
|
|
267
271
|
//#region converters/xccdf-results-to-hdf/typescript/converter.d.ts
|
|
268
|
-
declare function convertXccdfResultsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
272
|
+
export declare function convertXccdfResultsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
269
273
|
//#endregion
|
|
270
274
|
//#region converters/ckl-to-hdf/typescript/converter.d.ts
|
|
271
275
|
/**
|
|
@@ -277,7 +281,7 @@ declare function convertXccdfResultsToHdf(input: string, converterVersion?: stri
|
|
|
277
281
|
* cannot substantiate them — see the Go package doc and build-converter
|
|
278
282
|
* skill Step 4d).
|
|
279
283
|
*/
|
|
280
|
-
declare function convertCklToHdf(input: string): Promise<string>;
|
|
284
|
+
export declare function convertCklToHdf(input: string): Promise<string>;
|
|
281
285
|
//#endregion
|
|
282
286
|
//#region converters/cklb-to-hdf/typescript/converter.d.ts
|
|
283
287
|
/**
|
|
@@ -289,7 +293,7 @@ declare function convertCklToHdf(input: string): Promise<string>;
|
|
|
289
293
|
* cannot substantiate them — see the Go package doc and build-converter
|
|
290
294
|
* skill Step 4d).
|
|
291
295
|
*/
|
|
292
|
-
declare function convertCklbToHdf(input: string): Promise<string>;
|
|
296
|
+
export declare function convertCklbToHdf(input: string): Promise<string>;
|
|
293
297
|
//#endregion
|
|
294
298
|
//#region converters/hdf-to-ckl/typescript/converter.d.ts
|
|
295
299
|
/**
|
|
@@ -306,7 +310,7 @@ declare function convertCklbToHdf(input: string): Promise<string>;
|
|
|
306
310
|
* @param input HDF Results JSON string
|
|
307
311
|
* @returns CKL XML string (with the `<?xml ...?>` header)
|
|
308
312
|
*/
|
|
309
|
-
declare function convertHdfToCkl(input: string): string;
|
|
313
|
+
export declare function convertHdfToCkl(input: string): string;
|
|
310
314
|
//#endregion
|
|
311
315
|
//#region converters/hdf-to-cklb/typescript/converter.d.ts
|
|
312
316
|
/**
|
|
@@ -322,7 +326,7 @@ declare function convertHdfToCkl(input: string): string;
|
|
|
322
326
|
* @param input HDF Results JSON string
|
|
323
327
|
* @returns CKLB JSON string
|
|
324
328
|
*/
|
|
325
|
-
declare function convertHdfToCklb(input: string): string;
|
|
329
|
+
export declare function convertHdfToCklb(input: string): string;
|
|
326
330
|
//#endregion
|
|
327
331
|
//#region converters/kics-to-hdf/typescript/converter.d.ts
|
|
328
332
|
/**
|
|
@@ -336,7 +340,7 @@ declare function convertHdfToCklb(input: string): string;
|
|
|
336
340
|
* @param input - KICS JSON report string
|
|
337
341
|
* @returns HDF JSON string
|
|
338
342
|
*/
|
|
339
|
-
declare function convertKicsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
343
|
+
export declare function convertKicsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
340
344
|
//#endregion
|
|
341
345
|
//#region converters/semgrep-to-hdf/typescript/converter.d.ts
|
|
342
346
|
/**
|
|
@@ -350,7 +354,7 @@ declare function convertKicsToHdf(input: string, converterVersion?: string): Pro
|
|
|
350
354
|
* @param input - Semgrep JSON report string
|
|
351
355
|
* @returns HDF JSON string
|
|
352
356
|
*/
|
|
353
|
-
declare function convertSemgrepToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
357
|
+
export declare function convertSemgrepToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
354
358
|
//#endregion
|
|
355
359
|
//#region converters/snyk-to-hdf/typescript/converter.d.ts
|
|
356
360
|
/**
|
|
@@ -362,19 +366,19 @@ declare function convertSemgrepToHdf(input: string, converterVersion?: string):
|
|
|
362
366
|
* @param input - Snyk JSON or SARIF string
|
|
363
367
|
* @returns HDF JSON string
|
|
364
368
|
*/
|
|
365
|
-
declare function convertSnykToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
369
|
+
export declare function convertSnykToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
366
370
|
//#endregion
|
|
367
371
|
//#region converters/grype-to-hdf/typescript/converter.d.ts
|
|
368
|
-
declare function convertGrypeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
372
|
+
export declare function convertGrypeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
369
373
|
//#endregion
|
|
370
374
|
//#region converters/defectdojo-to-hdf/typescript/converter.d.ts
|
|
371
|
-
declare function convertDefectDojoToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
375
|
+
export declare function convertDefectDojoToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
372
376
|
//#endregion
|
|
373
377
|
//#region converters/nessus-to-hdf/typescript/converter.d.ts
|
|
374
378
|
/**
|
|
375
379
|
* Convert Nessus XML scan results to HDF format
|
|
376
380
|
*/
|
|
377
|
-
declare function convertNessusToHdf(nessusXml: string, converterVersion?: string): Promise<HDFResults>;
|
|
381
|
+
export declare function convertNessusToHdf(nessusXml: string, converterVersion?: string): Promise<HDFResults>;
|
|
378
382
|
//#endregion
|
|
379
383
|
//#region converters/sonarqube-to-hdf/typescript/converter.d.ts
|
|
380
384
|
/**
|
|
@@ -383,7 +387,7 @@ declare function convertNessusToHdf(nessusXml: string, converterVersion?: string
|
|
|
383
387
|
* @param input - JSON string from SonarQube /api/issues/search endpoint
|
|
384
388
|
* @returns HDF JSON string
|
|
385
389
|
*/
|
|
386
|
-
declare function convertSonarqubeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
390
|
+
export declare function convertSonarqubeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
387
391
|
//#endregion
|
|
388
392
|
//#region converters/aws-config-to-hdf/typescript/converter.d.ts
|
|
389
393
|
/**
|
|
@@ -393,7 +397,7 @@ declare function convertSonarqubeToHdf(input: string, converterVersion?: string)
|
|
|
393
397
|
* with get-compliance-details-by-config-rule
|
|
394
398
|
* @returns HDF JSON string
|
|
395
399
|
*/
|
|
396
|
-
declare function convertAwsConfigToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
400
|
+
export declare function convertAwsConfigToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
397
401
|
//#endregion
|
|
398
402
|
//#region converters/checkov-to-hdf/typescript/converter.d.ts
|
|
399
403
|
/**
|
|
@@ -404,7 +408,7 @@ declare function convertAwsConfigToHdf(input: string, converterVersion?: string)
|
|
|
404
408
|
* @param input - checkov JSON or SARIF string
|
|
405
409
|
* @returns HDF JSON string
|
|
406
410
|
*/
|
|
407
|
-
declare function convertCheckovToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
411
|
+
export declare function convertCheckovToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
408
412
|
//#endregion
|
|
409
413
|
//#region converters/gosec-to-hdf/typescript/converter.d.ts
|
|
410
414
|
/**
|
|
@@ -415,13 +419,13 @@ declare function convertCheckovToHdf(input: string, converterVersion?: string):
|
|
|
415
419
|
* @param input - gosec JSON or SARIF string
|
|
416
420
|
* @returns HDF JSON string
|
|
417
421
|
*/
|
|
418
|
-
declare function convertGosecToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
422
|
+
export declare function convertGosecToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
419
423
|
//#endregion
|
|
420
424
|
//#region converters/nikto-to-hdf/typescript/converter.d.ts
|
|
421
|
-
declare function convertNiktoToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
425
|
+
export declare function convertNiktoToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
422
426
|
//#endregion
|
|
423
427
|
//#region converters/zap-to-hdf/typescript/converter.d.ts
|
|
424
|
-
declare function convertZapToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
428
|
+
export declare function convertZapToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
425
429
|
//#endregion
|
|
426
430
|
//#region converters/cyclonedx-to-hdf/typescript/converter.d.ts
|
|
427
431
|
/**
|
|
@@ -430,7 +434,7 @@ declare function convertZapToHdf(input: string, converterVersion?: string): Prom
|
|
|
430
434
|
* @param input - CycloneDX JSON string
|
|
431
435
|
* @returns HDF JSON string
|
|
432
436
|
*/
|
|
433
|
-
declare function convertCyclonedxToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
437
|
+
export declare function convertCyclonedxToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
434
438
|
//#endregion
|
|
435
439
|
//#region converters/hdf-to-csv/typescript/converter.d.ts
|
|
436
440
|
/**
|
|
@@ -438,19 +442,19 @@ declare function convertCyclonedxToHdf(input: string, converterVersion?: string)
|
|
|
438
442
|
* @param input HDF JSON string
|
|
439
443
|
* @returns CSV string with sanitized output
|
|
440
444
|
*/
|
|
441
|
-
declare function convertHdfToCsv(input: string): string;
|
|
445
|
+
export declare function convertHdfToCsv(input: string): string;
|
|
442
446
|
//#endregion
|
|
443
447
|
//#region converters/hdf-to-ecs/typescript/converter.d.ts
|
|
444
|
-
declare function convertHdfToEcs(input: string, converterVersion?: string): string;
|
|
448
|
+
export declare function convertHdfToEcs(input: string, converterVersion?: string): string;
|
|
445
449
|
//#endregion
|
|
446
450
|
//#region converters/hdf-to-splunk/typescript/converter.d.ts
|
|
447
|
-
declare function convertHdfToSplunk(input: string, converterVersion?: string): string;
|
|
451
|
+
export declare function convertHdfToSplunk(input: string, converterVersion?: string): string;
|
|
448
452
|
//#endregion
|
|
449
453
|
//#region converters/hdf-to-ocsf/typescript/converter.d.ts
|
|
450
|
-
declare function convertHdfToOcsf(input: string, converterVersion?: string): string;
|
|
454
|
+
export declare function convertHdfToOcsf(input: string, converterVersion?: string): string;
|
|
451
455
|
//#endregion
|
|
452
456
|
//#region converters/hdf-to-asff/typescript/converter.d.ts
|
|
453
|
-
declare function convertHdfToAsff(input: string, converterVersion?: string): string;
|
|
457
|
+
export declare function convertHdfToAsff(input: string, converterVersion?: string): string;
|
|
454
458
|
//#endregion
|
|
455
459
|
//#region converters/splunk-to-hdf/typescript/converter.d.ts
|
|
456
460
|
/**
|
|
@@ -464,7 +468,7 @@ declare function convertHdfToAsff(input: string, converterVersion?: string): str
|
|
|
464
468
|
* @param input - JSON string of a SplunkEvent array
|
|
465
469
|
* @returns HDF Results JSON string
|
|
466
470
|
*/
|
|
467
|
-
declare function convertSplunkToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
471
|
+
export declare function convertSplunkToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
468
472
|
//#endregion
|
|
469
473
|
//#region converters/hdf-to-xml/typescript/converter.d.ts
|
|
470
474
|
/**
|
|
@@ -473,10 +477,10 @@ declare function convertSplunkToHdf(input: string, converterVersion?: string): P
|
|
|
473
477
|
* @param input HDF JSON string
|
|
474
478
|
* @returns XML string
|
|
475
479
|
*/
|
|
476
|
-
declare function convertHdfToXml(input: string): string;
|
|
480
|
+
export declare function convertHdfToXml(input: string): string;
|
|
477
481
|
//#endregion
|
|
478
482
|
//#region converters/gitlab-to-hdf/typescript/converter.d.ts
|
|
479
|
-
declare function convertGitlabToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
483
|
+
export declare function convertGitlabToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
480
484
|
//#endregion
|
|
481
485
|
//#region converters/trivy-to-hdf/typescript/converter.d.ts
|
|
482
486
|
/**
|
|
@@ -484,7 +488,7 @@ declare function convertGitlabToHdf(input: string, converterVersion?: string): P
|
|
|
484
488
|
* parsed here; SARIF / CycloneDX / ASFF / GitLab are delegated to their
|
|
485
489
|
* converters. TypeScript peer of shared/go/../trivy-to-hdf converter.go.
|
|
486
490
|
*/
|
|
487
|
-
declare function convertTrivyToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
491
|
+
export declare function convertTrivyToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
488
492
|
//#endregion
|
|
489
493
|
//#region converters/trufflehog-to-hdf/typescript/converter.d.ts
|
|
490
494
|
/**
|
|
@@ -494,7 +498,7 @@ declare function convertTrivyToHdf(input: string, converterVersion?: string): Pr
|
|
|
494
498
|
* @param input - TruffleHog JSON/NDJSON string
|
|
495
499
|
* @returns HDF JSON string
|
|
496
500
|
*/
|
|
497
|
-
declare function convertTrufflehogToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
501
|
+
export declare function convertTrufflehogToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
498
502
|
//#endregion
|
|
499
503
|
//#region converters/hipcheck-to-hdf/typescript/converter.d.ts
|
|
500
504
|
/**
|
|
@@ -503,7 +507,7 @@ declare function convertTrufflehogToHdf(input: string, converterVersion?: string
|
|
|
503
507
|
* @param input - Hipcheck JSON report string
|
|
504
508
|
* @returns HDF JSON string
|
|
505
509
|
*/
|
|
506
|
-
declare function convertHipcheckToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
510
|
+
export declare function convertHipcheckToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
507
511
|
//#endregion
|
|
508
512
|
//#region converters/burpsuite-to-hdf/typescript/converter.d.ts
|
|
509
513
|
/**
|
|
@@ -515,7 +519,7 @@ declare function convertHipcheckToHdf(input: string, converterVersion?: string):
|
|
|
515
519
|
* @param input - BurpSuite XML string
|
|
516
520
|
* @returns HDF JSON string
|
|
517
521
|
*/
|
|
518
|
-
declare function convertBurpsuiteToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
522
|
+
export declare function convertBurpsuiteToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
519
523
|
//#endregion
|
|
520
524
|
//#region converters/dbprotect-to-hdf/typescript/converter.d.ts
|
|
521
525
|
/**
|
|
@@ -526,7 +530,7 @@ declare function convertBurpsuiteToHdf(input: string, converterVersion?: string)
|
|
|
526
530
|
* @param input - DBProtect XML string
|
|
527
531
|
* @returns HDF JSON string
|
|
528
532
|
*/
|
|
529
|
-
declare function convertDbprotectToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
533
|
+
export declare function convertDbprotectToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
530
534
|
//#endregion
|
|
531
535
|
//#region converters/twistlock-to-hdf/typescript/converter.d.ts
|
|
532
536
|
/**
|
|
@@ -538,7 +542,7 @@ declare function convertDbprotectToHdf(input: string, converterVersion?: string)
|
|
|
538
542
|
* @param input - Twistlock JSON string
|
|
539
543
|
* @returns HDF JSON string
|
|
540
544
|
*/
|
|
541
|
-
declare function convertTwistlockToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
545
|
+
export declare function convertTwistlockToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
542
546
|
//#endregion
|
|
543
547
|
//#region converters/deptrack-to-hdf/typescript/converter.d.ts
|
|
544
548
|
/**
|
|
@@ -547,7 +551,7 @@ declare function convertTwistlockToHdf(input: string, converterVersion?: string)
|
|
|
547
551
|
* @param input - Dependency-Track FPF JSON string
|
|
548
552
|
* @returns HDF JSON string
|
|
549
553
|
*/
|
|
550
|
-
declare function convertDeptrackToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
554
|
+
export declare function convertDeptrackToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
551
555
|
//#endregion
|
|
552
556
|
//#region converters/jfrog-xray-to-hdf/typescript/converter.d.ts
|
|
553
557
|
/**
|
|
@@ -556,7 +560,7 @@ declare function convertDeptrackToHdf(input: string, converterVersion?: string):
|
|
|
556
560
|
* @param input - JFrog Xray JSON string
|
|
557
561
|
* @returns HDF JSON string
|
|
558
562
|
*/
|
|
559
|
-
declare function convertJfrogXrayToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
563
|
+
export declare function convertJfrogXrayToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
560
564
|
//#endregion
|
|
561
565
|
//#region converters/neuvector-to-hdf/typescript/converter.d.ts
|
|
562
566
|
/**
|
|
@@ -573,7 +577,7 @@ declare function convertJfrogXrayToHdf(input: string, converterVersion?: string)
|
|
|
573
577
|
* @param input - NeuVector scan JSON string
|
|
574
578
|
* @returns HDF JSON string
|
|
575
579
|
*/
|
|
576
|
-
declare function convertNeuvectorToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
580
|
+
export declare function convertNeuvectorToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
577
581
|
//#endregion
|
|
578
582
|
//#region converters/fortify-to-hdf/typescript/converter.d.ts
|
|
579
583
|
/**
|
|
@@ -586,7 +590,7 @@ declare function convertNeuvectorToHdf(input: string, converterVersion?: string)
|
|
|
586
590
|
* @param input - Fortify FVDL XML string
|
|
587
591
|
* @returns HDF JSON string
|
|
588
592
|
*/
|
|
589
|
-
declare function convertFortifyToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
593
|
+
export declare function convertFortifyToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
590
594
|
//#endregion
|
|
591
595
|
//#region converters/prisma-to-hdf/typescript/converter.d.ts
|
|
592
596
|
/**
|
|
@@ -603,7 +607,7 @@ declare function convertFortifyToHdf(input: string, converterVersion?: string):
|
|
|
603
607
|
* @param input - Prisma Cloud CSV string
|
|
604
608
|
* @returns HDF JSON string
|
|
605
609
|
*/
|
|
606
|
-
declare function convertPrismaToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
610
|
+
export declare function convertPrismaToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
607
611
|
//#endregion
|
|
608
612
|
//#region converters/netsparker-to-hdf/typescript/converter.d.ts
|
|
609
613
|
/**
|
|
@@ -613,7 +617,7 @@ declare function convertPrismaToHdf(input: string, converterVersion?: string): P
|
|
|
613
617
|
* @param input - Netsparker/Invicti XML string
|
|
614
618
|
* @returns HDF JSON string
|
|
615
619
|
*/
|
|
616
|
-
declare function convertNetsparkerToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
620
|
+
export declare function convertNetsparkerToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
617
621
|
//#endregion
|
|
618
622
|
//#region converters/scoutsuite-to-hdf/typescript/converter.d.ts
|
|
619
623
|
/**
|
|
@@ -623,7 +627,7 @@ declare function convertNetsparkerToHdf(input: string, converterVersion?: string
|
|
|
623
627
|
* @param input - ScoutSuite JS/JSON string
|
|
624
628
|
* @returns HDF JSON string
|
|
625
629
|
*/
|
|
626
|
-
declare function convertScoutsuiteToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
630
|
+
export declare function convertScoutsuiteToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
627
631
|
//#endregion
|
|
628
632
|
//#region converters/conveyor-to-hdf/typescript/converter.d.ts
|
|
629
633
|
/**
|
|
@@ -633,7 +637,7 @@ declare function convertScoutsuiteToHdf(input: string, converterVersion?: string
|
|
|
633
637
|
* @param input - Conveyor JSON string
|
|
634
638
|
* @returns HDF JSON string
|
|
635
639
|
*/
|
|
636
|
-
declare function convertConveyorToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
640
|
+
export declare function convertConveyorToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
637
641
|
//#endregion
|
|
638
642
|
//#region converters/veracode-to-hdf/typescript/converter.d.ts
|
|
639
643
|
/**
|
|
@@ -654,7 +658,7 @@ declare function convertConveyorToHdf(input: string, converterVersion?: string):
|
|
|
654
658
|
* @param input - Veracode DetailedReport XML string
|
|
655
659
|
* @returns HDF JSON string
|
|
656
660
|
*/
|
|
657
|
-
declare function convertVeracodeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
661
|
+
export declare function convertVeracodeToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
658
662
|
//#endregion
|
|
659
663
|
//#region converters/msft-secure-score-to-hdf/typescript/converter.d.ts
|
|
660
664
|
/**
|
|
@@ -666,7 +670,7 @@ declare function convertVeracodeToHdf(input: string, converterVersion?: string):
|
|
|
666
670
|
* @param input - Combined JSON string with secureScore and profiles
|
|
667
671
|
* @returns HDF JSON string
|
|
668
672
|
*/
|
|
669
|
-
declare function convertMsftSecureScoreToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
673
|
+
export declare function convertMsftSecureScoreToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
670
674
|
//#endregion
|
|
671
675
|
//#region converters/msft-defender-devops-to-hdf/typescript/converter.d.ts
|
|
672
676
|
/**
|
|
@@ -674,7 +678,7 @@ declare function convertMsftSecureScoreToHdf(input: string, converterVersion?: s
|
|
|
674
678
|
* Delegates base conversion to the generic SARIF converter and enriches
|
|
675
679
|
* the output with MSDO-specific metadata.
|
|
676
680
|
*/
|
|
677
|
-
declare function convertMsftDefenderDevopsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
681
|
+
export declare function convertMsftDefenderDevopsToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
678
682
|
//#endregion
|
|
679
683
|
//#region converters/msft-defender-cloud-to-hdf/typescript/converter.d.ts
|
|
680
684
|
/**
|
|
@@ -683,7 +687,7 @@ declare function convertMsftDefenderDevopsToHdf(input: string, converterVersion?
|
|
|
683
687
|
* @param input - JSON string containing Azure Security Assessments API response
|
|
684
688
|
* @returns HDF JSON string
|
|
685
689
|
*/
|
|
686
|
-
declare function convertMsftDefenderCloudToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
690
|
+
export declare function convertMsftDefenderCloudToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
687
691
|
//#endregion
|
|
688
692
|
//#region converters/msft-defender-endpoint-to-hdf/typescript/converter.d.ts
|
|
689
693
|
/**
|
|
@@ -693,7 +697,7 @@ declare function convertMsftDefenderCloudToHdf(input: string, converterVersion?:
|
|
|
693
697
|
* @param input - JSON string of MDE alert response
|
|
694
698
|
* @returns HDF JSON string
|
|
695
699
|
*/
|
|
696
|
-
declare function convertMsftDefenderEndpointToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
700
|
+
export declare function convertMsftDefenderEndpointToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
697
701
|
//#endregion
|
|
698
702
|
//#region converters/hdf-to-xccdf/typescript/converter.d.ts
|
|
699
703
|
/**
|
|
@@ -702,7 +706,7 @@ declare function convertMsftDefenderEndpointToHdf(input: string, converterVersio
|
|
|
702
706
|
* @param input - HDF Results JSON string
|
|
703
707
|
* @returns XCCDF 1.2 XML string
|
|
704
708
|
*/
|
|
705
|
-
declare function convertHdfToXccdf(input: string): string;
|
|
709
|
+
export declare function convertHdfToXccdf(input: string): string;
|
|
706
710
|
//#endregion
|
|
707
711
|
//#region converters/hdf-to-oscal-sar/typescript/converter.d.ts
|
|
708
712
|
/**
|
|
@@ -717,13 +721,20 @@ declare function convertHdfToXccdf(input: string): string;
|
|
|
717
721
|
* @param input - HDF Results JSON string
|
|
718
722
|
* @returns OSCAL SAR JSON string
|
|
719
723
|
*/
|
|
720
|
-
declare function convertHdfToOscalSar(input: string): Promise<string>;
|
|
724
|
+
export declare function convertHdfToOscalSar(input: string): Promise<string>;
|
|
721
725
|
//#endregion
|
|
722
726
|
//#region converters/hdf-to-oscal-poam/typescript/converter.d.ts
|
|
723
727
|
/**
|
|
724
728
|
* Converts HDF Amendments to OSCAL Plan of Action and Milestones (POA&M) format.
|
|
725
729
|
*
|
|
726
730
|
* This is the reverse direction of the oscal-poam to HDF converter.
|
|
731
|
+
*
|
|
732
|
+
* Every amendments field has an OSCAL home the importer reads back exactly
|
|
733
|
+
* (ADR-0014 §4.6), with four exclusions: the document integrity and signature,
|
|
734
|
+
* the generator (the importer stamps its own), and each override's signature and
|
|
735
|
+
* previousChecksum. A signature covers the original HDF bytes and the checksum
|
|
736
|
+
* chain covers document order; neither survives a format change, and the
|
|
737
|
+
* importer re-chains the overrides it reads.
|
|
727
738
|
*/
|
|
728
739
|
/**
|
|
729
740
|
* Convert HDF Amendments JSON to OSCAL POA&M JSON.
|
|
@@ -731,31 +742,31 @@ declare function convertHdfToOscalSar(input: string): Promise<string>;
|
|
|
731
742
|
* @param input - HDF Amendments JSON string
|
|
732
743
|
* @returns OSCAL POA&M JSON string
|
|
733
744
|
*/
|
|
734
|
-
declare function convertHdfToOscalPoam(input: string): Promise<string>;
|
|
745
|
+
export declare function convertHdfToOscalPoam(input: string): Promise<string>;
|
|
735
746
|
//#endregion
|
|
736
747
|
//#region converters/ionchannel-to-hdf/typescript/converter.d.ts
|
|
737
|
-
declare function convertIonchannelToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
748
|
+
export declare function convertIonchannelToHdf(input: string, converterVersion?: string): Promise<string>;
|
|
738
749
|
//#endregion
|
|
739
750
|
//#region converters/openvex-to-hdf/typescript/converter.d.ts
|
|
740
|
-
declare function convertOpenVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
751
|
+
export declare function convertOpenVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
741
752
|
//#endregion
|
|
742
753
|
//#region converters/csaf-vex-to-hdf/typescript/converter.d.ts
|
|
743
|
-
declare function convertCsafVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
754
|
+
export declare function convertCsafVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
744
755
|
//#endregion
|
|
745
756
|
//#region converters/cyclonedx-vex-to-hdf/typescript/converter.d.ts
|
|
746
|
-
declare function convertCyclonedxVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
757
|
+
export declare function convertCyclonedxVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
747
758
|
//#endregion
|
|
748
759
|
//#region converters/spdx-vex-to-hdf/typescript/converter.d.ts
|
|
749
|
-
declare function convertSpdxVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
760
|
+
export declare function convertSpdxVexToHdf(input: string, converterVersion?: string): Promise<HDFAmendments>;
|
|
750
761
|
//#endregion
|
|
751
762
|
//#region converters/hdf-to-csaf-vex/typescript/converter.d.ts
|
|
752
|
-
declare function convertHdfToCsafVex(input: string, converterVersion: string): string;
|
|
763
|
+
export declare function convertHdfToCsafVex(input: string, converterVersion: string): string;
|
|
753
764
|
//#endregion
|
|
754
765
|
//#region converters/hdf-to-openvex/typescript/converter.d.ts
|
|
755
|
-
declare function convertHdfToOpenVex(input: string, converterVersion: string): Promise<string>;
|
|
766
|
+
export declare function convertHdfToOpenVex(input: string, converterVersion: string): Promise<string>;
|
|
756
767
|
//#endregion
|
|
757
768
|
//#region converters/hdf-to-cyclonedx-vex/typescript/converter.d.ts
|
|
758
|
-
declare function convertHdfToCyclonedxVex(input: string, converterVersion: string): Promise<string>;
|
|
769
|
+
export declare function convertHdfToCyclonedxVex(input: string, converterVersion: string): Promise<string>;
|
|
759
770
|
//#endregion
|
|
760
771
|
//#region converters/oscal-to-hdf/typescript/detect.d.ts
|
|
761
772
|
/**
|
|
@@ -771,7 +782,7 @@ type OscalDocumentType = 'catalog' | 'profile' | 'component-definition' | 'syste
|
|
|
771
782
|
*
|
|
772
783
|
* @throws Error if the input is not valid OSCAL
|
|
773
784
|
*/
|
|
774
|
-
declare function detectOscalDocumentType(input: string): OscalDocumentType;
|
|
785
|
+
export declare function detectOscalDocumentType(input: string): OscalDocumentType;
|
|
775
786
|
//#endregion
|
|
776
787
|
//#region converters/oscal-to-hdf/typescript/converter-catalog.d.ts
|
|
777
788
|
/**
|
|
@@ -780,7 +791,7 @@ declare function detectOscalDocumentType(input: string): OscalDocumentType;
|
|
|
780
791
|
* @param input - Raw JSON string containing an OSCAL catalog
|
|
781
792
|
* @returns HDF Baseline JSON string
|
|
782
793
|
*/
|
|
783
|
-
declare function convertOscalCatalogToHdf(input: string): Promise<string>;
|
|
794
|
+
export declare function convertOscalCatalogToHdf(input: string): Promise<string>;
|
|
784
795
|
//#endregion
|
|
785
796
|
//#region converters/oscal-to-hdf/typescript/converter-profile.d.ts
|
|
786
797
|
/**
|
|
@@ -807,7 +818,7 @@ declare function convertOscalCatalogToHdf(input: string): Promise<string>;
|
|
|
807
818
|
* @param catalogInput - Raw JSON string containing an OSCAL catalog
|
|
808
819
|
* @returns HDF Baseline JSON string
|
|
809
820
|
*/
|
|
810
|
-
declare function convertOscalProfileToHdf(profileInput: string, catalogInput: string): Promise<string>;
|
|
821
|
+
export declare function convertOscalProfileToHdf(profileInput: string, catalogInput: string): Promise<string>;
|
|
811
822
|
//#endregion
|
|
812
823
|
//#region converters/oscal-to-hdf/typescript/converter-component.d.ts
|
|
813
824
|
/**
|
|
@@ -821,7 +832,7 @@ declare function convertOscalProfileToHdf(profileInput: string, catalogInput: st
|
|
|
821
832
|
* @param input - Raw JSON string containing an OSCAL component-definition
|
|
822
833
|
* @returns HDF Baseline JSON string
|
|
823
834
|
*/
|
|
824
|
-
declare function convertOscalComponentToHdf(input: string): Promise<string>;
|
|
835
|
+
export declare function convertOscalComponentToHdf(input: string): Promise<string>;
|
|
825
836
|
//#endregion
|
|
826
837
|
//#region converters/oscal-to-hdf/typescript/converter-ssp.d.ts
|
|
827
838
|
/**
|
|
@@ -835,7 +846,7 @@ declare function convertOscalComponentToHdf(input: string): Promise<string>;
|
|
|
835
846
|
* @param input - Raw JSON string containing an OSCAL SSP
|
|
836
847
|
* @returns HDF System JSON string
|
|
837
848
|
*/
|
|
838
|
-
declare function convertOscalSspToHdf(input: string): Promise<string>;
|
|
849
|
+
export declare function convertOscalSspToHdf(input: string): Promise<string>;
|
|
839
850
|
//#endregion
|
|
840
851
|
//#region converters/oscal-to-hdf/typescript/converter-sap.d.ts
|
|
841
852
|
/**
|
|
@@ -849,12 +860,18 @@ declare function convertOscalSspToHdf(input: string): Promise<string>;
|
|
|
849
860
|
* @param input - Raw JSON string containing an OSCAL assessment-plan
|
|
850
861
|
* @returns HDF Plan JSON string
|
|
851
862
|
*/
|
|
852
|
-
declare function convertOscalSapToHdf(input: string): Promise<string>;
|
|
863
|
+
export declare function convertOscalSapToHdf(input: string): Promise<string>;
|
|
853
864
|
//#endregion
|
|
854
865
|
//#region converters/oscal-to-hdf/typescript/converter-poam.d.ts
|
|
855
866
|
/**
|
|
856
867
|
* OSCAL Plan of Action and Milestones (POA&M) to HDF Amendments converter.
|
|
857
868
|
*
|
|
869
|
+
* A POA&M hdf-to-oscal-poam produced returns every amendments field it carries
|
|
870
|
+
* (ADR-0014 §4.6), apart from the integrity fields and generator that contract
|
|
871
|
+
* excludes. Foreign POA&Ms, and HDF exports from before the ADR (§4.3), keep the
|
|
872
|
+
* mapping they had before it: type "poam", with their own extension props not
|
|
873
|
+
* carried (§3.6).
|
|
874
|
+
*
|
|
858
875
|
* Mirrors the Go implementation in converters/oscal-to-hdf/go/converter_poam.go.
|
|
859
876
|
*/
|
|
860
877
|
/**
|
|
@@ -863,21 +880,16 @@ declare function convertOscalSapToHdf(input: string): Promise<string>;
|
|
|
863
880
|
* @param input - Raw JSON string containing an OSCAL POA&M
|
|
864
881
|
* @returns HDF Amendments JSON string
|
|
865
882
|
*/
|
|
866
|
-
declare function convertOscalPoamToHdf(input: string): Promise<string>;
|
|
883
|
+
export declare function convertOscalPoamToHdf(input: string): Promise<string>;
|
|
867
884
|
//#endregion
|
|
868
885
|
//#region converters/oscal-to-hdf/typescript/converter-sar.d.ts
|
|
869
|
-
/**
|
|
870
|
-
* OSCAL Assessment Results (SAR) to HDF Results converter.
|
|
871
|
-
*
|
|
872
|
-
* Mirrors the Go implementation in converters/oscal-to-hdf/go/converter_sar.go.
|
|
873
|
-
*/
|
|
874
886
|
/**
|
|
875
887
|
* Converts an OSCAL Assessment Results (SAR) document to HDF Results JSON.
|
|
876
888
|
*
|
|
877
889
|
* @param input - Raw JSON string containing OSCAL assessment-results
|
|
878
890
|
* @returns HDF Results JSON string
|
|
879
891
|
*/
|
|
880
|
-
declare function convertOscalSarToHdf(input: string): Promise<string>;
|
|
892
|
+
export declare function convertOscalSarToHdf(input: string): Promise<string>;
|
|
881
893
|
//#endregion
|
|
882
894
|
//#region shared/typescript/enrichStix.d.ts
|
|
883
895
|
/** Options for the enrich pass. The empty object is the informational-only pass. */
|
|
@@ -906,7 +918,7 @@ interface EnrichOptions {
|
|
|
906
918
|
* every pre-existing field, including timestamp strings, round-trips unchanged.
|
|
907
919
|
* TypeScript peer of shared/go/enrich_stix.go (kept at parity).
|
|
908
920
|
*/
|
|
909
|
-
declare function enrichStix(resultsInput: string, bundleInput: string, opts?: EnrichOptions): string;
|
|
921
|
+
export declare function enrichStix(resultsInput: string, bundleInput: string, opts?: EnrichOptions): string;
|
|
910
922
|
//#endregion
|
|
911
923
|
//#region shared/typescript/stix.d.ts
|
|
912
924
|
type StixObject = Record<string, unknown>;
|
|
@@ -916,9 +928,9 @@ interface StixBundle {
|
|
|
916
928
|
objects: StixObject[];
|
|
917
929
|
}
|
|
918
930
|
/** Parse and validate a STIX 2.1 bundle. Objects are kept raw for lossless carriage. */
|
|
919
|
-
declare function parseStixBundle(input: string): StixBundle;
|
|
931
|
+
export declare function parseStixBundle(input: string): StixBundle;
|
|
920
932
|
/** Report whether the input looks like a STIX 2.1 bundle, without throwing. */
|
|
921
|
-
declare function detectStixBundle(input: string): boolean;
|
|
933
|
+
export declare function detectStixBundle(input: string): boolean;
|
|
922
934
|
//#endregion
|
|
923
|
-
export { type EnrichOptions, type LegacyHDFResults as HDFV1Results, type LegacyHDFResults, type HDFV2Results,
|
|
935
|
+
export { type EnrichOptions, type LegacyHDFResults as HDFV1Results, type LegacyHDFResults, type HDFV2Results, convertLegacyHdf as convertV1ToV2, isLegacyHdf as isHDFV1 };
|
|
924
936
|
//# sourceMappingURL=index.d.ts.map
|