@mitre/hdf-schema 3.4.3 → 3.5.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/README.md +15 -2
- package/dist/go/hdf.go +535 -271
- package/dist/helpers.d.ts +56 -1
- package/dist/helpers.js +98 -38
- package/dist/index.d.ts +2 -0
- package/dist/index.js +28 -26
- package/dist/schemas/hdf-amendments.schema.json +235 -48
- package/dist/schemas/hdf-baseline.schema.json +240 -53
- package/dist/schemas/hdf-comparison.schema.json +1948 -1504
- package/dist/schemas/hdf-evidence-package.schema.json +242 -48
- package/dist/schemas/hdf-plan.schema.json +692 -498
- package/dist/schemas/hdf-requirement-change-event.schema.json +5290 -0
- package/dist/schemas/hdf-results.schema.json +1650 -1215
- package/dist/schemas/hdf-system.schema.json +262 -68
- package/dist/ts/hdf.d.ts +420 -73
- package/dist/ts/hdf.js +65 -30
- package/dist/ts/hdf.ts +428 -77
- package/package.json +2 -2
package/dist/ts/hdf.js
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
|
|
3
|
+
* 'system' for deterministic non-interactive automation (CI jobs, cron, scanners), 'agent'
|
|
4
|
+
* for an AI/LLM agent acting with autonomy — kept distinct from 'system' so auditors can
|
|
5
|
+
* apply AI-specific scrutiny (e.g. 'an LLM proposed this' vs a deterministic job) and
|
|
6
|
+
* satisfy AI-source disclosure under frameworks like the EU AI Act and NIST AI RMF,
|
|
7
|
+
* 'simple' for basic string identifiers without additional classification, or 'other' for
|
|
8
|
+
* custom identity systems.
|
|
9
|
+
*/
|
|
10
|
+
export var IdentityType;
|
|
11
|
+
(function (IdentityType) {
|
|
12
|
+
IdentityType["Agent"] = "agent";
|
|
13
|
+
IdentityType["Email"] = "email";
|
|
14
|
+
IdentityType["Other"] = "other";
|
|
15
|
+
IdentityType["Simple"] = "simple";
|
|
16
|
+
IdentityType["System"] = "system";
|
|
17
|
+
IdentityType["Username"] = "username";
|
|
18
|
+
})(IdentityType || (IdentityType = {}));
|
|
19
|
+
/**
|
|
20
|
+
* Supported cryptographic hash algorithms for checksums and integrity verification. blake3 covers
|
|
21
|
+
* container-image and other artifact digests that use it.
|
|
22
|
+
*/
|
|
23
|
+
export var HashAlgorithm;
|
|
24
|
+
(function (HashAlgorithm) {
|
|
25
|
+
HashAlgorithm["Blake3"] = "blake3";
|
|
26
|
+
HashAlgorithm["Sha256"] = "sha256";
|
|
27
|
+
HashAlgorithm["Sha384"] = "sha384";
|
|
28
|
+
HashAlgorithm["Sha512"] = "sha512";
|
|
29
|
+
})(HashAlgorithm || (HashAlgorithm = {}));
|
|
1
30
|
/**
|
|
2
31
|
* Comparison operator for evaluating the input value against observed values. Numeric:
|
|
3
32
|
* eq/ne/lt/le/gt/ge. String: eq/ne/contains/matches. Collection: in/notIn.
|
|
@@ -27,17 +56,6 @@ export var InputType;
|
|
|
27
56
|
InputType["Regexp"] = "Regexp";
|
|
28
57
|
InputType["String"] = "String";
|
|
29
58
|
})(InputType || (InputType = {}));
|
|
30
|
-
/**
|
|
31
|
-
* Supported cryptographic hash algorithms for checksums and integrity verification. blake3 covers
|
|
32
|
-
* container-image and other artifact digests that use it.
|
|
33
|
-
*/
|
|
34
|
-
export var HashAlgorithm;
|
|
35
|
-
(function (HashAlgorithm) {
|
|
36
|
-
HashAlgorithm["Blake3"] = "blake3";
|
|
37
|
-
HashAlgorithm["Sha256"] = "sha256";
|
|
38
|
-
HashAlgorithm["Sha384"] = "sha384";
|
|
39
|
-
HashAlgorithm["Sha512"] = "sha512";
|
|
40
|
-
})(HashAlgorithm || (HashAlgorithm = {}));
|
|
41
59
|
/**
|
|
42
60
|
* The packaging ecosystem the package belongs to. Use 'generic' for hardware, firmware, or
|
|
43
61
|
* anything outside the listed language/OS package managers.
|
|
@@ -147,24 +165,6 @@ export var ResultStatus;
|
|
|
147
165
|
ResultStatus["NotReviewed"] = "notReviewed";
|
|
148
166
|
ResultStatus["Passed"] = "passed";
|
|
149
167
|
})(ResultStatus || (ResultStatus = {}));
|
|
150
|
-
/**
|
|
151
|
-
* The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
|
|
152
|
-
* 'system' for deterministic non-interactive automation (CI jobs, cron, scanners), 'agent'
|
|
153
|
-
* for an AI/LLM agent acting with autonomy — kept distinct from 'system' so auditors can
|
|
154
|
-
* apply AI-specific scrutiny (e.g. 'an LLM proposed this' vs a deterministic job) and
|
|
155
|
-
* satisfy AI-source disclosure under frameworks like the EU AI Act and NIST AI RMF,
|
|
156
|
-
* 'simple' for basic string identifiers without additional classification, or 'other' for
|
|
157
|
-
* custom identity systems.
|
|
158
|
-
*/
|
|
159
|
-
export var IdentityType;
|
|
160
|
-
(function (IdentityType) {
|
|
161
|
-
IdentityType["Agent"] = "agent";
|
|
162
|
-
IdentityType["Email"] = "email";
|
|
163
|
-
IdentityType["Other"] = "other";
|
|
164
|
-
IdentityType["Simple"] = "simple";
|
|
165
|
-
IdentityType["System"] = "system";
|
|
166
|
-
IdentityType["Username"] = "username";
|
|
167
|
-
})(IdentityType || (IdentityType = {}));
|
|
168
168
|
/**
|
|
169
169
|
* The type of evidence being provided.
|
|
170
170
|
*/
|
|
@@ -355,13 +355,18 @@ export var Op;
|
|
|
355
355
|
Op["Replace"] = "replace";
|
|
356
356
|
})(Op || (Op = {}));
|
|
357
357
|
/**
|
|
358
|
-
* The reason a requirement's state changed between sources.
|
|
358
|
+
* The reason a requirement's state changed between sources. 'dispositionChanged' = the governing
|
|
359
|
+
* override type differs between the sources (e.g. a waiver replaced a riskAdjustment);
|
|
360
|
+
* 'effectiveImpactChanged' = the post-override impact score differs while the base impact may be
|
|
361
|
+
* unchanged.
|
|
359
362
|
*/
|
|
360
363
|
export var ChangeReason;
|
|
361
364
|
(function (ChangeReason) {
|
|
362
365
|
ChangeReason["BaselineUpgraded"] = "baselineUpgraded";
|
|
363
366
|
ChangeReason["ConfigChanged"] = "configChanged";
|
|
364
367
|
ChangeReason["ControlMapped"] = "controlMapped";
|
|
368
|
+
ChangeReason["DispositionChanged"] = "dispositionChanged";
|
|
369
|
+
ChangeReason["EffectiveImpactChanged"] = "effectiveImpactChanged";
|
|
365
370
|
ChangeReason["ImpactChanged"] = "impactChanged";
|
|
366
371
|
ChangeReason["MetadataChanged"] = "metadataChanged";
|
|
367
372
|
ChangeReason["OverrideAdded"] = "overrideAdded";
|
|
@@ -518,3 +523,33 @@ export var ContentType;
|
|
|
518
523
|
ContentType["HdfResults"] = "hdf-results";
|
|
519
524
|
ContentType["HdfSystem"] = "hdf-system";
|
|
520
525
|
})(ContentType || (ContentType = {}));
|
|
526
|
+
/**
|
|
527
|
+
* The producer-computable subset of the comparison vocabulary's Change_Reason, value-identical with
|
|
528
|
+
* the parent enum (test-enforced). Batch-only reasons (baselineUpgraded, controlMapped,
|
|
529
|
+
* scannerChanged, targetChanged, metadataChanged) require cross-corpus context and are excluded.
|
|
530
|
+
*/
|
|
531
|
+
export var EventChangeReason;
|
|
532
|
+
(function (EventChangeReason) {
|
|
533
|
+
EventChangeReason["ConfigChanged"] = "configChanged";
|
|
534
|
+
EventChangeReason["ImpactChanged"] = "impactChanged";
|
|
535
|
+
EventChangeReason["OverrideAdded"] = "overrideAdded";
|
|
536
|
+
EventChangeReason["OverrideExpired"] = "overrideExpired";
|
|
537
|
+
EventChangeReason["OverrideModified"] = "overrideModified";
|
|
538
|
+
EventChangeReason["OverrideRemoved"] = "overrideRemoved";
|
|
539
|
+
EventChangeReason["ResultChanged"] = "resultChanged";
|
|
540
|
+
})(EventChangeReason || (EventChangeReason = {}));
|
|
541
|
+
/**
|
|
542
|
+
* The producer-computable subset of the comparison vocabulary's Requirement_State. Kept
|
|
543
|
+
* value-identical with the parent enum (test-enforced): the batch-only states (moved, split,
|
|
544
|
+
* merged) are outputs of cross-document identity resolution a per-key producer cannot compute.
|
|
545
|
+
* Declared as a distinct named type (rather than a $ref intersection) so generated Go/TS types keep
|
|
546
|
+
* stable, distinct enum names.
|
|
547
|
+
*/
|
|
548
|
+
export var EventRequirementState;
|
|
549
|
+
(function (EventRequirementState) {
|
|
550
|
+
EventRequirementState["Absent"] = "absent";
|
|
551
|
+
EventRequirementState["Fixed"] = "fixed";
|
|
552
|
+
EventRequirementState["New"] = "new";
|
|
553
|
+
EventRequirementState["Regressed"] = "regressed";
|
|
554
|
+
EventRequirementState["Updated"] = "updated";
|
|
555
|
+
})(EventRequirementState || (EventRequirementState = {}));
|