@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.
- package/README.md +15 -16
- package/dist/go/hdf.go +398 -134
- package/dist/helpers.d.ts +1 -1
- package/dist/index.d.ts +27 -52
- package/dist/index.js +30 -48
- package/dist/schemas/hdf-amendments.schema.json +466 -45
- package/dist/schemas/hdf-baseline.schema.json +471 -50
- package/dist/schemas/hdf-comparison.schema.json +721 -103
- package/dist/schemas/hdf-evidence-package.schema.json +465 -44
- package/dist/schemas/hdf-plan.schema.json +472 -50
- package/dist/schemas/hdf-results.schema.json +678 -80
- package/dist/schemas/hdf-system.schema.json +497 -59
- package/dist/ts/hdf.d.ts +3562 -0
- package/dist/ts/hdf.js +564 -0
- package/dist/ts/hdf.ts +3623 -0
- package/package.json +18 -17
- package/dist/ts/hdf-amendments.d.ts +0 -474
- package/dist/ts/hdf-amendments.js +0 -88
- package/dist/ts/hdf-amendments.ts +0 -486
- package/dist/ts/hdf-baseline.d.ts +0 -549
- package/dist/ts/hdf-baseline.js +0 -110
- package/dist/ts/hdf-baseline.ts +0 -563
- package/dist/ts/hdf-comparison.d.ts +0 -1185
- package/dist/ts/hdf-comparison.js +0 -216
- package/dist/ts/hdf-comparison.ts +0 -1210
- package/dist/ts/hdf-evidence-package.d.ts +0 -348
- package/dist/ts/hdf-evidence-package.js +0 -39
- package/dist/ts/hdf-evidence-package.ts +0 -356
- package/dist/ts/hdf-plan.d.ts +0 -204
- package/dist/ts/hdf-plan.js +0 -23
- package/dist/ts/hdf-plan.ts +0 -205
- package/dist/ts/hdf-results.d.ts +0 -1588
- package/dist/ts/hdf-results.js +0 -246
- package/dist/ts/hdf-results.ts +0 -1616
- package/dist/ts/hdf-system.d.ts +0 -609
- package/dist/ts/hdf-system.js +0 -102
- package/dist/ts/hdf-system.ts +0 -617
|
@@ -1,356 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bundles references to all HDF documents for audit, authorization, and compliance review.
|
|
3
|
-
* Each content entry references a document by type, URI, and checksum for integrity
|
|
4
|
-
* verification.
|
|
5
|
-
*/
|
|
6
|
-
export interface HdfEvidencePackage {
|
|
7
|
-
/**
|
|
8
|
-
* Summary of assessment completeness and compliance status.
|
|
9
|
-
*/
|
|
10
|
-
completenessCheck?: CompletenessCheck;
|
|
11
|
-
/**
|
|
12
|
-
* References to HDF documents included in this evidence package.
|
|
13
|
-
*/
|
|
14
|
-
contents: ContentReference[];
|
|
15
|
-
/**
|
|
16
|
-
* Description of the evidence package's purpose and scope.
|
|
17
|
-
*/
|
|
18
|
-
description?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Information about the tool that generated this document.
|
|
21
|
-
*/
|
|
22
|
-
generator?: Generator;
|
|
23
|
-
/**
|
|
24
|
-
* Cryptographic integrity information for verifying this evidence package has not been
|
|
25
|
-
* tampered with.
|
|
26
|
-
*/
|
|
27
|
-
integrity?: Integrity;
|
|
28
|
-
/**
|
|
29
|
-
* Optional key-value labels for grouping and querying evidence packages.
|
|
30
|
-
*/
|
|
31
|
-
labels?: { [key: string]: string };
|
|
32
|
-
/**
|
|
33
|
-
* Human-readable name for this evidence package. Example: 'Enterprise Portal ATO Evidence -
|
|
34
|
-
* Q1 2026'.
|
|
35
|
-
*/
|
|
36
|
-
name: string;
|
|
37
|
-
/**
|
|
38
|
-
* Unique identifier for this evidence package. Optional in casual use, expected in
|
|
39
|
-
* production ATO submissions. Auto-generated if omitted during creation.
|
|
40
|
-
*/
|
|
41
|
-
packageId?: string;
|
|
42
|
-
/**
|
|
43
|
-
* URI to the hdf-plan document that drove this assessment. Used for completeness
|
|
44
|
-
* verification — every baseline in the plan should have a corresponding results document in
|
|
45
|
-
* this package.
|
|
46
|
-
*/
|
|
47
|
-
planRef?: string;
|
|
48
|
-
/**
|
|
49
|
-
* When this evidence package was prepared. ISO 8601 format.
|
|
50
|
-
*/
|
|
51
|
-
preparedAt?: Date;
|
|
52
|
-
/**
|
|
53
|
-
* Identity of who prepared this evidence package.
|
|
54
|
-
*/
|
|
55
|
-
preparedBy?: Identity;
|
|
56
|
-
/**
|
|
57
|
-
* Digital signature covering the entire evidence package.
|
|
58
|
-
*/
|
|
59
|
-
signature?: Signature;
|
|
60
|
-
/**
|
|
61
|
-
* URI to the hdf-system document this evidence package covers.
|
|
62
|
-
*/
|
|
63
|
-
systemRef?: string;
|
|
64
|
-
/**
|
|
65
|
-
* Version of this evidence package.
|
|
66
|
-
*/
|
|
67
|
-
version?: string;
|
|
68
|
-
[property: string]: any;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Summary of assessment completeness and compliance status.
|
|
73
|
-
*
|
|
74
|
-
* Informational summary of assessment completeness. Not authoritative — tools should
|
|
75
|
-
* compute these from the referenced documents.
|
|
76
|
-
*/
|
|
77
|
-
export interface CompletenessCheck {
|
|
78
|
-
/**
|
|
79
|
-
* Whether all baselines referenced by system components have assessment results.
|
|
80
|
-
*/
|
|
81
|
-
allBaselinesAssessed?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* Whether all system components have at least one matching target in the results.
|
|
84
|
-
*/
|
|
85
|
-
allComponentsCovered?: boolean;
|
|
86
|
-
/**
|
|
87
|
-
* Overall compliance percentage across all assessments.
|
|
88
|
-
*/
|
|
89
|
-
compliancePercent?: number;
|
|
90
|
-
/**
|
|
91
|
-
* Number of waivers/amendments that have expired.
|
|
92
|
-
*/
|
|
93
|
-
expiredWaivers?: number;
|
|
94
|
-
/**
|
|
95
|
-
* SBOM coverage across system components.
|
|
96
|
-
*/
|
|
97
|
-
sbomCoverage?: SBOMCoverage;
|
|
98
|
-
/**
|
|
99
|
-
* Number of POA&M items that are still open (not completed).
|
|
100
|
-
*/
|
|
101
|
-
unresolvedPoams?: number;
|
|
102
|
-
[property: string]: any;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* SBOM coverage across system components.
|
|
107
|
-
*
|
|
108
|
-
* SBOM coverage statistics for the system.
|
|
109
|
-
*/
|
|
110
|
-
export interface SBOMCoverage {
|
|
111
|
-
/**
|
|
112
|
-
* Number of system components that have an associated SBOM.
|
|
113
|
-
*/
|
|
114
|
-
componentsWithSbom?: number;
|
|
115
|
-
/**
|
|
116
|
-
* Total number of components in the system.
|
|
117
|
-
*/
|
|
118
|
-
totalComponents?: number;
|
|
119
|
-
[property: string]: any;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* A reference to an HDF document or SBOM included in the evidence package.
|
|
124
|
-
*/
|
|
125
|
-
export interface ContentReference {
|
|
126
|
-
/**
|
|
127
|
-
* Cryptographic checksum for verifying the referenced document's integrity.
|
|
128
|
-
*/
|
|
129
|
-
checksum?: Checksum;
|
|
130
|
-
/**
|
|
131
|
-
* componentId of the component this content entry relates to. Use to link SBOMs, results,
|
|
132
|
-
* or other documents to a specific system component.
|
|
133
|
-
*/
|
|
134
|
-
componentRef?: string;
|
|
135
|
-
/**
|
|
136
|
-
* Optional description of this content entry.
|
|
137
|
-
*/
|
|
138
|
-
description?: string;
|
|
139
|
-
/**
|
|
140
|
-
* The type of HDF document being referenced.
|
|
141
|
-
*/
|
|
142
|
-
type: ContentType;
|
|
143
|
-
/**
|
|
144
|
-
* URI to the document. Can be a relative path or absolute URL.
|
|
145
|
-
*/
|
|
146
|
-
uri: string;
|
|
147
|
-
[property: string]: any;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Cryptographic checksum for verifying the referenced document's integrity.
|
|
152
|
-
*
|
|
153
|
-
* Cryptographic checksum for baseline integrity verification.
|
|
154
|
-
*/
|
|
155
|
-
export interface Checksum {
|
|
156
|
-
/**
|
|
157
|
-
* The hash algorithm used for the checksum.
|
|
158
|
-
*/
|
|
159
|
-
algorithm: HashAlgorithm;
|
|
160
|
-
/**
|
|
161
|
-
* The checksum value.
|
|
162
|
-
*/
|
|
163
|
-
value: string;
|
|
164
|
-
[property: string]: any;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* The hash algorithm used for the checksum.
|
|
169
|
-
*
|
|
170
|
-
* Supported cryptographic hash algorithms for checksums and integrity verification.
|
|
171
|
-
*/
|
|
172
|
-
export enum HashAlgorithm {
|
|
173
|
-
Sha256 = "sha256",
|
|
174
|
-
Sha384 = "sha384",
|
|
175
|
-
Sha512 = "sha512",
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* The type of HDF document being referenced.
|
|
180
|
-
*
|
|
181
|
-
* The type of document referenced in the evidence package.
|
|
182
|
-
*/
|
|
183
|
-
export enum ContentType {
|
|
184
|
-
HdfAmendments = "hdf-amendments",
|
|
185
|
-
HdfBaseline = "hdf-baseline",
|
|
186
|
-
HdfComparison = "hdf-comparison",
|
|
187
|
-
HdfPlan = "hdf-plan",
|
|
188
|
-
HdfResults = "hdf-results",
|
|
189
|
-
HdfSystem = "hdf-system",
|
|
190
|
-
Sbom = "sbom",
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Information about the tool that generated this document.
|
|
195
|
-
*
|
|
196
|
-
* Information about the tool that generated this HDF file.
|
|
197
|
-
*/
|
|
198
|
-
export interface Generator {
|
|
199
|
-
/**
|
|
200
|
-
* The name of the software that produced this HDF file. Example: 'gosec-to-hdf'.
|
|
201
|
-
*/
|
|
202
|
-
name: string;
|
|
203
|
-
/**
|
|
204
|
-
* The version of the tool. Example: '5.22.3'.
|
|
205
|
-
*/
|
|
206
|
-
version: string;
|
|
207
|
-
[property: string]: any;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* Cryptographic integrity information for verifying this evidence package has not been
|
|
212
|
-
* tampered with.
|
|
213
|
-
*
|
|
214
|
-
* Cryptographic integrity information for verifying the HDF file has not been tampered
|
|
215
|
-
* with. If algorithm is provided, checksum must also be provided, and vice versa.
|
|
216
|
-
*/
|
|
217
|
-
export interface Integrity {
|
|
218
|
-
/**
|
|
219
|
-
* The hash algorithm used for the checksum.
|
|
220
|
-
*/
|
|
221
|
-
algorithm?: HashAlgorithm;
|
|
222
|
-
/**
|
|
223
|
-
* The checksum value.
|
|
224
|
-
*/
|
|
225
|
-
checksum?: string;
|
|
226
|
-
/**
|
|
227
|
-
* Optional cryptographic signature.
|
|
228
|
-
*/
|
|
229
|
-
signature?: string;
|
|
230
|
-
/**
|
|
231
|
-
* Identifier of who signed this file.
|
|
232
|
-
*/
|
|
233
|
-
signedBy?: string;
|
|
234
|
-
[property: string]: any;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* Identity of who prepared this evidence package.
|
|
239
|
-
*
|
|
240
|
-
* Represents an identity that performed an action, such as capturing evidence or applying
|
|
241
|
-
* an override.
|
|
242
|
-
*
|
|
243
|
-
* The identity that created this signature.
|
|
244
|
-
*/
|
|
245
|
-
export interface Identity {
|
|
246
|
-
/**
|
|
247
|
-
* Optional description of the identity or identity system, particularly useful when type is
|
|
248
|
-
* 'other'.
|
|
249
|
-
*/
|
|
250
|
-
description?: string;
|
|
251
|
-
/**
|
|
252
|
-
* The identifier value. Example: 'user@example.com', 'jdoe', 'automated-scanner-01'.
|
|
253
|
-
*/
|
|
254
|
-
identifier: string;
|
|
255
|
-
/**
|
|
256
|
-
* The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
|
|
257
|
-
* 'system' for automated systems, 'simple' for basic string identifiers without additional
|
|
258
|
-
* classification, or 'other' for custom identity systems.
|
|
259
|
-
*/
|
|
260
|
-
type: Type;
|
|
261
|
-
[property: string]: any;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
/**
|
|
265
|
-
* The type of identifier. Use 'email' for email addresses, 'username' for user accounts,
|
|
266
|
-
* 'system' for automated systems, 'simple' for basic string identifiers without additional
|
|
267
|
-
* classification, or 'other' for custom identity systems.
|
|
268
|
-
*/
|
|
269
|
-
export enum Type {
|
|
270
|
-
Email = "email",
|
|
271
|
-
Other = "other",
|
|
272
|
-
Simple = "simple",
|
|
273
|
-
System = "system",
|
|
274
|
-
Username = "username",
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/**
|
|
278
|
-
* Digital signature covering the entire evidence package.
|
|
279
|
-
*
|
|
280
|
-
* A digital signature following W3C Data Integrity Proofs pattern. Supports hardware
|
|
281
|
-
* security tokens (PKCS#11/PKCS#12), Yubikeys, GPG keys, passkeys, and other cryptographic
|
|
282
|
-
* signing methods via JWK, PEM, or Base58 key formats.
|
|
283
|
-
*/
|
|
284
|
-
export interface Signature {
|
|
285
|
-
/**
|
|
286
|
-
* Challenge value from the verifier, used in challenge-response authentication.
|
|
287
|
-
*/
|
|
288
|
-
challenge?: string;
|
|
289
|
-
/**
|
|
290
|
-
* When the signature was created. ISO 8601 format.
|
|
291
|
-
*/
|
|
292
|
-
created: Date;
|
|
293
|
-
/**
|
|
294
|
-
* The identity that created this signature.
|
|
295
|
-
*/
|
|
296
|
-
creator: Identity;
|
|
297
|
-
/**
|
|
298
|
-
* Domain restriction for the signature, prevents cross-domain replay attacks.
|
|
299
|
-
*/
|
|
300
|
-
domain?: string;
|
|
301
|
-
/**
|
|
302
|
-
* Random value to prevent replay attacks.
|
|
303
|
-
*/
|
|
304
|
-
nonce?: string;
|
|
305
|
-
/**
|
|
306
|
-
* The purpose of this signature. Example: 'attestation', 'authentication',
|
|
307
|
-
* 'assertionMethod'.
|
|
308
|
-
*/
|
|
309
|
-
proofPurpose: string;
|
|
310
|
-
/**
|
|
311
|
-
* The base64-encoded or base58-encoded signature value.
|
|
312
|
-
*/
|
|
313
|
-
signatureValue: string;
|
|
314
|
-
/**
|
|
315
|
-
* The signature suite type. Example: 'JsonWebSignature2020', 'RsaSignature2018',
|
|
316
|
-
* 'Ed25519Signature2020'.
|
|
317
|
-
*/
|
|
318
|
-
type: string;
|
|
319
|
-
/**
|
|
320
|
-
* The verification method containing the public key for signature verification.
|
|
321
|
-
*/
|
|
322
|
-
verificationMethod: VerificationMethod;
|
|
323
|
-
[property: string]: any;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* The verification method containing the public key for signature verification.
|
|
328
|
-
*
|
|
329
|
-
* Verification method containing the public key needed to verify a digital signature.
|
|
330
|
-
* Supports multiple key formats including JWK (for RSA, EC), PEM, and Base58.
|
|
331
|
-
*/
|
|
332
|
-
export interface VerificationMethod {
|
|
333
|
-
/**
|
|
334
|
-
* The entity that controls this verification method. Can be a DID, URI, or other identifier.
|
|
335
|
-
*/
|
|
336
|
-
controller: string;
|
|
337
|
-
/**
|
|
338
|
-
* Public key in Base58 format, commonly used with Ed25519 keys.
|
|
339
|
-
*/
|
|
340
|
-
publicKeyBase58?: string;
|
|
341
|
-
/**
|
|
342
|
-
* Public key in JSON Web Key format.
|
|
343
|
-
*/
|
|
344
|
-
publicKeyJwk?: { [key: string]: any };
|
|
345
|
-
/**
|
|
346
|
-
* Public key in PEM format. Example: '-----BEGIN PUBLIC KEY-----...-----END PUBLIC
|
|
347
|
-
* KEY-----'.
|
|
348
|
-
*/
|
|
349
|
-
publicKeyPem?: string;
|
|
350
|
-
/**
|
|
351
|
-
* The type of verification method. Example: 'JsonWebKey2020', 'RsaVerificationKey2018',
|
|
352
|
-
* 'Ed25519VerificationKey2020'.
|
|
353
|
-
*/
|
|
354
|
-
type: string;
|
|
355
|
-
[property: string]: any;
|
|
356
|
-
}
|
package/dist/ts/hdf-plan.d.ts
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines an assessment plan — what baselines to run against which targets, with resolved
|
|
3
|
-
* inputs and scheduling. Maps to OSCAL Assessment Plan.
|
|
4
|
-
*/
|
|
5
|
-
export interface HdfPlan {
|
|
6
|
-
/**
|
|
7
|
-
* The assessments to perform. Each assessment pairs a baseline with targets and resolved
|
|
8
|
-
* inputs.
|
|
9
|
-
*/
|
|
10
|
-
assessments: Assessment[];
|
|
11
|
-
/**
|
|
12
|
-
* Description of the plan's purpose and scope.
|
|
13
|
-
*/
|
|
14
|
-
description?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Information about the tool that generated this plan.
|
|
17
|
-
*/
|
|
18
|
-
generator?: Generator;
|
|
19
|
-
/**
|
|
20
|
-
* Cryptographic integrity information for verifying this plan document has not been
|
|
21
|
-
* tampered with.
|
|
22
|
-
*/
|
|
23
|
-
integrity?: Integrity;
|
|
24
|
-
/**
|
|
25
|
-
* Optional key-value labels for grouping and querying plans.
|
|
26
|
-
*/
|
|
27
|
-
labels?: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Human-readable plan name. Example: 'Portal Monthly Assessment'.
|
|
32
|
-
*/
|
|
33
|
-
name: string;
|
|
34
|
-
/**
|
|
35
|
-
* Unique identifier for this plan. Optional in casual use, expected in production
|
|
36
|
-
* documents. Auto-generated if omitted during creation.
|
|
37
|
-
*/
|
|
38
|
-
planId?: string;
|
|
39
|
-
/**
|
|
40
|
-
* Optional scheduling configuration for recurring assessments.
|
|
41
|
-
*/
|
|
42
|
-
schedule?: Schedule;
|
|
43
|
-
/**
|
|
44
|
-
* URI to the hdf-system document this plan targets. Example: 'portal-prod.hdf-system.json'.
|
|
45
|
-
*/
|
|
46
|
-
systemRef?: string;
|
|
47
|
-
/**
|
|
48
|
-
* The type of assessment plan.
|
|
49
|
-
*/
|
|
50
|
-
type?: PlanType;
|
|
51
|
-
/**
|
|
52
|
-
* Version of this plan document.
|
|
53
|
-
*/
|
|
54
|
-
version?: string;
|
|
55
|
-
[property: string]: any;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* A single assessment within a plan — defines which baseline to run against which targets
|
|
59
|
-
* with what configuration.
|
|
60
|
-
*/
|
|
61
|
-
export interface Assessment {
|
|
62
|
-
/**
|
|
63
|
-
* Reference to the baseline to evaluate. May be a baseline name (e.g. 'RHEL9-STIG'), a
|
|
64
|
-
* relative path to an HDF Baseline document (e.g. 'rhel9-stig.hdf-baseline.json'), or an
|
|
65
|
-
* absolute URI.
|
|
66
|
-
*/
|
|
67
|
-
baselineRef: string;
|
|
68
|
-
/**
|
|
69
|
-
* componentId of the system component this assessment targets. Use for direct component
|
|
70
|
-
* binding. Alternative to targetSelector.
|
|
71
|
-
*/
|
|
72
|
-
componentRef?: string;
|
|
73
|
-
/**
|
|
74
|
-
* Description of this assessment's purpose.
|
|
75
|
-
*/
|
|
76
|
-
description?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Resolved input values for this assessment. Keys are input names, values are the final
|
|
79
|
-
* resolved values (after baseline defaults + system overrides).
|
|
80
|
-
*/
|
|
81
|
-
inputs?: {
|
|
82
|
-
[key: string]: any;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Runner/scanner configuration for this assessment.
|
|
86
|
-
*/
|
|
87
|
-
runner?: RunnerConfig;
|
|
88
|
-
/**
|
|
89
|
-
* Label selector to match targets for this assessment. Overrides the system component's
|
|
90
|
-
* targetSelector if provided.
|
|
91
|
-
*/
|
|
92
|
-
targetSelector?: {
|
|
93
|
-
[key: string]: string;
|
|
94
|
-
};
|
|
95
|
-
[property: string]: any;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Runner/scanner configuration for this assessment.
|
|
99
|
-
*
|
|
100
|
-
* Configuration for the assessment runner/scanner.
|
|
101
|
-
*/
|
|
102
|
-
export interface RunnerConfig {
|
|
103
|
-
/**
|
|
104
|
-
* Name of the assessment runner. Example: 'cinc-auditor', 'inspec', 'openscap'.
|
|
105
|
-
*/
|
|
106
|
-
name?: string;
|
|
107
|
-
/**
|
|
108
|
-
* Version of the runner.
|
|
109
|
-
*/
|
|
110
|
-
version?: string;
|
|
111
|
-
[property: string]: any;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Information about the tool that generated this plan.
|
|
115
|
-
*
|
|
116
|
-
* Information about the tool that generated this HDF file.
|
|
117
|
-
*/
|
|
118
|
-
export interface Generator {
|
|
119
|
-
/**
|
|
120
|
-
* The name of the software that produced this HDF file. Example: 'gosec-to-hdf'.
|
|
121
|
-
*/
|
|
122
|
-
name: string;
|
|
123
|
-
/**
|
|
124
|
-
* The version of the tool. Example: '5.22.3'.
|
|
125
|
-
*/
|
|
126
|
-
version: string;
|
|
127
|
-
[property: string]: any;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Cryptographic integrity information for verifying this plan document has not been
|
|
131
|
-
* tampered with.
|
|
132
|
-
*
|
|
133
|
-
* Cryptographic integrity information for verifying the HDF file has not been tampered
|
|
134
|
-
* with. If algorithm is provided, checksum must also be provided, and vice versa.
|
|
135
|
-
*/
|
|
136
|
-
export interface Integrity {
|
|
137
|
-
/**
|
|
138
|
-
* The hash algorithm used for the checksum.
|
|
139
|
-
*/
|
|
140
|
-
algorithm?: HashAlgorithm;
|
|
141
|
-
/**
|
|
142
|
-
* The checksum value.
|
|
143
|
-
*/
|
|
144
|
-
checksum?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Optional cryptographic signature.
|
|
147
|
-
*/
|
|
148
|
-
signature?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Identifier of who signed this file.
|
|
151
|
-
*/
|
|
152
|
-
signedBy?: string;
|
|
153
|
-
[property: string]: any;
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* The hash algorithm used for the checksum.
|
|
157
|
-
*
|
|
158
|
-
* Supported cryptographic hash algorithms for checksums and integrity verification.
|
|
159
|
-
*/
|
|
160
|
-
export declare enum HashAlgorithm {
|
|
161
|
-
Sha256 = "sha256",
|
|
162
|
-
Sha384 = "sha384",
|
|
163
|
-
Sha512 = "sha512"
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Optional scheduling configuration for recurring assessments.
|
|
167
|
-
*
|
|
168
|
-
* Scheduling configuration for recurring assessments.
|
|
169
|
-
*/
|
|
170
|
-
export interface Schedule {
|
|
171
|
-
/**
|
|
172
|
-
* Cron expression for recurring assessments. Example: '0 2 1 * *' (2 AM on the 1st of each
|
|
173
|
-
* month).
|
|
174
|
-
*/
|
|
175
|
-
cron?: string;
|
|
176
|
-
/**
|
|
177
|
-
* Date after which assessments should no longer run. ISO 8601 format.
|
|
178
|
-
*/
|
|
179
|
-
endDate?: Date;
|
|
180
|
-
/**
|
|
181
|
-
* Email addresses or notification endpoints to alert when assessments complete.
|
|
182
|
-
*/
|
|
183
|
-
notifyOnCompletion?: string[];
|
|
184
|
-
/**
|
|
185
|
-
* Email addresses or notification endpoints to alert when regressions are detected.
|
|
186
|
-
*/
|
|
187
|
-
notifyOnRegression?: string[];
|
|
188
|
-
/**
|
|
189
|
-
* Earliest date to begin assessments. ISO 8601 format.
|
|
190
|
-
*/
|
|
191
|
-
startDate?: Date;
|
|
192
|
-
[property: string]: any;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* The type of assessment plan.
|
|
196
|
-
*
|
|
197
|
-
* The type of assessment. 'automated' for scanner-driven, 'manual' for human-performed,
|
|
198
|
-
* 'hybrid' for both.
|
|
199
|
-
*/
|
|
200
|
-
export declare enum PlanType {
|
|
201
|
-
Automated = "automated",
|
|
202
|
-
Hybrid = "hybrid",
|
|
203
|
-
Manual = "manual"
|
|
204
|
-
}
|
package/dist/ts/hdf-plan.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The hash algorithm used for the checksum.
|
|
3
|
-
*
|
|
4
|
-
* Supported cryptographic hash algorithms for checksums and integrity verification.
|
|
5
|
-
*/
|
|
6
|
-
export var HashAlgorithm;
|
|
7
|
-
(function (HashAlgorithm) {
|
|
8
|
-
HashAlgorithm["Sha256"] = "sha256";
|
|
9
|
-
HashAlgorithm["Sha384"] = "sha384";
|
|
10
|
-
HashAlgorithm["Sha512"] = "sha512";
|
|
11
|
-
})(HashAlgorithm || (HashAlgorithm = {}));
|
|
12
|
-
/**
|
|
13
|
-
* The type of assessment plan.
|
|
14
|
-
*
|
|
15
|
-
* The type of assessment. 'automated' for scanner-driven, 'manual' for human-performed,
|
|
16
|
-
* 'hybrid' for both.
|
|
17
|
-
*/
|
|
18
|
-
export var PlanType;
|
|
19
|
-
(function (PlanType) {
|
|
20
|
-
PlanType["Automated"] = "automated";
|
|
21
|
-
PlanType["Hybrid"] = "hybrid";
|
|
22
|
-
PlanType["Manual"] = "manual";
|
|
23
|
-
})(PlanType || (PlanType = {}));
|