Skip to content

Commit 92126e7

Browse files
Commit via running ake Sources/dependabot
1 parent 9648d57 commit 92126e7

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

Sources/dependabot/Types.swift

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,83 @@ public enum Servers {
551551
public enum Components {
552552
/// Types generated from the `#/components/schemas` section of the OpenAPI document.
553553
public enum Schemas {
554+
/// - Remark: Generated from `#/components/schemas/cvss-severities`.
555+
public struct cvss_hyphen_severities: Codable, Hashable, Sendable {
556+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`.
557+
public struct cvss_v3Payload: Codable, Hashable, Sendable {
558+
/// The CVSS 3 vector string.
559+
///
560+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`.
561+
public var vector_string: Swift.String?
562+
/// The CVSS 3 score.
563+
///
564+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`.
565+
public var score: Swift.Double?
566+
/// Creates a new `cvss_v3Payload`.
567+
///
568+
/// - Parameters:
569+
/// - vector_string: The CVSS 3 vector string.
570+
/// - score: The CVSS 3 score.
571+
public init(
572+
vector_string: Swift.String? = nil,
573+
score: Swift.Double? = nil
574+
) {
575+
self.vector_string = vector_string
576+
self.score = score
577+
}
578+
public enum CodingKeys: String, CodingKey {
579+
case vector_string
580+
case score
581+
}
582+
}
583+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`.
584+
public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload?
585+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`.
586+
public struct cvss_v4Payload: Codable, Hashable, Sendable {
587+
/// The CVSS 4 vector string.
588+
///
589+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`.
590+
public var vector_string: Swift.String?
591+
/// The CVSS 4 score.
592+
///
593+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`.
594+
public var score: Swift.Double?
595+
/// Creates a new `cvss_v4Payload`.
596+
///
597+
/// - Parameters:
598+
/// - vector_string: The CVSS 4 vector string.
599+
/// - score: The CVSS 4 score.
600+
public init(
601+
vector_string: Swift.String? = nil,
602+
score: Swift.Double? = nil
603+
) {
604+
self.vector_string = vector_string
605+
self.score = score
606+
}
607+
public enum CodingKeys: String, CodingKey {
608+
case vector_string
609+
case score
610+
}
611+
}
612+
/// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`.
613+
public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload?
614+
/// Creates a new `cvss_hyphen_severities`.
615+
///
616+
/// - Parameters:
617+
/// - cvss_v3:
618+
/// - cvss_v4:
619+
public init(
620+
cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil,
621+
cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil
622+
) {
623+
self.cvss_v3 = cvss_v3
624+
self.cvss_v4 = cvss_v4
625+
}
626+
public enum CodingKeys: String, CodingKey {
627+
case cvss_v3
628+
case cvss_v4
629+
}
630+
}
554631
/// A GitHub user.
555632
///
556633
/// - Remark: Generated from `#/components/schemas/simple-user`.
@@ -1228,6 +1305,8 @@ public enum Components {
12281305
///
12291306
/// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss`.
12301307
public var cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload
1308+
/// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss_severities`.
1309+
public var cvss_severities: Components.Schemas.cvss_hyphen_severities?
12311310
/// A CWE weakness assigned to the advisory.
12321311
///
12331312
/// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwesPayload`.
@@ -1398,6 +1477,7 @@ public enum Components {
13981477
/// - vulnerabilities: Vulnerable version range information for the advisory.
13991478
/// - severity: The severity of the advisory.
14001479
/// - cvss: Details for the advisory pertaining to the Common Vulnerability Scoring System.
1480+
/// - cvss_severities:
14011481
/// - cwes: Details for the advisory pertaining to Common Weakness Enumeration.
14021482
/// - identifiers: Values that identify this advisory among security information sources.
14031483
/// - references: Links to additional advisory information.
@@ -1412,6 +1492,7 @@ public enum Components {
14121492
vulnerabilities: [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability],
14131493
severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.severityPayload,
14141494
cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload,
1495+
cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil,
14151496
cwes: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload,
14161497
identifiers: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayload,
14171498
references: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayload,
@@ -1426,6 +1507,7 @@ public enum Components {
14261507
self.vulnerabilities = vulnerabilities
14271508
self.severity = severity
14281509
self.cvss = cvss
1510+
self.cvss_severities = cvss_severities
14291511
self.cwes = cwes
14301512
self.identifiers = identifiers
14311513
self.references = references
@@ -1441,6 +1523,7 @@ public enum Components {
14411523
case vulnerabilities
14421524
case severity
14431525
case cvss
1526+
case cvss_severities
14441527
case cwes
14451528
case identifiers
14461529
case references
@@ -1478,6 +1561,10 @@ public enum Components {
14781561
Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload.self,
14791562
forKey: .cvss
14801563
)
1564+
cvss_severities = try container.decodeIfPresent(
1565+
Components.Schemas.cvss_hyphen_severities.self,
1566+
forKey: .cvss_severities
1567+
)
14811568
cwes = try container.decode(
14821569
Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload.self,
14831570
forKey: .cwes
@@ -1510,6 +1597,7 @@ public enum Components {
15101597
"vulnerabilities",
15111598
"severity",
15121599
"cvss",
1600+
"cvss_severities",
15131601
"cwes",
15141602
"identifiers",
15151603
"references",

0 commit comments

Comments
 (0)