@cyclonedx/cyclonedx-library 6.7.2 → 6.8.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 +1 -1
- package/dist.d/builders/fromNodePackageJson.node.d.ts +5 -4
- package/dist.d/builders/fromNodePackageJson.node.d.ts.map +1 -1
- package/dist.d/factories/fromNodePackageJson.node.d.ts +7 -6
- package/dist.d/factories/fromNodePackageJson.node.d.ts.map +1 -1
- package/dist.d/factories/license.d.ts +2 -2
- package/dist.d/factories/license.d.ts.map +1 -1
- package/dist.d/factories/packageUrl.d.ts +1 -1
- package/dist.d/factories/packageUrl.d.ts.map +1 -1
- package/dist.d/index.node.d.ts.map +1 -1
- package/dist.d/models/attachment.d.ts +1 -1
- package/dist.d/models/attachment.d.ts.map +1 -1
- package/dist.d/models/bom.d.ts +2 -2
- package/dist.d/models/bom.d.ts.map +1 -1
- package/dist.d/models/component.d.ts +1 -1
- package/dist.d/models/component.d.ts.map +1 -1
- package/dist.d/models/externalReference.d.ts +1 -1
- package/dist.d/models/externalReference.d.ts.map +1 -1
- package/dist.d/models/hash.d.ts +1 -1
- package/dist.d/models/hash.d.ts.map +1 -1
- package/dist.d/models/license.d.ts +1 -1
- package/dist.d/models/license.d.ts.map +1 -1
- package/dist.d/models/lifecycle.d.ts +1 -1
- package/dist.d/models/lifecycle.d.ts.map +1 -1
- package/dist.d/models/swid.d.ts +1 -1
- package/dist.d/models/swid.d.ts.map +1 -1
- package/dist.d/models/vulnerability/analysis.d.ts +1 -1
- package/dist.d/models/vulnerability/analysis.d.ts.map +1 -1
- package/dist.d/models/vulnerability/vulnerability.d.ts +1 -1
- package/dist.d/models/vulnerability/vulnerability.d.ts.map +1 -1
- package/dist.d/serialize/json/normalize.d.ts +1 -1
- package/dist.d/serialize/json/normalize.d.ts.map +1 -1
- package/dist.d/serialize/jsonSerializer.d.ts +1 -1
- package/dist.d/serialize/jsonSerializer.d.ts.map +1 -1
- package/dist.d/serialize/xml/normalize.d.ts +1 -1
- package/dist.d/serialize/xml/normalize.d.ts.map +1 -1
- package/dist.d/serialize/xmlBaseSerializer.d.ts.map +1 -1
- package/dist.d/spec/consts.d.ts.map +1 -1
- package/dist.d/spec/errors.d.ts +21 -0
- package/dist.d/spec/errors.d.ts.map +1 -0
- package/dist.d/spec/index.d.ts +1 -2
- package/dist.d/spec/index.d.ts.map +1 -1
- package/dist.node/builders/fromNodePackageJson.node.js +11 -8
- package/dist.node/builders/fromNodePackageJson.node.js.map +1 -1
- package/dist.node/factories/fromNodePackageJson.node.js +5 -5
- package/dist.node/factories/fromNodePackageJson.node.js.map +1 -1
- package/dist.node/factories/license.js +4 -4
- package/dist.node/factories/license.js.map +1 -1
- package/dist.node/factories/packageUrl.js +3 -3
- package/dist.node/factories/packageUrl.js.map +1 -1
- package/dist.node/index.node.js.map +1 -1
- package/dist.node/models/bom.js +3 -3
- package/dist.node/models/bom.js.map +1 -1
- package/dist.node/models/component.js +2 -2
- package/dist.node/models/component.js.map +1 -1
- package/dist.node/models/swid.js +2 -2
- package/dist.node/models/swid.js.map +1 -1
- package/dist.node/models/vulnerability/analysis.js +2 -2
- package/dist.node/models/vulnerability/analysis.js.map +1 -1
- package/dist.node/models/vulnerability/vulnerability.js +2 -2
- package/dist.node/models/vulnerability/vulnerability.js.map +1 -1
- package/dist.node/resources.node.js +28 -28
- package/dist.node/resources.node.js.map +1 -1
- package/dist.node/serialize/json/normalize.js +17 -15
- package/dist.node/serialize/json/normalize.js.map +1 -1
- package/dist.node/serialize/jsonSerializer.js +4 -3
- package/dist.node/serialize/jsonSerializer.js.map +1 -1
- package/dist.node/serialize/xml/normalize.js +19 -17
- package/dist.node/serialize/xml/normalize.js.map +1 -1
- package/dist.node/serialize/xmlBaseSerializer.js +4 -3
- package/dist.node/serialize/xmlBaseSerializer.js.map +1 -1
- package/dist.node/spec/consts.js +281 -278
- package/dist.node/spec/consts.js.map +1 -1
- package/dist.node/spec/errors.js +25 -0
- package/dist.node/spec/errors.js.map +1 -0
- package/dist.node/spec/index.js +1 -4
- package/dist.node/spec/index.js.map +1 -1
- package/dist.web/lib.dev.js +378 -338
- package/dist.web/lib.dev.js.map +1 -1
- package/dist.web/lib.js +1 -1
- package/dist.web/lib.js.map +1 -1
- package/package.json +72 -10
- package/src/builders/fromNodePackageJson.node.ts +12 -9
- package/src/factories/fromNodePackageJson.node.ts +13 -12
- package/src/factories/license.ts +2 -2
- package/src/factories/packageUrl.ts +2 -2
- package/src/index.node.ts +4 -0
- package/src/models/attachment.ts +1 -1
- package/src/models/bom.ts +3 -3
- package/src/models/component.ts +2 -2
- package/src/models/externalReference.ts +1 -1
- package/src/models/hash.ts +1 -1
- package/src/models/license.ts +1 -1
- package/src/models/lifecycle.ts +1 -1
- package/src/models/swid.ts +2 -2
- package/src/models/vulnerability/analysis.ts +1 -1
- package/src/models/vulnerability/vulnerability.ts +1 -1
- package/src/resources.node.ts +24 -24
- package/src/serialize/json/normalize.ts +13 -10
- package/src/serialize/jsonSerializer.ts +3 -2
- package/src/serialize/xml/normalize.ts +13 -10
- package/src/serialize/xmlBaseSerializer.ts +2 -1
- package/src/spec/consts.ts +23 -20
- package/src/spec/errors.ts +21 -0
- package/src/spec/index.ts +1 -3
package/dist.node/spec/consts.js
CHANGED
|
@@ -19,308 +19,311 @@ Copyright (c) OWASP Foundation. All Rights Reserved.
|
|
|
19
19
|
*/
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.SpecVersionDict = exports.Spec1dot6 = exports.Spec1dot5 = exports.Spec1dot4 = exports.Spec1dot3 = exports.Spec1dot2 = void 0;
|
|
22
|
-
const
|
|
22
|
+
const componentType_1 = require("../enums/componentType");
|
|
23
|
+
const externalReferenceType_1 = require("../enums/externalReferenceType");
|
|
24
|
+
const hashAlogorithm_1 = require("../enums/hashAlogorithm");
|
|
25
|
+
const ratingMethod_1 = require("../enums/vulnerability/ratingMethod");
|
|
23
26
|
const _protocol_1 = require("./_protocol");
|
|
24
|
-
const
|
|
25
|
-
exports.Spec1dot2 = Object.freeze(new _protocol_1._Spec(
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
const enums_1 = require("./enums");
|
|
28
|
+
exports.Spec1dot2 = Object.freeze(new _protocol_1._Spec(enums_1.Version.v1dot2, [
|
|
29
|
+
enums_1.Format.XML,
|
|
30
|
+
enums_1.Format.JSON
|
|
28
31
|
], [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
componentType_1.ComponentType.Application,
|
|
33
|
+
componentType_1.ComponentType.Framework,
|
|
34
|
+
componentType_1.ComponentType.Library,
|
|
35
|
+
componentType_1.ComponentType.Container,
|
|
36
|
+
componentType_1.ComponentType.OperatingSystem,
|
|
37
|
+
componentType_1.ComponentType.Device,
|
|
38
|
+
componentType_1.ComponentType.Firmware,
|
|
39
|
+
componentType_1.ComponentType.File
|
|
37
40
|
], [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
hashAlogorithm_1.HashAlgorithm.MD5,
|
|
42
|
+
hashAlogorithm_1.HashAlgorithm['SHA-1'],
|
|
43
|
+
hashAlogorithm_1.HashAlgorithm['SHA-256'],
|
|
44
|
+
hashAlogorithm_1.HashAlgorithm['SHA-384'],
|
|
45
|
+
hashAlogorithm_1.HashAlgorithm['SHA-512'],
|
|
46
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-256'],
|
|
47
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-384'],
|
|
48
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-512'],
|
|
49
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-256'],
|
|
50
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-384'],
|
|
51
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-512'],
|
|
52
|
+
hashAlogorithm_1.HashAlgorithm.BLAKE3
|
|
50
53
|
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
externalReferenceType_1.ExternalReferenceType.VCS,
|
|
55
|
+
externalReferenceType_1.ExternalReferenceType.IssueTracker,
|
|
56
|
+
externalReferenceType_1.ExternalReferenceType.Website,
|
|
57
|
+
externalReferenceType_1.ExternalReferenceType.Advisories,
|
|
58
|
+
externalReferenceType_1.ExternalReferenceType.BOM,
|
|
59
|
+
externalReferenceType_1.ExternalReferenceType.MailingList,
|
|
60
|
+
externalReferenceType_1.ExternalReferenceType.Social,
|
|
61
|
+
externalReferenceType_1.ExternalReferenceType.Chat,
|
|
62
|
+
externalReferenceType_1.ExternalReferenceType.Documentation,
|
|
63
|
+
externalReferenceType_1.ExternalReferenceType.Support,
|
|
64
|
+
externalReferenceType_1.ExternalReferenceType.Distribution,
|
|
65
|
+
externalReferenceType_1.ExternalReferenceType.License,
|
|
66
|
+
externalReferenceType_1.ExternalReferenceType.BuildMeta,
|
|
67
|
+
externalReferenceType_1.ExternalReferenceType.BuildSystem,
|
|
68
|
+
externalReferenceType_1.ExternalReferenceType.Other
|
|
66
69
|
], true, false, true, false, false, [], false, false, false, false, false, false));
|
|
67
|
-
exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
exports.Spec1dot3 = Object.freeze(new _protocol_1._Spec(enums_1.Version.v1dot3, [
|
|
71
|
+
enums_1.Format.XML,
|
|
72
|
+
enums_1.Format.JSON
|
|
70
73
|
], [
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
componentType_1.ComponentType.Application,
|
|
75
|
+
componentType_1.ComponentType.Framework,
|
|
76
|
+
componentType_1.ComponentType.Library,
|
|
77
|
+
componentType_1.ComponentType.Container,
|
|
78
|
+
componentType_1.ComponentType.OperatingSystem,
|
|
79
|
+
componentType_1.ComponentType.Device,
|
|
80
|
+
componentType_1.ComponentType.Firmware,
|
|
81
|
+
componentType_1.ComponentType.File
|
|
79
82
|
], [
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
83
|
+
hashAlogorithm_1.HashAlgorithm.MD5,
|
|
84
|
+
hashAlogorithm_1.HashAlgorithm['SHA-1'],
|
|
85
|
+
hashAlogorithm_1.HashAlgorithm['SHA-256'],
|
|
86
|
+
hashAlogorithm_1.HashAlgorithm['SHA-384'],
|
|
87
|
+
hashAlogorithm_1.HashAlgorithm['SHA-512'],
|
|
88
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-256'],
|
|
89
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-384'],
|
|
90
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-512'],
|
|
91
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-256'],
|
|
92
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-384'],
|
|
93
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-512'],
|
|
94
|
+
hashAlogorithm_1.HashAlgorithm.BLAKE3
|
|
92
95
|
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
externalReferenceType_1.ExternalReferenceType.VCS,
|
|
97
|
+
externalReferenceType_1.ExternalReferenceType.IssueTracker,
|
|
98
|
+
externalReferenceType_1.ExternalReferenceType.Website,
|
|
99
|
+
externalReferenceType_1.ExternalReferenceType.Advisories,
|
|
100
|
+
externalReferenceType_1.ExternalReferenceType.BOM,
|
|
101
|
+
externalReferenceType_1.ExternalReferenceType.MailingList,
|
|
102
|
+
externalReferenceType_1.ExternalReferenceType.Social,
|
|
103
|
+
externalReferenceType_1.ExternalReferenceType.Chat,
|
|
104
|
+
externalReferenceType_1.ExternalReferenceType.Documentation,
|
|
105
|
+
externalReferenceType_1.ExternalReferenceType.Support,
|
|
106
|
+
externalReferenceType_1.ExternalReferenceType.Distribution,
|
|
107
|
+
externalReferenceType_1.ExternalReferenceType.License,
|
|
108
|
+
externalReferenceType_1.ExternalReferenceType.BuildMeta,
|
|
109
|
+
externalReferenceType_1.ExternalReferenceType.BuildSystem,
|
|
110
|
+
externalReferenceType_1.ExternalReferenceType.Other
|
|
108
111
|
], true, false, true, true, false, [], true, false, true, true, true, false));
|
|
109
|
-
exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
exports.Spec1dot4 = Object.freeze(new _protocol_1._Spec(enums_1.Version.v1dot4, [
|
|
113
|
+
enums_1.Format.XML,
|
|
114
|
+
enums_1.Format.JSON
|
|
112
115
|
], [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
componentType_1.ComponentType.Application,
|
|
117
|
+
componentType_1.ComponentType.Framework,
|
|
118
|
+
componentType_1.ComponentType.Library,
|
|
119
|
+
componentType_1.ComponentType.Container,
|
|
120
|
+
componentType_1.ComponentType.OperatingSystem,
|
|
121
|
+
componentType_1.ComponentType.Device,
|
|
122
|
+
componentType_1.ComponentType.Firmware,
|
|
123
|
+
componentType_1.ComponentType.File
|
|
121
124
|
], [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
125
|
+
hashAlogorithm_1.HashAlgorithm.MD5,
|
|
126
|
+
hashAlogorithm_1.HashAlgorithm['SHA-1'],
|
|
127
|
+
hashAlogorithm_1.HashAlgorithm['SHA-256'],
|
|
128
|
+
hashAlogorithm_1.HashAlgorithm['SHA-384'],
|
|
129
|
+
hashAlogorithm_1.HashAlgorithm['SHA-512'],
|
|
130
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-256'],
|
|
131
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-384'],
|
|
132
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-512'],
|
|
133
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-256'],
|
|
134
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-384'],
|
|
135
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-512'],
|
|
136
|
+
hashAlogorithm_1.HashAlgorithm.BLAKE3
|
|
134
137
|
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
138
|
+
externalReferenceType_1.ExternalReferenceType.VCS,
|
|
139
|
+
externalReferenceType_1.ExternalReferenceType.IssueTracker,
|
|
140
|
+
externalReferenceType_1.ExternalReferenceType.Website,
|
|
141
|
+
externalReferenceType_1.ExternalReferenceType.Advisories,
|
|
142
|
+
externalReferenceType_1.ExternalReferenceType.BOM,
|
|
143
|
+
externalReferenceType_1.ExternalReferenceType.MailingList,
|
|
144
|
+
externalReferenceType_1.ExternalReferenceType.Social,
|
|
145
|
+
externalReferenceType_1.ExternalReferenceType.Chat,
|
|
146
|
+
externalReferenceType_1.ExternalReferenceType.Documentation,
|
|
147
|
+
externalReferenceType_1.ExternalReferenceType.Support,
|
|
148
|
+
externalReferenceType_1.ExternalReferenceType.Distribution,
|
|
149
|
+
externalReferenceType_1.ExternalReferenceType.License,
|
|
150
|
+
externalReferenceType_1.ExternalReferenceType.BuildMeta,
|
|
151
|
+
externalReferenceType_1.ExternalReferenceType.BuildSystem,
|
|
152
|
+
externalReferenceType_1.ExternalReferenceType.ReleaseNotes,
|
|
153
|
+
externalReferenceType_1.ExternalReferenceType.Other
|
|
151
154
|
], true, true, false, true, true, [
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
ratingMethod_1.RatingMethod.CVSSv2,
|
|
156
|
+
ratingMethod_1.RatingMethod.CVSSv3,
|
|
157
|
+
ratingMethod_1.RatingMethod.CVSSv31,
|
|
158
|
+
ratingMethod_1.RatingMethod.OWASP,
|
|
159
|
+
ratingMethod_1.RatingMethod.Other
|
|
157
160
|
], true, false, true, true, true, false));
|
|
158
|
-
exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
+
exports.Spec1dot5 = Object.freeze(new _protocol_1._Spec(enums_1.Version.v1dot5, [
|
|
162
|
+
enums_1.Format.XML,
|
|
163
|
+
enums_1.Format.JSON
|
|
161
164
|
], [
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
165
|
+
componentType_1.ComponentType.Application,
|
|
166
|
+
componentType_1.ComponentType.Framework,
|
|
167
|
+
componentType_1.ComponentType.Library,
|
|
168
|
+
componentType_1.ComponentType.Container,
|
|
169
|
+
componentType_1.ComponentType.Platform,
|
|
170
|
+
componentType_1.ComponentType.OperatingSystem,
|
|
171
|
+
componentType_1.ComponentType.Device,
|
|
172
|
+
componentType_1.ComponentType.DeviceDriver,
|
|
173
|
+
componentType_1.ComponentType.Firmware,
|
|
174
|
+
componentType_1.ComponentType.File,
|
|
175
|
+
componentType_1.ComponentType.MachineLearningModel,
|
|
176
|
+
componentType_1.ComponentType.Data
|
|
174
177
|
], [
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
178
|
+
hashAlogorithm_1.HashAlgorithm.MD5,
|
|
179
|
+
hashAlogorithm_1.HashAlgorithm['SHA-1'],
|
|
180
|
+
hashAlogorithm_1.HashAlgorithm['SHA-256'],
|
|
181
|
+
hashAlogorithm_1.HashAlgorithm['SHA-384'],
|
|
182
|
+
hashAlogorithm_1.HashAlgorithm['SHA-512'],
|
|
183
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-256'],
|
|
184
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-384'],
|
|
185
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-512'],
|
|
186
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-256'],
|
|
187
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-384'],
|
|
188
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-512'],
|
|
189
|
+
hashAlogorithm_1.HashAlgorithm.BLAKE3
|
|
187
190
|
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
191
|
+
externalReferenceType_1.ExternalReferenceType.VCS,
|
|
192
|
+
externalReferenceType_1.ExternalReferenceType.IssueTracker,
|
|
193
|
+
externalReferenceType_1.ExternalReferenceType.Website,
|
|
194
|
+
externalReferenceType_1.ExternalReferenceType.Advisories,
|
|
195
|
+
externalReferenceType_1.ExternalReferenceType.BOM,
|
|
196
|
+
externalReferenceType_1.ExternalReferenceType.MailingList,
|
|
197
|
+
externalReferenceType_1.ExternalReferenceType.Social,
|
|
198
|
+
externalReferenceType_1.ExternalReferenceType.Chat,
|
|
199
|
+
externalReferenceType_1.ExternalReferenceType.Documentation,
|
|
200
|
+
externalReferenceType_1.ExternalReferenceType.Support,
|
|
201
|
+
externalReferenceType_1.ExternalReferenceType.Distribution,
|
|
202
|
+
externalReferenceType_1.ExternalReferenceType.DistributionIntake,
|
|
203
|
+
externalReferenceType_1.ExternalReferenceType.License,
|
|
204
|
+
externalReferenceType_1.ExternalReferenceType.BuildMeta,
|
|
205
|
+
externalReferenceType_1.ExternalReferenceType.BuildSystem,
|
|
206
|
+
externalReferenceType_1.ExternalReferenceType.ReleaseNotes,
|
|
207
|
+
externalReferenceType_1.ExternalReferenceType.SecurityContact,
|
|
208
|
+
externalReferenceType_1.ExternalReferenceType.ModelCard,
|
|
209
|
+
externalReferenceType_1.ExternalReferenceType.Log,
|
|
210
|
+
externalReferenceType_1.ExternalReferenceType.Configuration,
|
|
211
|
+
externalReferenceType_1.ExternalReferenceType.Evidence,
|
|
212
|
+
externalReferenceType_1.ExternalReferenceType.Formulation,
|
|
213
|
+
externalReferenceType_1.ExternalReferenceType.Attestation,
|
|
214
|
+
externalReferenceType_1.ExternalReferenceType.ThreatModel,
|
|
215
|
+
externalReferenceType_1.ExternalReferenceType.AdversaryModel,
|
|
216
|
+
externalReferenceType_1.ExternalReferenceType.RiskAssessment,
|
|
217
|
+
externalReferenceType_1.ExternalReferenceType.VulnerabilityAssertion,
|
|
218
|
+
externalReferenceType_1.ExternalReferenceType.ExploitabilityStatement,
|
|
219
|
+
externalReferenceType_1.ExternalReferenceType.PentestReport,
|
|
220
|
+
externalReferenceType_1.ExternalReferenceType.StaticAnalysisReport,
|
|
221
|
+
externalReferenceType_1.ExternalReferenceType.DynamicAnalysisReport,
|
|
222
|
+
externalReferenceType_1.ExternalReferenceType.RuntimeAnalysisReport,
|
|
223
|
+
externalReferenceType_1.ExternalReferenceType.ComponentAnalysisReport,
|
|
224
|
+
externalReferenceType_1.ExternalReferenceType.MaturityReport,
|
|
225
|
+
externalReferenceType_1.ExternalReferenceType.CertificationReport,
|
|
226
|
+
externalReferenceType_1.ExternalReferenceType.CodifiedInfrastructure,
|
|
227
|
+
externalReferenceType_1.ExternalReferenceType.QualityMetrics,
|
|
228
|
+
externalReferenceType_1.ExternalReferenceType.POAM,
|
|
229
|
+
externalReferenceType_1.ExternalReferenceType.Other
|
|
227
230
|
], true, true, false, true, true, [
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
231
|
+
ratingMethod_1.RatingMethod.CVSSv2,
|
|
232
|
+
ratingMethod_1.RatingMethod.CVSSv3,
|
|
233
|
+
ratingMethod_1.RatingMethod.CVSSv31,
|
|
234
|
+
ratingMethod_1.RatingMethod.CVSSv4,
|
|
235
|
+
ratingMethod_1.RatingMethod.OWASP,
|
|
236
|
+
ratingMethod_1.RatingMethod.SSVC,
|
|
237
|
+
ratingMethod_1.RatingMethod.Other
|
|
235
238
|
], true, true, true, true, true, false));
|
|
236
|
-
exports.Spec1dot6 = Object.freeze(new _protocol_1._Spec(
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
exports.Spec1dot6 = Object.freeze(new _protocol_1._Spec(enums_1.Version.v1dot6, [
|
|
240
|
+
enums_1.Format.XML,
|
|
241
|
+
enums_1.Format.JSON
|
|
239
242
|
], [
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
243
|
+
componentType_1.ComponentType.Application,
|
|
244
|
+
componentType_1.ComponentType.Framework,
|
|
245
|
+
componentType_1.ComponentType.Library,
|
|
246
|
+
componentType_1.ComponentType.Container,
|
|
247
|
+
componentType_1.ComponentType.Platform,
|
|
248
|
+
componentType_1.ComponentType.OperatingSystem,
|
|
249
|
+
componentType_1.ComponentType.Device,
|
|
250
|
+
componentType_1.ComponentType.DeviceDriver,
|
|
251
|
+
componentType_1.ComponentType.Firmware,
|
|
252
|
+
componentType_1.ComponentType.File,
|
|
253
|
+
componentType_1.ComponentType.MachineLearningModel,
|
|
254
|
+
componentType_1.ComponentType.Data,
|
|
255
|
+
componentType_1.ComponentType.CryptographicAsset
|
|
253
256
|
], [
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
257
|
+
hashAlogorithm_1.HashAlgorithm.MD5,
|
|
258
|
+
hashAlogorithm_1.HashAlgorithm['SHA-1'],
|
|
259
|
+
hashAlogorithm_1.HashAlgorithm['SHA-256'],
|
|
260
|
+
hashAlogorithm_1.HashAlgorithm['SHA-384'],
|
|
261
|
+
hashAlogorithm_1.HashAlgorithm['SHA-512'],
|
|
262
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-256'],
|
|
263
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-384'],
|
|
264
|
+
hashAlogorithm_1.HashAlgorithm['SHA3-512'],
|
|
265
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-256'],
|
|
266
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-384'],
|
|
267
|
+
hashAlogorithm_1.HashAlgorithm['BLAKE2b-512'],
|
|
268
|
+
hashAlogorithm_1.HashAlgorithm.BLAKE3
|
|
266
269
|
], /^([a-fA-F0-9]{32})$|^([a-fA-F0-9]{40})$|^([a-fA-F0-9]{64})$|^([a-fA-F0-9]{96})$|^([a-fA-F0-9]{128})$/, [
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
270
|
+
externalReferenceType_1.ExternalReferenceType.VCS,
|
|
271
|
+
externalReferenceType_1.ExternalReferenceType.IssueTracker,
|
|
272
|
+
externalReferenceType_1.ExternalReferenceType.Website,
|
|
273
|
+
externalReferenceType_1.ExternalReferenceType.Advisories,
|
|
274
|
+
externalReferenceType_1.ExternalReferenceType.BOM,
|
|
275
|
+
externalReferenceType_1.ExternalReferenceType.MailingList,
|
|
276
|
+
externalReferenceType_1.ExternalReferenceType.Social,
|
|
277
|
+
externalReferenceType_1.ExternalReferenceType.Chat,
|
|
278
|
+
externalReferenceType_1.ExternalReferenceType.Documentation,
|
|
279
|
+
externalReferenceType_1.ExternalReferenceType.Support,
|
|
280
|
+
externalReferenceType_1.ExternalReferenceType.SourceDistribution,
|
|
281
|
+
externalReferenceType_1.ExternalReferenceType.Distribution,
|
|
282
|
+
externalReferenceType_1.ExternalReferenceType.DistributionIntake,
|
|
283
|
+
externalReferenceType_1.ExternalReferenceType.License,
|
|
284
|
+
externalReferenceType_1.ExternalReferenceType.BuildMeta,
|
|
285
|
+
externalReferenceType_1.ExternalReferenceType.BuildSystem,
|
|
286
|
+
externalReferenceType_1.ExternalReferenceType.ReleaseNotes,
|
|
287
|
+
externalReferenceType_1.ExternalReferenceType.SecurityContact,
|
|
288
|
+
externalReferenceType_1.ExternalReferenceType.ModelCard,
|
|
289
|
+
externalReferenceType_1.ExternalReferenceType.Log,
|
|
290
|
+
externalReferenceType_1.ExternalReferenceType.Configuration,
|
|
291
|
+
externalReferenceType_1.ExternalReferenceType.Evidence,
|
|
292
|
+
externalReferenceType_1.ExternalReferenceType.Formulation,
|
|
293
|
+
externalReferenceType_1.ExternalReferenceType.Attestation,
|
|
294
|
+
externalReferenceType_1.ExternalReferenceType.ThreatModel,
|
|
295
|
+
externalReferenceType_1.ExternalReferenceType.AdversaryModel,
|
|
296
|
+
externalReferenceType_1.ExternalReferenceType.RiskAssessment,
|
|
297
|
+
externalReferenceType_1.ExternalReferenceType.VulnerabilityAssertion,
|
|
298
|
+
externalReferenceType_1.ExternalReferenceType.ExploitabilityStatement,
|
|
299
|
+
externalReferenceType_1.ExternalReferenceType.PentestReport,
|
|
300
|
+
externalReferenceType_1.ExternalReferenceType.StaticAnalysisReport,
|
|
301
|
+
externalReferenceType_1.ExternalReferenceType.DynamicAnalysisReport,
|
|
302
|
+
externalReferenceType_1.ExternalReferenceType.RuntimeAnalysisReport,
|
|
303
|
+
externalReferenceType_1.ExternalReferenceType.ComponentAnalysisReport,
|
|
304
|
+
externalReferenceType_1.ExternalReferenceType.MaturityReport,
|
|
305
|
+
externalReferenceType_1.ExternalReferenceType.CertificationReport,
|
|
306
|
+
externalReferenceType_1.ExternalReferenceType.CodifiedInfrastructure,
|
|
307
|
+
externalReferenceType_1.ExternalReferenceType.QualityMetrics,
|
|
308
|
+
externalReferenceType_1.ExternalReferenceType.POAM,
|
|
309
|
+
externalReferenceType_1.ExternalReferenceType.ElectronicSignature,
|
|
310
|
+
externalReferenceType_1.ExternalReferenceType.DigitalSignature,
|
|
311
|
+
externalReferenceType_1.ExternalReferenceType.RFC9116,
|
|
312
|
+
externalReferenceType_1.ExternalReferenceType.Other
|
|
310
313
|
], true, true, false, true, true, [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
314
|
+
ratingMethod_1.RatingMethod.CVSSv2,
|
|
315
|
+
ratingMethod_1.RatingMethod.CVSSv3,
|
|
316
|
+
ratingMethod_1.RatingMethod.CVSSv31,
|
|
317
|
+
ratingMethod_1.RatingMethod.CVSSv4,
|
|
318
|
+
ratingMethod_1.RatingMethod.OWASP,
|
|
319
|
+
ratingMethod_1.RatingMethod.SSVC,
|
|
320
|
+
ratingMethod_1.RatingMethod.Other
|
|
318
321
|
], true, true, true, true, true, true));
|
|
319
322
|
exports.SpecVersionDict = Object.freeze({
|
|
320
|
-
[
|
|
321
|
-
[
|
|
322
|
-
[
|
|
323
|
-
[
|
|
324
|
-
[
|
|
323
|
+
[enums_1.Version.v1dot6]: exports.Spec1dot6,
|
|
324
|
+
[enums_1.Version.v1dot5]: exports.Spec1dot5,
|
|
325
|
+
[enums_1.Version.v1dot4]: exports.Spec1dot4,
|
|
326
|
+
[enums_1.Version.v1dot3]: exports.Spec1dot3,
|
|
327
|
+
[enums_1.Version.v1dot2]: exports.Spec1dot2
|
|
325
328
|
});
|
|
326
329
|
//# sourceMappingURL=consts.js.map
|