Skip to content

Commit 5276bd7

Browse files
Commit via running: make Sources/dependabot
1 parent 8c7f462 commit 5276bd7

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

Sources/dependabot/Client.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,20 @@ public struct Client: APIProtocol {
672672
name: "epss_percentage",
673673
value: input.query.epssPercentage
674674
)
675+
try converter.setQueryItemAsURI(
676+
in: &request,
677+
style: .form,
678+
explode: true,
679+
name: "artifact_registry_url",
680+
value: input.query.artifactRegistryUrl
681+
)
682+
try converter.setQueryItemAsURI(
683+
in: &request,
684+
style: .form,
685+
explode: true,
686+
name: "package_registry",
687+
value: input.query.packageRegistry
688+
)
675689
try converter.setQueryItemAsURI(
676690
in: &request,
677691
style: .form,

Sources/dependabot/Types.swift

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4187,7 +4187,7 @@ public enum Components {
41874187
///
41884188
/// - Remark: Generated from `#/components/parameters/page`.
41894189
public typealias Page = Swift.Int
4190-
/// The slug version of the enterprise name. You can also substitute this value with the enterprise id.
4190+
/// The slug version of the enterprise name.
41914191
///
41924192
/// - Remark: Generated from `#/components/parameters/enterprise`.
41934193
public typealias Enterprise = Swift.String
@@ -4312,6 +4312,16 @@ public enum Components {
43124312
///
43134313
/// - Remark: Generated from `#/components/parameters/secret-name`.
43144314
public typealias SecretName = Swift.String
4315+
/// A comma-separated list of Artifact Registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
4316+
///
4317+
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-artifact-registry-urls`.
4318+
public typealias DependabotAlertCommaSeparatedArtifactRegistryUrls = Swift.String
4319+
/// A comma-separated list of Package Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
4320+
///
4321+
/// Can be: `jfrog-artifactory`
4322+
///
4323+
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-package-registry`.
4324+
public typealias DependabotAlertCommaSeparatedPackageRegistry = Swift.String
43154325
/// A comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.
43164326
///
43174327
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-manifests`.
@@ -4523,14 +4533,14 @@ public enum Operations {
45234533
public struct Input: Sendable, Hashable {
45244534
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/path`.
45254535
public struct Path: Sendable, Hashable {
4526-
/// The slug version of the enterprise name. You can also substitute this value with the enterprise id.
4536+
/// The slug version of the enterprise name.
45274537
///
45284538
/// - Remark: Generated from `#/paths/enterprises/{enterprise}/dependabot/alerts/GET/path/enterprise`.
45294539
public var enterprise: Components.Parameters.Enterprise
45304540
/// Creates a new `Path`.
45314541
///
45324542
/// - Parameters:
4533-
/// - enterprise: The slug version of the enterprise name. You can also substitute this value with the enterprise id.
4543+
/// - enterprise: The slug version of the enterprise name.
45344544
public init(enterprise: Components.Parameters.Enterprise) {
45354545
self.enterprise = enterprise
45364546
}
@@ -5611,6 +5621,16 @@ public enum Operations {
56115621
///
56125622
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/epss_percentage`.
56135623
public var epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss?
5624+
/// A comma-separated list of Artifact Registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
5625+
///
5626+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/artifact_registry_url`.
5627+
public var artifactRegistryUrl: Components.Parameters.DependabotAlertCommaSeparatedArtifactRegistryUrls?
5628+
/// A comma-separated list of Package Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
5629+
///
5630+
/// Can be: `jfrog-artifactory`
5631+
///
5632+
/// - Remark: Generated from `#/paths/orgs/{org}/dependabot/alerts/GET/query/package_registry`.
5633+
public var packageRegistry: Components.Parameters.DependabotAlertCommaSeparatedPackageRegistry?
56145634
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has`.
56155635
@frozen public enum DependabotAlertCommaSeparatedHas: Codable, Hashable, Sendable {
56165636
/// - Remark: Generated from `#/components/parameters/dependabot-alert-comma-separated-has/case1`.
@@ -5720,6 +5740,8 @@ public enum Operations {
57205740
/// - ecosystem: A comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
57215741
/// - package: A comma-separated list of package names. If specified, only alerts for these packages will be returned.
57225742
/// - epssPercentage: CVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:
5743+
/// - artifactRegistryUrl: A comma-separated list of Artifact Registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
5744+
/// - packageRegistry: A comma-separated list of Package Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
57235745
/// - has: Filters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
57245746
/// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
57255747
/// - sort: The property by which to sort the results.
@@ -5735,6 +5757,8 @@ public enum Operations {
57355757
ecosystem: Components.Parameters.DependabotAlertCommaSeparatedEcosystems? = nil,
57365758
package: Components.Parameters.DependabotAlertCommaSeparatedPackages? = nil,
57375759
epssPercentage: Components.Parameters.DependabotAlertCommaSeparatedEpss? = nil,
5760+
artifactRegistryUrl: Components.Parameters.DependabotAlertCommaSeparatedArtifactRegistryUrls? = nil,
5761+
packageRegistry: Components.Parameters.DependabotAlertCommaSeparatedPackageRegistry? = nil,
57385762
has: Components.Parameters.DependabotAlertCommaSeparatedHas? = nil,
57395763
scope: Components.Parameters.DependabotAlertScope? = nil,
57405764
sort: Components.Parameters.DependabotAlertSort? = nil,
@@ -5750,6 +5774,8 @@ public enum Operations {
57505774
self.ecosystem = ecosystem
57515775
self.package = package
57525776
self.epssPercentage = epssPercentage
5777+
self.artifactRegistryUrl = artifactRegistryUrl
5778+
self.packageRegistry = packageRegistry
57535779
self.has = has
57545780
self.scope = scope
57555781
self.sort = sort

0 commit comments

Comments
 (0)