@mitre/hdf-schema 3.3.2 → 3.4.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/dist/ts/hdf.js CHANGED
@@ -34,10 +34,12 @@ export var InputType;
34
34
  /**
35
35
  * The hash algorithm used for the checksum.
36
36
  *
37
- * Supported cryptographic hash algorithms for checksums and integrity verification.
37
+ * Supported cryptographic hash algorithms for checksums and integrity verification. blake3
38
+ * covers container-image and other artifact digests that use it.
38
39
  */
39
40
  export var HashAlgorithm;
40
41
  (function (HashAlgorithm) {
42
+ HashAlgorithm["Blake3"] = "blake3";
41
43
  HashAlgorithm["Sha256"] = "sha256";
42
44
  HashAlgorithm["Sha384"] = "sha384";
43
45
  HashAlgorithm["Sha512"] = "sha512";
@@ -180,11 +182,16 @@ export var ResultStatus;
180
182
  })(ResultStatus || (ResultStatus = {}));
181
183
  /**
182
184
  * The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
183
- * 'system' for automated systems, 'simple' for basic string identifiers without additional
184
- * classification, or 'other' for custom identity systems.
185
+ * 'system' for deterministic non-interactive automation (CI jobs, cron, scanners), 'agent'
186
+ * for an AI/LLM agent acting with autonomy — kept distinct from 'system' so auditors can
187
+ * apply AI-specific scrutiny (e.g. 'an LLM proposed this' vs a deterministic job) and
188
+ * satisfy AI-source disclosure under frameworks like the EU AI Act and NIST AI RMF,
189
+ * 'simple' for basic string identifiers without additional classification, or 'other' for
190
+ * custom identity systems.
185
191
  */
186
192
  export var IdentityType;
187
193
  (function (IdentityType) {
194
+ IdentityType["Agent"] = "agent";
188
195
  IdentityType["Email"] = "email";
189
196
  IdentityType["Other"] = "other";
190
197
  IdentityType["Simple"] = "simple";
@@ -298,6 +305,29 @@ export var VerificationMethodEnum;
298
305
  VerificationMethodEnum["ManualByDesign"] = "manual-by-design";
299
306
  VerificationMethodEnum["ManualPendingAutomation"] = "manual-pending-automation";
300
307
  })(VerificationMethodEnum || (VerificationMethodEnum = {}));
308
+ /**
309
+ * Relationship of this dataset to baseDatasetRefs, parallel to the model extension's
310
+ * adaptationType. Minimal + extensible: filtered (subset by rule), augmented
311
+ * (added/synthesized records), merged (union of sources), sampled (statistical draw).
312
+ */
313
+ export var DatasetDerivationType;
314
+ (function (DatasetDerivationType) {
315
+ DatasetDerivationType["Augmented"] = "augmented";
316
+ DatasetDerivationType["Filtered"] = "filtered";
317
+ DatasetDerivationType["Merged"] = "merged";
318
+ DatasetDerivationType["Sampled"] = "sampled";
319
+ })(DatasetDerivationType || (DatasetDerivationType = {}));
320
+ /**
321
+ * Lineage relationship to baseModelRef, adopting Hugging Face's base_model_relation
322
+ * vocabulary (the only typed lineage enum in the ecosystem).
323
+ */
324
+ export var ModelAdaptationType;
325
+ (function (ModelAdaptationType) {
326
+ ModelAdaptationType["Adapter"] = "adapter";
327
+ ModelAdaptationType["Finetune"] = "finetune";
328
+ ModelAdaptationType["Merge"] = "merge";
329
+ ModelAdaptationType["Quantized"] = "quantized";
330
+ })(ModelAdaptationType || (ModelAdaptationType = {}));
301
331
  export var CloudProvider;
302
332
  (function (CloudProvider) {
303
333
  CloudProvider["Aws"] = "aws";
@@ -307,18 +337,12 @@ export var CloudProvider;
307
337
  CloudProvider["Other"] = "other";
308
338
  })(CloudProvider || (CloudProvider = {}));
309
339
  /**
310
- * Format of the SBOM (embedded or referenced). Required when sbom or sbomRef is present.
311
- */
312
- export var SBOMFormat;
313
- (function (SBOMFormat) {
314
- SBOMFormat["Cyclonedx"] = "cyclonedx";
315
- SBOMFormat["Spdx"] = "spdx";
316
- })(SBOMFormat || (SBOMFormat = {}));
317
- /**
318
- * Component type discriminator. Same values as Target types.
340
+ * Component type discriminator. Same values as Target types, plus aiModel and dataset (thin
341
+ * AI subject components whose detail lives in an attached ai-model / dataset BOM).
319
342
  */
320
343
  export var TargetType;
321
344
  (function (TargetType) {
345
+ TargetType["AIModel"] = "aiModel";
322
346
  TargetType["Application"] = "application";
323
347
  TargetType["Artifact"] = "artifact";
324
348
  TargetType["CloudAccount"] = "cloudAccount";
@@ -327,6 +351,7 @@ export var TargetType;
327
351
  TargetType["ContainerInstance"] = "containerInstance";
328
352
  TargetType["ContainerPlatform"] = "containerPlatform";
329
353
  TargetType["Database"] = "database";
354
+ TargetType["Dataset"] = "dataset";
330
355
  TargetType["Host"] = "host";
331
356
  TargetType["Network"] = "network";
332
357
  TargetType["Repository"] = "repository";
@@ -550,15 +575,18 @@ export var PlanType;
550
575
  /**
551
576
  * The type of HDF document being referenced.
552
577
  *
553
- * The type of document referenced in the evidence package.
578
+ * The type of document referenced in the evidence package. 'bom' covers any
579
+ * Bill-of-Materials/manifest document (SBOM, AI model/dataset, and reserved future kinds) —
580
+ * its specific kind is carried by the referenced document's bomType, not by a per-kind
581
+ * Content_Type value.
554
582
  */
555
583
  export var ContentType;
556
584
  (function (ContentType) {
585
+ ContentType["BOM"] = "bom";
557
586
  ContentType["HdfAmendments"] = "hdf-amendments";
558
587
  ContentType["HdfBaseline"] = "hdf-baseline";
559
588
  ContentType["HdfComparison"] = "hdf-comparison";
560
589
  ContentType["HdfPlan"] = "hdf-plan";
561
590
  ContentType["HdfResults"] = "hdf-results";
562
591
  ContentType["HdfSystem"] = "hdf-system";
563
- ContentType["Sbom"] = "sbom";
564
592
  })(ContentType || (ContentType = {}));