@mitre/hdf-schema 3.2.0 → 3.3.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.
Files changed (37) hide show
  1. package/README.md +15 -16
  2. package/dist/go/hdf.go +398 -134
  3. package/dist/helpers.d.ts +1 -1
  4. package/dist/index.d.ts +27 -52
  5. package/dist/index.js +30 -48
  6. package/dist/schemas/hdf-amendments.schema.json +466 -45
  7. package/dist/schemas/hdf-baseline.schema.json +471 -50
  8. package/dist/schemas/hdf-comparison.schema.json +721 -103
  9. package/dist/schemas/hdf-evidence-package.schema.json +465 -44
  10. package/dist/schemas/hdf-plan.schema.json +472 -50
  11. package/dist/schemas/hdf-results.schema.json +678 -80
  12. package/dist/schemas/hdf-system.schema.json +497 -59
  13. package/dist/ts/hdf.d.ts +3562 -0
  14. package/dist/ts/hdf.js +564 -0
  15. package/dist/ts/hdf.ts +3623 -0
  16. package/package.json +18 -17
  17. package/dist/ts/hdf-amendments.d.ts +0 -474
  18. package/dist/ts/hdf-amendments.js +0 -88
  19. package/dist/ts/hdf-amendments.ts +0 -486
  20. package/dist/ts/hdf-baseline.d.ts +0 -549
  21. package/dist/ts/hdf-baseline.js +0 -110
  22. package/dist/ts/hdf-baseline.ts +0 -563
  23. package/dist/ts/hdf-comparison.d.ts +0 -1185
  24. package/dist/ts/hdf-comparison.js +0 -216
  25. package/dist/ts/hdf-comparison.ts +0 -1210
  26. package/dist/ts/hdf-evidence-package.d.ts +0 -348
  27. package/dist/ts/hdf-evidence-package.js +0 -39
  28. package/dist/ts/hdf-evidence-package.ts +0 -356
  29. package/dist/ts/hdf-plan.d.ts +0 -204
  30. package/dist/ts/hdf-plan.js +0 -23
  31. package/dist/ts/hdf-plan.ts +0 -205
  32. package/dist/ts/hdf-results.d.ts +0 -1588
  33. package/dist/ts/hdf-results.js +0 -246
  34. package/dist/ts/hdf-results.ts +0 -1616
  35. package/dist/ts/hdf-system.d.ts +0 -609
  36. package/dist/ts/hdf-system.js +0 -102
  37. package/dist/ts/hdf-system.ts +0 -617
package/dist/helpers.d.ts CHANGED
@@ -14,7 +14,7 @@ import type {
14
14
  ResultStatus,
15
15
  SupportedPlatform,
16
16
  RequirementGroup,
17
- } from '../dist/ts/hdf-results.js';
17
+ } from '../dist/ts/hdf.js';
18
18
 
19
19
  export function createMinimalBaseline(
20
20
  name: string,
package/dist/index.d.ts CHANGED
@@ -13,12 +13,16 @@ export declare const hdfEvidencePackageSchema: Readonly<Record<string, unknown>>
13
13
  export declare const hdfPlanSchema: Readonly<Record<string, unknown>>;
14
14
  export declare const hdfResultsSchema: Readonly<Record<string, unknown>>;
15
15
  export declare const hdfSystemSchema: Readonly<Record<string, unknown>>;
16
+ export declare const affectedPackageSchema: Readonly<Record<string, unknown>>;
16
17
  export declare const amendmentsSchema: Readonly<Record<string, unknown>>;
17
18
  export declare const commonSchema: Readonly<Record<string, unknown>>;
18
19
  export declare const comparisonSchema: Readonly<Record<string, unknown>>;
19
20
  export declare const componentSchema: Readonly<Record<string, unknown>>;
21
+ export declare const cvssSchema: Readonly<Record<string, unknown>>;
20
22
  export declare const dataFlowSchema: Readonly<Record<string, unknown>>;
23
+ export declare const epssSchema: Readonly<Record<string, unknown>>;
21
24
  export declare const extensionsSchema: Readonly<Record<string, unknown>>;
25
+ export declare const kevSchema: Readonly<Record<string, unknown>>;
22
26
  export declare const parameterSchema: Readonly<Record<string, unknown>>;
23
27
  export declare const planSchema: Readonly<Record<string, unknown>>;
24
28
  export declare const platformSchema: Readonly<Record<string, unknown>>;
@@ -28,58 +32,29 @@ export declare const statisticsSchema: Readonly<Record<string, unknown>>;
28
32
  export declare const systemSchema: Readonly<Record<string, unknown>>;
29
33
  export declare const targetSchema: Readonly<Record<string, unknown>>;
30
34
 
31
- // Re-export all types from hdf-results (includes most common types)
32
- export * from './ts/hdf-results.js';
33
-
34
- // Re-export baseline-only types (interfaces not in hdf-results).
35
- // No export * from hdf-baseline — its enums (HashAlgorithm, Severity) duplicate
36
- // hdf-results and cause ambiguous-export collisions.
37
- export type { HdfBaseline, BaselineRequirement } from './ts/hdf-baseline.js';
38
-
39
- // Re-export comparison-specific types (interfaces and enums not in hdf-results).
40
- // No export * from hdf-comparison — shared types duplicate hdf-results.
41
- export type {
42
- HdfComparison, RequirementDiff, ComparisonSummary, Source,
43
- Annotation, BaselineDiff, BaselineRef, ComponentDiff, FieldChange, MatchingConfig,
44
- PackageDiff, ScannerConflict, SeverityBreakdown, StateCounts, PerSourceSummary,
45
- Value,
46
- } from './ts/hdf-comparison.js';
47
- export {
48
- AnnotationCategory, BaselineDiffState, ChangeReason, ComparisonMode,
49
- ConflictResolution, FormatVersion, MatchStrategy, Op, OriginalFormat,
50
- PackageDiffState, RequirementState, SourceRole, Type,
51
- } from './ts/hdf-comparison.js';
52
-
53
- // Re-export system types
54
- // No Component re-export — it's already exported by hdf-results.js via export *
55
- export type {
56
- HdfSystem, InputOverride, ControlDesignation, DataFlow,
57
- } from './ts/hdf-system.js';
58
- export {
59
- AuthorizationStatus, BoundaryDescription, CategorizationLevel, Designation, Direction,
60
- } from './ts/hdf-system.js';
61
-
62
- // Re-export plan types
63
- export type {
64
- HdfPlan, Assessment, Schedule, RunnerConfig,
65
- } from './ts/hdf-plan.js';
66
- export {
67
- PlanType,
68
- } from './ts/hdf-plan.js';
69
-
70
- // Re-export amendments types
71
- // No OverrideType enum — already exported by hdf-results via export *.
72
- export type {
73
- HdfAmendments, StandaloneOverride,
74
- } from './ts/hdf-amendments.js';
75
-
76
- // Re-export evidence-package types
77
- export type {
78
- HdfEvidencePackage, ContentReference, CompletenessCheck, SBOMCoverage,
79
- } from './ts/hdf-evidence-package.js';
80
- export {
81
- ContentType,
82
- } from './ts/hdf-evidence-package.js';
35
+ // When combined hdf.ts is available, ALL types from all 7 schemas are in
36
+ // that single file. No per-file re-exports — mixing module paths causes
37
+ // TypeScript nominal type incompatibility (same interface from different
38
+ // .d.ts files are not assignable to each other).
39
+ export * from './ts/hdf.js';
83
40
 
84
41
  // Re-export helper functions
85
42
  export * from './helpers.js';
43
+
44
+ // ── Deprecated aliases for backward compatibility ──
45
+ // These will be removed in the next major version.
46
+ // Consumers should migrate to HDF* naming (matching schema titles).
47
+ /** @deprecated Use HDFResults */
48
+ export type HdfResults = HDFResults;
49
+ /** @deprecated Use HDFBaseline */
50
+ export type HdfBaseline = HDFBaseline;
51
+ /** @deprecated Use HDFComparison */
52
+ export type HdfComparison = HDFComparison;
53
+ /** @deprecated Use HDFSystem */
54
+ export type HdfSystem = HDFSystem;
55
+ /** @deprecated Use HDFPlan */
56
+ export type HdfPlan = HDFPlan;
57
+ /** @deprecated Use HDFAmendments */
58
+ export type HdfAmendments = HDFAmendments;
59
+ /** @deprecated Use HDFEvidencePackage */
60
+ export type HdfEvidencePackage = HDFEvidencePackage;