diff --git a/Sources/checks/Client.swift b/Sources/checks/Client.swift index 38920d58672..ce23dfcd593 100644 --- a/Sources/checks/Client.swift +++ b/Sources/checks/Client.swift @@ -366,8 +366,6 @@ public struct Client: APIProtocol { /// /// For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)". /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. public func checks_sol_rerequest_hyphen_run(_ input: Operations.checks_sol_rerequest_hyphen_run.Input) async throws -> Operations.checks_sol_rerequest_hyphen_run.Output { @@ -861,8 +859,6 @@ public struct Client: APIProtocol { /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. public func checks_sol_rerequest_hyphen_suite(_ input: Operations.checks_sol_rerequest_hyphen_suite.Input) async throws -> Operations.checks_sol_rerequest_hyphen_suite.Output { diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index 36299b84caf..1d371c9fcdb 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -64,8 +64,6 @@ public protocol APIProtocol: Sendable { /// /// For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)". /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. func checks_sol_rerequest_hyphen_run(_ input: Operations.checks_sol_rerequest_hyphen_run.Input) async throws -> Operations.checks_sol_rerequest_hyphen_run.Output @@ -117,8 +115,6 @@ public protocol APIProtocol: Sendable { /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. func checks_sol_rerequest_hyphen_suite(_ input: Operations.checks_sol_rerequest_hyphen_suite.Input) async throws -> Operations.checks_sol_rerequest_hyphen_suite.Output @@ -243,8 +239,6 @@ extension APIProtocol { /// /// For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)". /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. public func checks_sol_rerequest_hyphen_run( @@ -342,8 +336,6 @@ extension APIProtocol { /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. public func checks_sol_rerequest_hyphen_suite( @@ -3607,8 +3599,6 @@ public enum Operations { /// /// For more information about how to re-run GitHub Actions jobs, see "[Re-run a job from a workflow run](https://docs.github.com/rest/actions/workflow-runs#re-run-a-job-from-a-workflow-run)". /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest/post(checks/rerequest-run)`. public enum checks_sol_rerequest_hyphen_run { @@ -4711,8 +4701,6 @@ public enum Operations { /// /// Triggers GitHub to rerequest an existing check suite, without pushing new code to a repository. This endpoint will trigger the [`check_suite` webhook](https://docs.github.com/webhooks/event-payloads/#check_suite) event with the action `rerequested`. When a check suite is `rerequested`, its `status` is reset to `queued` and the `conclusion` is cleared. /// - /// OAuth apps and personal access tokens (classic) cannot use this endpoint. - /// /// - Remark: HTTP `POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest/post(checks/rerequest-suite)`. public enum checks_sol_rerequest_hyphen_suite { diff --git a/Sources/dependabot/Client.swift b/Sources/dependabot/Client.swift index 701e3b3542e..8fb44251c4c 100644 --- a/Sources/dependabot/Client.swift +++ b/Sources/dependabot/Client.swift @@ -101,6 +101,13 @@ public struct Client: APIProtocol { name: "epss_percentage", value: input.query.epss_percentage ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "has", + value: input.query.has + ) try converter.setQueryItemAsURI( in: &request, style: .form, @@ -328,6 +335,13 @@ public struct Client: APIProtocol { name: "epss_percentage", value: input.query.epss_percentage ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "has", + value: input.query.has + ) try converter.setQueryItemAsURI( in: &request, style: .form, @@ -1167,6 +1181,13 @@ public struct Client: APIProtocol { name: "epss_percentage", value: input.query.epss_percentage ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "has", + value: input.query.has + ) try converter.setQueryItemAsURI( in: &request, style: .form, diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index a439100266b..ecb2dd39f6c 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -3633,6 +3633,50 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-epss`. public typealias dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss = Swift.String + /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// Multiple `has` filters can be chained to check if multiple properties are present. + /// + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. + @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. + case case1(Swift.String) + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + case patch = "patch" + } + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .case1(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + do { + self = .case2(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + throw Swift.DecodingError.failedToDecodeOneOfSchema( + type: Self.self, + codingPath: decoder.codingPath, + errors: errors + ) + } + public func encode(to encoder: any Encoder) throws { + switch self { + case let .case1(value): + try encoder.encodeToSingleValueContainer(value) + case let .case2(value): + try encoder.encodeToSingleValueContainer(value) + } + } + } /// The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. @@ -3936,6 +3980,52 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/epss_percentage`. public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. + @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. + case case1(Swift.String) + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + case patch = "patch" + } + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .case1(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + do { + self = .case2(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + throw Swift.DecodingError.failedToDecodeOneOfSchema( + type: Self.self, + codingPath: decoder.codingPath, + errors: errors + ) + } + public func encode(to encoder: any Encoder) throws { + switch self { + case let .case1(value): + try encoder.encodeToSingleValueContainer(value) + case let .case2(value): + try encoder.encodeToSingleValueContainer(value) + } + } + } + /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// Multiple `has` filters can be chained to check if multiple properties are present. + /// + /// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/query/has`. + public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { case development = "development" @@ -3999,6 +4089,7 @@ public enum Operations { /// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. @@ -4013,6 +4104,7 @@ public enum Operations { ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? = nil, package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, + has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, direction: Components.Parameters.direction? = nil, @@ -4027,6 +4119,7 @@ public enum Operations { self.ecosystem = ecosystem self.package = package self.epss_percentage = epss_percentage + self.has = has self.scope = scope self.sort = sort self.direction = direction @@ -4302,6 +4395,52 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/epss_percentage`. public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. + @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. + case case1(Swift.String) + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + case patch = "patch" + } + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .case1(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + do { + self = .case2(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + throw Swift.DecodingError.failedToDecodeOneOfSchema( + type: Self.self, + codingPath: decoder.codingPath, + errors: errors + ) + } + public func encode(to encoder: any Encoder) throws { + switch self { + case let .case1(value): + try encoder.encodeToSingleValueContainer(value) + case let .case2(value): + try encoder.encodeToSingleValueContainer(value) + } + } + } + /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// Multiple `has` filters can be chained to check if multiple properties are present. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/has`. + public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { case development = "development" @@ -4365,6 +4504,7 @@ public enum Operations { /// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned. /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. @@ -4379,6 +4519,7 @@ public enum Operations { ecosystem: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_ecosystems? = nil, package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, + has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, direction: Components.Parameters.direction? = nil, @@ -4393,6 +4534,7 @@ public enum Operations { self.ecosystem = ecosystem self.package = package self.epss_percentage = epss_percentage + self.has = has self.scope = scope self.sort = sort self.direction = direction @@ -6019,6 +6161,52 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/epss_percentage`. public var epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`. + @frozen public enum dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`. + case case1(Swift.String) + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/Case2Payload`. + @frozen public enum Case2PayloadPayload: String, Codable, Hashable, Sendable { + case patch = "patch" + } + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + public typealias Case2Payload = [Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2PayloadPayload] + /// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case2`. + case case2(Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has.Case2Payload) + public init(from decoder: any Decoder) throws { + var errors: [any Error] = [] + do { + self = .case1(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + do { + self = .case2(try decoder.decodeFromSingleValueContainer()) + return + } catch { + errors.append(error) + } + throw Swift.DecodingError.failedToDecodeOneOfSchema( + type: Self.self, + codingPath: decoder.codingPath, + errors: errors + ) + } + public func encode(to encoder: any Encoder) throws { + switch self { + case let .case1(value): + try encoder.encodeToSingleValueContainer(value) + case let .case2(value): + try encoder.encodeToSingleValueContainer(value) + } + } + } + /// Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. + /// Multiple `has` filters can be chained to check if multiple properties are present. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/has`. + public var has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? /// - Remark: Generated from `#/components/parameters/dependabot-alert-scope`. @frozen public enum dependabot_hyphen_alert_hyphen_scope: String, Codable, Hashable, Sendable { case development = "development" @@ -6089,6 +6277,7 @@ public enum Operations { /// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned. /// - manifest: A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned. /// - epss_percentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as: + /// - has: Filters the list of alerts based on whether the alert has a patch. If specified, only alerts with a patch will be returned. /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. @@ -6105,6 +6294,7 @@ public enum Operations { package: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_packages? = nil, manifest: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_manifests? = nil, epss_percentage: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_epss? = nil, + has: Components.Parameters.dependabot_hyphen_alert_hyphen_comma_hyphen_separated_hyphen_has? = nil, scope: Components.Parameters.dependabot_hyphen_alert_hyphen_scope? = nil, sort: Components.Parameters.dependabot_hyphen_alert_hyphen_sort? = nil, direction: Components.Parameters.direction? = nil, @@ -6121,6 +6311,7 @@ public enum Operations { self.package = package self.manifest = manifest self.epss_percentage = epss_percentage + self.has = has self.scope = scope self.sort = sort self.direction = direction diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index a3b90207333..8af3e59120f 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit a3b90207333d17877bcbab612a4163337ed7148c +Subproject commit 8af3e59120fdf6294e2d385bdae74b39fa824da5 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy