Skip to content

Commit c45ed8f

Browse files
Commit via running ake Sources/security-advisories
1 parent 425a68b commit c45ed8f

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

Sources/security-advisories/Types.swift

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,83 @@ public enum Components {
423423
case vulnerable_functions
424424
}
425425
}
426+
/// - Remark: Generated from `#/components/schemas/cvss-severities`.
427+
public struct cvss_hyphen_severities: Codable, Hashable, Sendable {
428+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`.
429+
public struct cvss_v3Payload: Codable, Hashable, Sendable {
430+
/// The CVSS 3 vector string.
431+
///
432+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`.
433+
public var vector_string: Swift.String?
434+
/// The CVSS 3 score.
435+
///
436+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`.
437+
public var score: Swift.Double?
438+
/// Creates a new `cvss_v3Payload`.
439+
///
440+
/// - Parameters:
441+
/// - vector_string: The CVSS 3 vector string.
442+
/// - score: The CVSS 3 score.
443+
public init(
444+
vector_string: Swift.String? = nil,
445+
score: Swift.Double? = nil
446+
) {
447+
self.vector_string = vector_string
448+
self.score = score
449+
}
450+
public enum CodingKeys: String, CodingKey {
451+
case vector_string
452+
case score
453+
}
454+
}
455+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`.
456+
public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload?
457+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`.
458+
public struct cvss_v4Payload: Codable, Hashable, Sendable {
459+
/// The CVSS 4 vector string.
460+
///
461+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`.
462+
public var vector_string: Swift.String?
463+
/// The CVSS 4 score.
464+
///
465+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`.
466+
public var score: Swift.Double?
467+
/// Creates a new `cvss_v4Payload`.
468+
///
469+
/// - Parameters:
470+
/// - vector_string: The CVSS 4 vector string.
471+
/// - score: The CVSS 4 score.
472+
public init(
473+
vector_string: Swift.String? = nil,
474+
score: Swift.Double? = nil
475+
) {
476+
self.vector_string = vector_string
477+
self.score = score
478+
}
479+
public enum CodingKeys: String, CodingKey {
480+
case vector_string
481+
case score
482+
}
483+
}
484+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`.
485+
public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload?
486+
/// Creates a new `cvss_hyphen_severities`.
487+
///
488+
/// - Parameters:
489+
/// - cvss_v3:
490+
/// - cvss_v4:
491+
public init(
492+
cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil,
493+
cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil
494+
) {
495+
self.cvss_v3 = cvss_v3
496+
self.cvss_v4 = cvss_v4
497+
}
498+
public enum CodingKeys: String, CodingKey {
499+
case cvss_v3
500+
case cvss_v4
501+
}
502+
}
426503
/// A GitHub user.
427504
///
428505
/// - Remark: Generated from `#/components/schemas/simple-user`.
@@ -733,6 +810,8 @@ public enum Components {
733810
}
734811
/// - Remark: Generated from `#/components/schemas/global-advisory/cvss`.
735812
public var cvss: Components.Schemas.global_hyphen_advisory.cvssPayload?
813+
/// - Remark: Generated from `#/components/schemas/global-advisory/cvss_severities`.
814+
public var cvss_severities: Components.Schemas.cvss_hyphen_severities?
736815
/// - Remark: Generated from `#/components/schemas/global-advisory/cwesPayload`.
737816
public struct cwesPayloadPayload: Codable, Hashable, Sendable {
738817
/// The Common Weakness Enumeration (CWE) identifier.
@@ -842,6 +921,7 @@ public enum Components {
842921
/// - withdrawn_at: The date and time of when the advisory was withdrawn, in ISO 8601 format.
843922
/// - vulnerabilities: The products and respective version ranges affected by the advisory.
844923
/// - cvss:
924+
/// - cvss_severities:
845925
/// - cwes:
846926
/// - epss:
847927
/// - credits: The users who contributed to the advisory.
@@ -865,6 +945,7 @@ public enum Components {
865945
withdrawn_at: Foundation.Date? = nil,
866946
vulnerabilities: [Components.Schemas.vulnerability]? = nil,
867947
cvss: Components.Schemas.global_hyphen_advisory.cvssPayload? = nil,
948+
cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil,
868949
cwes: Components.Schemas.global_hyphen_advisory.cwesPayload? = nil,
869950
epss: Components.Schemas.global_hyphen_advisory.epssPayload? = nil,
870951
credits: Components.Schemas.global_hyphen_advisory.creditsPayload? = nil
@@ -888,6 +969,7 @@ public enum Components {
888969
self.withdrawn_at = withdrawn_at
889970
self.vulnerabilities = vulnerabilities
890971
self.cvss = cvss
972+
self.cvss_severities = cvss_severities
891973
self.cwes = cwes
892974
self.epss = epss
893975
self.credits = credits
@@ -912,6 +994,7 @@ public enum Components {
912994
case withdrawn_at
913995
case vulnerabilities
914996
case cvss
997+
case cvss_severities
915998
case cwes
916999
case epss
9171000
case credits
@@ -994,6 +1077,10 @@ public enum Components {
9941077
Components.Schemas.global_hyphen_advisory.cvssPayload.self,
9951078
forKey: .cvss
9961079
)
1080+
cvss_severities = try container.decodeIfPresent(
1081+
Components.Schemas.cvss_hyphen_severities.self,
1082+
forKey: .cvss_severities
1083+
)
9971084
cwes = try container.decodeIfPresent(
9981085
Components.Schemas.global_hyphen_advisory.cwesPayload.self,
9991086
forKey: .cwes
@@ -1026,6 +1113,7 @@ public enum Components {
10261113
"withdrawn_at",
10271114
"vulnerabilities",
10281115
"cvss",
1116+
"cvss_severities",
10291117
"cwes",
10301118
"epss",
10311119
"credits"
@@ -4889,6 +4977,8 @@ public enum Components {
48894977
}
48904978
/// - Remark: Generated from `#/components/schemas/repository-advisory/cvss`.
48914979
public var cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload?
4980+
/// - Remark: Generated from `#/components/schemas/repository-advisory/cvss_severities`.
4981+
public var cvss_severities: Components.Schemas.cvss_hyphen_severities?
48924982
/// - Remark: Generated from `#/components/schemas/repository-advisory/cwesPayload`.
48934983
public struct cwesPayloadPayload: Codable, Hashable, Sendable {
48944984
/// The Common Weakness Enumeration (CWE) identifier.
@@ -5009,6 +5099,7 @@ public enum Components {
50095099
/// - submission:
50105100
/// - vulnerabilities:
50115101
/// - cvss:
5102+
/// - cvss_severities:
50125103
/// - cwes:
50135104
/// - cwe_ids: A list of only the CWE IDs.
50145105
/// - credits:
@@ -5036,6 +5127,7 @@ public enum Components {
50365127
submission: Components.Schemas.repository_hyphen_advisory.submissionPayload? = nil,
50375128
vulnerabilities: [Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability]? = nil,
50385129
cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload? = nil,
5130+
cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil,
50395131
cwes: Components.Schemas.repository_hyphen_advisory.cwesPayload? = nil,
50405132
cwe_ids: [Swift.String]? = nil,
50415133
credits: Components.Schemas.repository_hyphen_advisory.creditsPayload? = nil,
@@ -5063,6 +5155,7 @@ public enum Components {
50635155
self.submission = submission
50645156
self.vulnerabilities = vulnerabilities
50655157
self.cvss = cvss
5158+
self.cvss_severities = cvss_severities
50665159
self.cwes = cwes
50675160
self.cwe_ids = cwe_ids
50685161
self.credits = credits
@@ -5091,6 +5184,7 @@ public enum Components {
50915184
case submission
50925185
case vulnerabilities
50935186
case cvss
5187+
case cvss_severities
50945188
case cwes
50955189
case cwe_ids
50965190
case credits
@@ -5177,6 +5271,10 @@ public enum Components {
51775271
Components.Schemas.repository_hyphen_advisory.cvssPayload.self,
51785272
forKey: .cvss
51795273
)
5274+
cvss_severities = try container.decodeIfPresent(
5275+
Components.Schemas.cvss_hyphen_severities.self,
5276+
forKey: .cvss_severities
5277+
)
51805278
cwes = try container.decodeIfPresent(
51815279
Components.Schemas.repository_hyphen_advisory.cwesPayload.self,
51825280
forKey: .cwes
@@ -5225,6 +5323,7 @@ public enum Components {
52255323
"submission",
52265324
"vulnerabilities",
52275325
"cvss",
5326+
"cvss_severities",
52285327
"cwes",
52295328
"cwe_ids",
52305329
"credits",

0 commit comments

Comments
 (0)