diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index 098effdac07..4cba28c20b6 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -1631,10 +1631,22 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/description`. public var description: Swift.String? + /// A description of the rule used to detect the alert. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/full_description`. + public var full_description: Swift.String? /// A set of tags applicable for the rule. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/tags`. public var tags: [Swift.String]? + /// Detailed documentation for the rule as GitHub Flavored Markdown. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/help`. + public var help: Swift.String? + /// A link to the documentation for the rule used to detect the alert. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule-summary/help_uri`. + public var help_uri: Swift.String? /// Creates a new `code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary`. /// /// - Parameters: @@ -1643,21 +1655,30 @@ public enum Components { /// - severity: The severity of the alert. /// - security_severity_level: The security severity of the alert. /// - description: A short description of the rule used to detect the alert. + /// - full_description: A description of the rule used to detect the alert. /// - tags: A set of tags applicable for the rule. + /// - help: Detailed documentation for the rule as GitHub Flavored Markdown. + /// - help_uri: A link to the documentation for the rule used to detect the alert. public init( id: Swift.String? = nil, name: Swift.String? = nil, severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.severityPayload? = nil, security_severity_level: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_rule_hyphen_summary.security_severity_levelPayload? = nil, description: Swift.String? = nil, - tags: [Swift.String]? = nil + full_description: Swift.String? = nil, + tags: [Swift.String]? = nil, + help: Swift.String? = nil, + help_uri: Swift.String? = nil ) { self.id = id self.name = name self.severity = severity self.security_severity_level = security_severity_level self.description = description + self.full_description = full_description self.tags = tags + self.help = help + self.help_uri = help_uri } public enum CodingKeys: String, CodingKey { case id @@ -1665,7 +1686,10 @@ public enum Components { case severity case security_severity_level case description + case full_description case tags + case help + case help_uri } } /// The version of the tool used to generate the code scanning analysis. @@ -2107,7 +2131,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/description`. public var description: Swift.String? - /// description of the rule used to detect the alert. + /// A description of the rule used to detect the alert. /// /// - Remark: Generated from `#/components/schemas/code-scanning-alert-rule/full_description`. public var full_description: Swift.String? @@ -2131,7 +2155,7 @@ public enum Components { /// - severity: The severity of the alert. /// - security_severity_level: The security severity of the alert. /// - description: A short description of the rule used to detect the alert. - /// - full_description: description of the rule used to detect the alert. + /// - full_description: A description of the rule used to detect the alert. /// - tags: A set of tags applicable for the rule. /// - help: Detailed documentation for the rule as GitHub Flavored Markdown. /// - help_uri: A link to the documentation for the rule used to detect the alert. diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index 76d78c0936f..9b9bca817fe 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -1150,6 +1150,18 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_validity_checks`. public var secret_scanning_validity_checks: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_validity_checksPayload? + /// The enablement status of secret scanning non-provider patterns + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_non_provider_patterns`. + @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + case not_set = "not_set" + } + /// The enablement status of secret scanning non-provider patterns + /// + /// - Remark: Generated from `#/components/schemas/code-security-configuration/secret_scanning_non_provider_patterns`. + public var secret_scanning_non_provider_patterns: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_non_provider_patternsPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/components/schemas/code-security-configuration/private_vulnerability_reporting`. @@ -1202,6 +1214,7 @@ public enum Components { /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks + /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non-provider patterns /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration /// - url: The URL of the configuration @@ -1223,6 +1236,7 @@ public enum Components { secret_scanning: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_push_protectionPayload? = nil, secret_scanning_validity_checks: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_validity_checksPayload? = nil, + secret_scanning_non_provider_patterns: Components.Schemas.code_hyphen_security_hyphen_configuration.secret_scanning_non_provider_patternsPayload? = nil, private_vulnerability_reporting: Components.Schemas.code_hyphen_security_hyphen_configuration.private_vulnerability_reportingPayload? = nil, enforcement: Components.Schemas.code_hyphen_security_hyphen_configuration.enforcementPayload? = nil, url: Swift.String? = nil, @@ -1244,6 +1258,7 @@ public enum Components { self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_validity_checks = secret_scanning_validity_checks + self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns self.private_vulnerability_reporting = private_vulnerability_reporting self.enforcement = enforcement self.url = url @@ -1266,6 +1281,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_validity_checks + case secret_scanning_non_provider_patterns case private_vulnerability_reporting case enforcement case url @@ -2004,6 +2020,18 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_validity_checks`. public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + /// The enablement status of secret scanning non provider patterns + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. + @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + case not_set = "not_set" + } + /// The enablement status of secret scanning non provider patterns + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/secret_scanning_non_provider_patterns`. + public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/POST/requestBody/json/private_vulnerability_reporting`. @@ -2042,6 +2070,7 @@ public enum Operations { /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks + /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non provider patterns /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( @@ -2057,6 +2086,7 @@ public enum Operations { secret_scanning: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, secret_scanning_push_protection: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, secret_scanning_validity_checks: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, + secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, private_vulnerability_reporting: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, enforcement: Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? = nil ) { @@ -2072,6 +2102,7 @@ public enum Operations { self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_validity_checks = secret_scanning_validity_checks + self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns self.private_vulnerability_reporting = private_vulnerability_reporting self.enforcement = enforcement } @@ -2088,6 +2119,7 @@ public enum Operations { case secret_scanning case secret_scanning_push_protection case secret_scanning_validity_checks + case secret_scanning_non_provider_patterns case private_vulnerability_reporting case enforcement } @@ -2141,6 +2173,10 @@ public enum Operations { Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, forKey: .secret_scanning_validity_checks ) + secret_scanning_non_provider_patterns = try container.decodeIfPresent( + Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, + forKey: .secret_scanning_non_provider_patterns + ) private_vulnerability_reporting = try container.decodeIfPresent( Operations.code_hyphen_security_sol_create_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, forKey: .private_vulnerability_reporting @@ -2162,6 +2198,7 @@ public enum Operations { "secret_scanning", "secret_scanning_push_protection", "secret_scanning_validity_checks", + "secret_scanning_non_provider_patterns", "private_vulnerability_reporting", "enforcement" ]) @@ -3123,6 +3160,18 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_validity_checks`. public var secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? + /// The enablement status of secret scanning non-provider patterns + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. + @frozen public enum secret_scanning_non_provider_patternsPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + case not_set = "not_set" + } + /// The enablement status of secret scanning non-provider patterns + /// + /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/secret_scanning_non_provider_patterns`. + public var secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? /// The enablement status of private vulnerability reporting /// /// - Remark: Generated from `#/paths/orgs/{org}/code-security/configurations/{configuration_id}/PATCH/requestBody/json/private_vulnerability_reporting`. @@ -3161,6 +3210,7 @@ public enum Operations { /// - secret_scanning: The enablement status of secret scanning /// - secret_scanning_push_protection: The enablement status of secret scanning push protection /// - secret_scanning_validity_checks: The enablement status of secret scanning validity checks + /// - secret_scanning_non_provider_patterns: The enablement status of secret scanning non-provider patterns /// - private_vulnerability_reporting: The enablement status of private vulnerability reporting /// - enforcement: The enforcement status for a security configuration public init( @@ -3176,6 +3226,7 @@ public enum Operations { secret_scanning: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanningPayload? = nil, secret_scanning_push_protection: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_push_protectionPayload? = nil, secret_scanning_validity_checks: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload? = nil, + secret_scanning_non_provider_patterns: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload? = nil, private_vulnerability_reporting: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload? = nil, enforcement: Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.enforcementPayload? = nil ) { @@ -3191,6 +3242,7 @@ public enum Operations { self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_validity_checks = secret_scanning_validity_checks + self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns self.private_vulnerability_reporting = private_vulnerability_reporting self.enforcement = enforcement } @@ -3207,6 +3259,7 @@ public enum Operations { case secret_scanning case secret_scanning_push_protection case secret_scanning_validity_checks + case secret_scanning_non_provider_patterns case private_vulnerability_reporting case enforcement } @@ -3260,6 +3313,10 @@ public enum Operations { Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_validity_checksPayload.self, forKey: .secret_scanning_validity_checks ) + secret_scanning_non_provider_patterns = try container.decodeIfPresent( + Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.secret_scanning_non_provider_patternsPayload.self, + forKey: .secret_scanning_non_provider_patterns + ) private_vulnerability_reporting = try container.decodeIfPresent( Operations.code_hyphen_security_sol_update_hyphen_configuration.Input.Body.jsonPayload.private_vulnerability_reportingPayload.self, forKey: .private_vulnerability_reporting @@ -3281,6 +3338,7 @@ public enum Operations { "secret_scanning", "secret_scanning_push_protection", "secret_scanning_validity_checks", + "secret_scanning_non_provider_patterns", "private_vulnerability_reporting", "enforcement" ]) diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index 3e93aff0c8b..07269ad7f7a 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -551,6 +551,83 @@ public enum Servers { public enum Components { /// Types generated from the `#/components/schemas` section of the OpenAPI document. public enum Schemas { + /// - Remark: Generated from `#/components/schemas/cvss-severities`. + public struct cvss_hyphen_severities: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. + public struct cvss_v3Payload: Codable, Hashable, Sendable { + /// The CVSS 3 vector string. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`. + public var vector_string: Swift.String? + /// The CVSS 3 score. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`. + public var score: Swift.Double? + /// Creates a new `cvss_v3Payload`. + /// + /// - Parameters: + /// - vector_string: The CVSS 3 vector string. + /// - score: The CVSS 3 score. + public init( + vector_string: Swift.String? = nil, + score: Swift.Double? = nil + ) { + self.vector_string = vector_string + self.score = score + } + public enum CodingKeys: String, CodingKey { + case vector_string + case score + } + } + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. + public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. + public struct cvss_v4Payload: Codable, Hashable, Sendable { + /// The CVSS 4 vector string. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`. + public var vector_string: Swift.String? + /// The CVSS 4 score. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`. + public var score: Swift.Double? + /// Creates a new `cvss_v4Payload`. + /// + /// - Parameters: + /// - vector_string: The CVSS 4 vector string. + /// - score: The CVSS 4 score. + public init( + vector_string: Swift.String? = nil, + score: Swift.Double? = nil + ) { + self.vector_string = vector_string + self.score = score + } + public enum CodingKeys: String, CodingKey { + case vector_string + case score + } + } + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. + public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? + /// Creates a new `cvss_hyphen_severities`. + /// + /// - Parameters: + /// - cvss_v3: + /// - cvss_v4: + public init( + cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil, + cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil + ) { + self.cvss_v3 = cvss_v3 + self.cvss_v4 = cvss_v4 + } + public enum CodingKeys: String, CodingKey { + case cvss_v3 + case cvss_v4 + } + } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. @@ -1228,6 +1305,8 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss`. public var cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload + /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cvss_severities`. + public var cvss_severities: Components.Schemas.cvss_hyphen_severities? /// A CWE weakness assigned to the advisory. /// /// - Remark: Generated from `#/components/schemas/dependabot-alert-security-advisory/cwesPayload`. @@ -1398,6 +1477,7 @@ public enum Components { /// - vulnerabilities: Vulnerable version range information for the advisory. /// - severity: The severity of the advisory. /// - cvss: Details for the advisory pertaining to the Common Vulnerability Scoring System. + /// - cvss_severities: /// - cwes: Details for the advisory pertaining to Common Weakness Enumeration. /// - identifiers: Values that identify this advisory among security information sources. /// - references: Links to additional advisory information. @@ -1412,6 +1492,7 @@ public enum Components { vulnerabilities: [Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_vulnerability], severity: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.severityPayload, cvss: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload, + cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, cwes: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload, identifiers: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.identifiersPayload, references: Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.referencesPayload, @@ -1426,6 +1507,7 @@ public enum Components { self.vulnerabilities = vulnerabilities self.severity = severity self.cvss = cvss + self.cvss_severities = cvss_severities self.cwes = cwes self.identifiers = identifiers self.references = references @@ -1441,6 +1523,7 @@ public enum Components { case vulnerabilities case severity case cvss + case cvss_severities case cwes case identifiers case references @@ -1478,6 +1561,10 @@ public enum Components { Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cvssPayload.self, forKey: .cvss ) + cvss_severities = try container.decodeIfPresent( + Components.Schemas.cvss_hyphen_severities.self, + forKey: .cvss_severities + ) cwes = try container.decode( Components.Schemas.dependabot_hyphen_alert_hyphen_security_hyphen_advisory.cwesPayload.self, forKey: .cwes @@ -1510,6 +1597,7 @@ public enum Components { "vulnerabilities", "severity", "cvss", + "cvss_severities", "cwes", "identifiers", "references", diff --git a/Sources/gists/Types.swift b/Sources/gists/Types.swift index 1b538eb8d6d..36b45b5f90b 100644 --- a/Sources/gists/Types.swift +++ b/Sources/gists/Types.swift @@ -2389,7 +2389,7 @@ public enum Components { /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int + public typealias comment_hyphen_id = Swift.Int64 /// The handle for the GitHub user account. /// /// - Remark: Generated from `#/components/parameters/username`. diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 094041126fb..205062939b1 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -7991,7 +7991,7 @@ public enum Components { /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int + public typealias comment_hyphen_id = Swift.Int64 /// A list of comma separated label names. Example: `bug,ui,@high` /// /// - Remark: Generated from `#/components/parameters/labels`. diff --git a/Sources/meta/Types.swift b/Sources/meta/Types.swift index 3ada4926c35..938e1e9ec1e 100644 --- a/Sources/meta/Types.swift +++ b/Sources/meta/Types.swift @@ -443,6 +443,8 @@ public enum Components { public var actions: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/actions_macos`. public var actions_macos: [Swift.String]? + /// - Remark: Generated from `#/components/schemas/api-overview/codespaces`. + public var codespaces: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/dependabot`. public var dependabot: [Swift.String]? /// - Remark: Generated from `#/components/schemas/api-overview/copilot`. @@ -535,6 +537,7 @@ public enum Components { /// - importer: /// - actions: /// - actions_macos: + /// - codespaces: /// - dependabot: /// - copilot: /// - domains: @@ -552,6 +555,7 @@ public enum Components { importer: [Swift.String]? = nil, actions: [Swift.String]? = nil, actions_macos: [Swift.String]? = nil, + codespaces: [Swift.String]? = nil, dependabot: [Swift.String]? = nil, copilot: [Swift.String]? = nil, domains: Components.Schemas.api_hyphen_overview.domainsPayload? = nil @@ -569,6 +573,7 @@ public enum Components { self.importer = importer self.actions = actions self.actions_macos = actions_macos + self.codespaces = codespaces self.dependabot = dependabot self.copilot = copilot self.domains = domains @@ -587,6 +592,7 @@ public enum Components { case importer case actions case actions_macos + case codespaces case dependabot case copilot case domains diff --git a/Sources/pulls/Types.swift b/Sources/pulls/Types.swift index 981a93264fc..2b0ecccaa7a 100644 --- a/Sources/pulls/Types.swift +++ b/Sources/pulls/Types.swift @@ -6761,7 +6761,7 @@ public enum Components { /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int + public typealias comment_hyphen_id = Swift.Int64 /// The property to sort the results by. /// /// - Remark: Generated from `#/components/parameters/sort`. diff --git a/Sources/reactions/Types.swift b/Sources/reactions/Types.swift index 4d42b545b3a..0a4bf435183 100644 --- a/Sources/reactions/Types.swift +++ b/Sources/reactions/Types.swift @@ -1106,7 +1106,7 @@ public enum Components { /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int + public typealias comment_hyphen_id = Swift.Int64 /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index de935b61842..d47ff7f774a 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -1675,9 +1675,9 @@ public struct Client: APIProtocol { /// /// Store an artifact attestation and associate it with a repository. /// - /// The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required. + /// The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. /// - /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index f498e59a45c..248dfda1fe3 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -127,9 +127,9 @@ public protocol APIProtocol: Sendable { /// /// Store an artifact attestation and associate it with a repository. /// - /// The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required. + /// The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. /// - /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. @@ -2319,9 +2319,9 @@ extension APIProtocol { /// /// Store an artifact attestation and associate it with a repository. /// - /// The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required. + /// The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. /// - /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. @@ -10963,12 +10963,10 @@ public enum Components { public struct repository_hyphen_ruleset_hyphen_bypass_hyphen_actor: Codable, Hashable, Sendable { /// The ID of the actor that can bypass a ruleset. If `actor_type` is `OrganizationAdmin`, this should be `1`. If `actor_type` is `DeployKey`, this should be null. `OrganizationAdmin` is not applicable for personal repositories. /// - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_id`. public var actor_id: Swift.Int? /// The type of actor that can bypass a ruleset. /// - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_type`. @frozen public enum actor_typePayload: String, Codable, Hashable, Sendable { case Integration = "Integration" @@ -10979,12 +10977,10 @@ public enum Components { } /// The type of actor that can bypass a ruleset. /// - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/actor_type`. public var actor_type: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.actor_typePayload /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. /// - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/bypass_mode`. @frozen public enum bypass_modePayload: String, Codable, Hashable, Sendable { case always = "always" @@ -10992,7 +10988,6 @@ public enum Components { } /// When the specified actor can bypass the ruleset. `pull_request` means that an actor can only bypass rules on pull requests. `pull_request` is not applicable for the `DeployKey` actor type. /// - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset-bypass-actor/bypass_mode`. public var bypass_mode: Components.Schemas.repository_hyphen_ruleset_hyphen_bypass_hyphen_actor.bypass_modePayload /// Creates a new `repository_hyphen_ruleset_hyphen_bypass_hyphen_actor`. @@ -11236,7 +11231,6 @@ public enum Components { } /// Conditions for an organization ruleset. The conditions object should contain both `repository_name` and `ref_name` properties or both `repository_id` and `ref_name` properties. /// - /// /// - Remark: Generated from `#/components/schemas/org-ruleset-conditions`. @frozen public enum org_hyphen_ruleset_hyphen_conditions: Codable, Hashable, Sendable { /// Conditions to target repositories by name and refs by name @@ -12498,9 +12492,6 @@ public enum Components { case repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_branch_hyphen_name_hyphen_pattern) /// - Remark: Generated from `#/components/schemas/repository-rule/case15`. case repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern(Components.Schemas.repository_hyphen_rule_hyphen_tag_hyphen_name_hyphen_pattern) - /// > [!NOTE] - /// > `file_path_restriction` is in beta and subject to change. - /// /// Prevent commits that include changes in specified file paths from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case16`. @@ -12547,16 +12538,10 @@ public enum Components { case parameters } } - /// > [!NOTE] - /// > `file_path_restriction` is in beta and subject to change. - /// /// Prevent commits that include changes in specified file paths from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case16`. case case16(Components.Schemas.repository_hyphen_rule.Case16Payload) - /// > [!NOTE] - /// > `max_file_path_length` is in beta and subject to change. - /// /// Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case17`. @@ -12603,16 +12588,10 @@ public enum Components { case parameters } } - /// > [!NOTE] - /// > `max_file_path_length` is in beta and subject to change. - /// /// Prevent commits that include file paths that exceed a specified character limit from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case17`. case case17(Components.Schemas.repository_hyphen_rule.Case17Payload) - /// > [!NOTE] - /// > `file_extension_restriction` is in beta and subject to change. - /// /// Prevent commits that include files with specified file extensions from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case18`. @@ -12659,16 +12638,10 @@ public enum Components { case parameters } } - /// > [!NOTE] - /// > `file_extension_restriction` is in beta and subject to change. - /// /// Prevent commits that include files with specified file extensions from being pushed to the commit graph. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case18`. case case18(Components.Schemas.repository_hyphen_rule.Case18Payload) - /// > [!NOTE] - /// > `max_file_size` is in beta and subject to change. - /// /// Prevent commits that exceed a specified file size limit from being pushed to the commit. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case19`. @@ -12715,9 +12688,6 @@ public enum Components { case parameters } } - /// > [!NOTE] - /// > `max_file_size` is in beta and subject to change. - /// /// Prevent commits that exceed a specified file size limit from being pushed to the commit. /// /// - Remark: Generated from `#/components/schemas/repository-rule/case19`. @@ -12921,9 +12891,6 @@ public enum Components { public var name: Swift.String /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/target`. @frozen public enum targetPayload: String, Codable, Hashable, Sendable { case branch = "branch" @@ -12932,9 +12899,6 @@ public enum Components { } /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/components/schemas/repository-ruleset/target`. public var target: Components.Schemas.repository_hyphen_ruleset.targetPayload? /// The type of the source of the ruleset @@ -22120,7 +22084,7 @@ public enum Components { /// The unique identifier of the comment. /// /// - Remark: Generated from `#/components/parameters/comment-id`. - public typealias comment_hyphen_id = Swift.Int + public typealias comment_hyphen_id = Swift.Int64 /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. @@ -22147,7 +22111,6 @@ public enum Components { public typealias invitation_hyphen_id = Swift.Int /// The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. /// - /// /// - Remark: Generated from `#/components/parameters/ref-in-query`. public typealias ref_hyphen_in_hyphen_query = Swift.String /// The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. @@ -23692,9 +23655,6 @@ public enum Operations { public var name: Swift.String /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/target`. @frozen public enum targetPayload: String, Codable, Hashable, Sendable { case branch = "branch" @@ -23703,9 +23663,6 @@ public enum Operations { } /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/target`. public var target: Operations.repos_sol_create_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/POST/requestBody/json/enforcement`. @@ -23931,7 +23888,6 @@ public enum Operations { public struct Query: Sendable, Hashable { /// The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. /// - /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/rule-suites/GET/query/ref`. public var ref: Components.Parameters.ref_hyphen_in_hyphen_query? /// The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. @@ -24596,9 +24552,6 @@ public enum Operations { public var name: Swift.String? /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. @frozen public enum targetPayload: String, Codable, Hashable, Sendable { case branch = "branch" @@ -24607,9 +24560,6 @@ public enum Operations { } /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. public var target: Operations.repos_sol_update_hyphen_org_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? /// - Remark: Generated from `#/paths/orgs/{org}/rulesets/{ruleset_id}/PUT/requestBody/json/enforcement`. @@ -26374,9 +26324,9 @@ public enum Operations { /// /// Store an artifact attestation and associate it with a repository. /// - /// The authenticated user must have write permission to the repository and, if using a fine-grained access token the `attestations:write` permission is required. + /// The authenticated user must have write permission to the repository and, if using a fine-grained access token, the `attestations:write` permission is required. /// - /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For amore information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). + /// Artifact attestations are meant to be created using the [attest action](https://github.com/actions/attest). For more information, see our guide on [using artifact attestations to establish a build's provenance](https://docs.github.com/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds). /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/attestations`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/attestations/post(repos/create-attestation)`. @@ -28636,7 +28586,6 @@ public enum Operations { public var strict: Swift.Bool /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/contexts`. @available(*, deprecated) public var contexts: [Swift.String] @@ -31077,7 +31026,6 @@ public enum Operations { public var strict: Swift.Bool? /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/contexts`. @available(*, deprecated) public var contexts: [Swift.String]? @@ -57119,9 +57067,6 @@ public enum Operations { public var name: Swift.String /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/target`. @frozen public enum targetPayload: String, Codable, Hashable, Sendable { case branch = "branch" @@ -57130,9 +57075,6 @@ public enum Operations { } /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/target`. public var target: Operations.repos_sol_create_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/POST/requestBody/json/enforcement`. @@ -57367,7 +57309,6 @@ public enum Operations { public struct Query: Sendable, Hashable { /// The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. /// - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/rule-suites/GET/query/ref`. public var ref: Components.Parameters.ref_hyphen_in_hyphen_query? /// - Remark: Generated from `#/components/parameters/time-period`. @@ -58064,9 +58005,6 @@ public enum Operations { public var name: Swift.String? /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. @frozen public enum targetPayload: String, Codable, Hashable, Sendable { case branch = "branch" @@ -58075,9 +58013,6 @@ public enum Operations { } /// The target of the ruleset /// - /// > [!NOTE] - /// > The `push` target is in beta and is subject to change. - /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/target`. public var target: Operations.repos_sol_update_hyphen_repo_hyphen_ruleset.Input.Body.jsonPayload.targetPayload? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/rulesets/{ruleset_id}/PUT/requestBody/json/enforcement`. diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index 4f7aa8f66c4..faf4c6ee707 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -423,6 +423,83 @@ public enum Components { case vulnerable_functions } } + /// - Remark: Generated from `#/components/schemas/cvss-severities`. + public struct cvss_hyphen_severities: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. + public struct cvss_v3Payload: Codable, Hashable, Sendable { + /// The CVSS 3 vector string. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/vector_string`. + public var vector_string: Swift.String? + /// The CVSS 3 score. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3/score`. + public var score: Swift.Double? + /// Creates a new `cvss_v3Payload`. + /// + /// - Parameters: + /// - vector_string: The CVSS 3 vector string. + /// - score: The CVSS 3 score. + public init( + vector_string: Swift.String? = nil, + score: Swift.Double? = nil + ) { + self.vector_string = vector_string + self.score = score + } + public enum CodingKeys: String, CodingKey { + case vector_string + case score + } + } + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v3`. + public var cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. + public struct cvss_v4Payload: Codable, Hashable, Sendable { + /// The CVSS 4 vector string. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/vector_string`. + public var vector_string: Swift.String? + /// The CVSS 4 score. + /// + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4/score`. + public var score: Swift.Double? + /// Creates a new `cvss_v4Payload`. + /// + /// - Parameters: + /// - vector_string: The CVSS 4 vector string. + /// - score: The CVSS 4 score. + public init( + vector_string: Swift.String? = nil, + score: Swift.Double? = nil + ) { + self.vector_string = vector_string + self.score = score + } + public enum CodingKeys: String, CodingKey { + case vector_string + case score + } + } + /// - Remark: Generated from `#/components/schemas/cvss-severities/cvss_v4`. + public var cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? + /// Creates a new `cvss_hyphen_severities`. + /// + /// - Parameters: + /// - cvss_v3: + /// - cvss_v4: + public init( + cvss_v3: Components.Schemas.cvss_hyphen_severities.cvss_v3Payload? = nil, + cvss_v4: Components.Schemas.cvss_hyphen_severities.cvss_v4Payload? = nil + ) { + self.cvss_v3 = cvss_v3 + self.cvss_v4 = cvss_v4 + } + public enum CodingKeys: String, CodingKey { + case cvss_v3 + case cvss_v4 + } + } /// A GitHub user. /// /// - Remark: Generated from `#/components/schemas/simple-user`. @@ -733,6 +810,8 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/global-advisory/cvss`. public var cvss: Components.Schemas.global_hyphen_advisory.cvssPayload? + /// - Remark: Generated from `#/components/schemas/global-advisory/cvss_severities`. + public var cvss_severities: Components.Schemas.cvss_hyphen_severities? /// - Remark: Generated from `#/components/schemas/global-advisory/cwesPayload`. public struct cwesPayloadPayload: Codable, Hashable, Sendable { /// The Common Weakness Enumeration (CWE) identifier. @@ -842,6 +921,7 @@ public enum Components { /// - withdrawn_at: The date and time of when the advisory was withdrawn, in ISO 8601 format. /// - vulnerabilities: The products and respective version ranges affected by the advisory. /// - cvss: + /// - cvss_severities: /// - cwes: /// - epss: /// - credits: The users who contributed to the advisory. @@ -865,6 +945,7 @@ public enum Components { withdrawn_at: Foundation.Date? = nil, vulnerabilities: [Components.Schemas.vulnerability]? = nil, cvss: Components.Schemas.global_hyphen_advisory.cvssPayload? = nil, + cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, cwes: Components.Schemas.global_hyphen_advisory.cwesPayload? = nil, epss: Components.Schemas.global_hyphen_advisory.epssPayload? = nil, credits: Components.Schemas.global_hyphen_advisory.creditsPayload? = nil @@ -888,6 +969,7 @@ public enum Components { self.withdrawn_at = withdrawn_at self.vulnerabilities = vulnerabilities self.cvss = cvss + self.cvss_severities = cvss_severities self.cwes = cwes self.epss = epss self.credits = credits @@ -912,6 +994,7 @@ public enum Components { case withdrawn_at case vulnerabilities case cvss + case cvss_severities case cwes case epss case credits @@ -994,6 +1077,10 @@ public enum Components { Components.Schemas.global_hyphen_advisory.cvssPayload.self, forKey: .cvss ) + cvss_severities = try container.decodeIfPresent( + Components.Schemas.cvss_hyphen_severities.self, + forKey: .cvss_severities + ) cwes = try container.decodeIfPresent( Components.Schemas.global_hyphen_advisory.cwesPayload.self, forKey: .cwes @@ -1026,6 +1113,7 @@ public enum Components { "withdrawn_at", "vulnerabilities", "cvss", + "cvss_severities", "cwes", "epss", "credits" @@ -4889,6 +4977,8 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss`. public var cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload? + /// - Remark: Generated from `#/components/schemas/repository-advisory/cvss_severities`. + public var cvss_severities: Components.Schemas.cvss_hyphen_severities? /// - Remark: Generated from `#/components/schemas/repository-advisory/cwesPayload`. public struct cwesPayloadPayload: Codable, Hashable, Sendable { /// The Common Weakness Enumeration (CWE) identifier. @@ -5009,6 +5099,7 @@ public enum Components { /// - submission: /// - vulnerabilities: /// - cvss: + /// - cvss_severities: /// - cwes: /// - cwe_ids: A list of only the CWE IDs. /// - credits: @@ -5036,6 +5127,7 @@ public enum Components { submission: Components.Schemas.repository_hyphen_advisory.submissionPayload? = nil, vulnerabilities: [Components.Schemas.repository_hyphen_advisory_hyphen_vulnerability]? = nil, cvss: Components.Schemas.repository_hyphen_advisory.cvssPayload? = nil, + cvss_severities: Components.Schemas.cvss_hyphen_severities? = nil, cwes: Components.Schemas.repository_hyphen_advisory.cwesPayload? = nil, cwe_ids: [Swift.String]? = nil, credits: Components.Schemas.repository_hyphen_advisory.creditsPayload? = nil, @@ -5063,6 +5155,7 @@ public enum Components { self.submission = submission self.vulnerabilities = vulnerabilities self.cvss = cvss + self.cvss_severities = cvss_severities self.cwes = cwes self.cwe_ids = cwe_ids self.credits = credits @@ -5091,6 +5184,7 @@ public enum Components { case submission case vulnerabilities case cvss + case cvss_severities case cwes case cwe_ids case credits @@ -5177,6 +5271,10 @@ public enum Components { Components.Schemas.repository_hyphen_advisory.cvssPayload.self, forKey: .cvss ) + cvss_severities = try container.decodeIfPresent( + Components.Schemas.cvss_hyphen_severities.self, + forKey: .cvss_severities + ) cwes = try container.decodeIfPresent( Components.Schemas.repository_hyphen_advisory.cwesPayload.self, forKey: .cwes @@ -5225,6 +5323,7 @@ public enum Components { "submission", "vulnerabilities", "cvss", + "cvss_severities", "cwes", "cwe_ids", "credits", diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 38baa7aebf2..066dbf5dc65 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 38baa7aebf29fe927aac6aa0ae769b7a8d3204ca +Subproject commit 066dbf5dc65b77a59b36a517cafeda2feb369334