From c19769cc98217108c57d3eaefcda3884a05a3630 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 3 Jun 2025 02:16:34 +0000 Subject: [PATCH 01/10] Bump Submodule/github/rest-api-description from `f024f30` to `31cc3f6` Bumps [Submodule/github/rest-api-description](https://github.com/github/rest-api-description) from `f024f30` to `31cc3f6`. - [Release notes](https://github.com/github/rest-api-description/releases) - [Commits](https://github.com/github/rest-api-description/compare/f024f30c535ebed5adff7f3db7c35b565e4640fb...31cc3f663aaf18c192fbccf6ea5d574ef40dbb20) --- updated-dependencies: - dependency-name: Submodule/github/rest-api-description dependency-version: 31cc3f663aaf18c192fbccf6ea5d574ef40dbb20 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- Submodule/github/rest-api-description | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index f024f30c53..31cc3f663a 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit f024f30c535ebed5adff7f3db7c35b565e4640fb +Subproject commit 31cc3f663aaf18c192fbccf6ea5d574ef40dbb20 From 446eef945acdc87f55733ed9f29710e9d8673579 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:43:35 +0000 Subject: [PATCH 02/10] Commit via running: make Sources/actions --- Sources/actions/Types.swift | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index 1a5414e688..14512ca9f7 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -5878,20 +5878,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -5907,11 +5901,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -5926,10 +5917,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -5945,9 +5933,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -5964,9 +5949,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. From 81c780db47db78d73973de40ea471ad34684bf98 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:43:56 +0000 Subject: [PATCH 03/10] Commit via running: make Sources/activity --- Sources/activity/Types.swift | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index 2e3484f2ff..6957d3fc54 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -2686,20 +2686,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -2715,11 +2709,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -2734,10 +2725,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -2753,9 +2741,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -2772,9 +2757,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// How the author is associated with the repository. From cfc8dbc9445dc88fea3d9aaf2e100be5947647fc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:44:18 +0000 Subject: [PATCH 04/10] Commit via running: make Sources/apps --- Sources/apps/Types.swift | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Sources/apps/Types.swift b/Sources/apps/Types.swift index b272e5516a..c0d1cd609b 100644 --- a/Sources/apps/Types.swift +++ b/Sources/apps/Types.swift @@ -1455,20 +1455,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. public var permissions: Components.Schemas.Integration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/pem`. - public var pem: Swift.String? /// Creates a new `Integration`. /// /// - Parameters: @@ -1484,11 +1478,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -1503,10 +1494,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -1522,9 +1510,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -1541,9 +1526,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// The URL to which the payloads will be delivered. From 02ebfa7263fbd7bcc1ea87196ff44482d36937e1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:45:01 +0000 Subject: [PATCH 05/10] Commit via running: make Sources/checks --- Sources/checks/Types.swift | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index c1ed8a03d0..2be69e720b 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -899,20 +899,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -928,11 +922,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -947,10 +938,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -966,9 +954,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -985,9 +970,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// - Remark: Generated from `#/components/schemas/security-and-analysis`. From a3b70560197efab476a5aad13ff6550d5a954cf4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:45:22 +0000 Subject: [PATCH 06/10] Commit via running: make Sources/code-scanning --- Sources/code-scanning/Types.swift | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index ecede7b5d2..866b30a79e 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -3290,6 +3290,17 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/query_suite`. public var querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload? + /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/threat_model`. + @frozen public enum ThreatModelPayload: String, Codable, Hashable, Sendable, CaseIterable { + case remote = "remote" + case remoteAndLocal = "remote_and_local" + } + /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/threat_model`. + public var threatModel: Components.Schemas.CodeScanningDefaultSetup.ThreatModelPayload? /// Timestamp of latest configuration update. /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup/updated_at`. @@ -3312,6 +3323,7 @@ public enum Components { /// - runnerType: Runner type to be used. /// - runnerLabel: Runner label to be used if the runner type is labeled. /// - querySuite: CodeQL query suite to be used. + /// - threatModel: Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. /// - updatedAt: Timestamp of latest configuration update. /// - schedule: The frequency of the periodic analysis. public init( @@ -3320,6 +3332,7 @@ public enum Components { runnerType: Components.Schemas.CodeScanningDefaultSetup.RunnerTypePayload? = nil, runnerLabel: Swift.String? = nil, querySuite: Components.Schemas.CodeScanningDefaultSetup.QuerySuitePayload? = nil, + threatModel: Components.Schemas.CodeScanningDefaultSetup.ThreatModelPayload? = nil, updatedAt: Foundation.Date? = nil, schedule: Components.Schemas.CodeScanningDefaultSetup.SchedulePayload? = nil ) { @@ -3328,6 +3341,7 @@ public enum Components { self.runnerType = runnerType self.runnerLabel = runnerLabel self.querySuite = querySuite + self.threatModel = threatModel self.updatedAt = updatedAt self.schedule = schedule } @@ -3337,6 +3351,7 @@ public enum Components { case runnerType = "runner_type" case runnerLabel = "runner_label" case querySuite = "query_suite" + case threatModel = "threat_model" case updatedAt = "updated_at" case schedule } @@ -3382,6 +3397,17 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/query_suite`. public var querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload? + /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/threat_model`. + @frozen public enum ThreatModelPayload: String, Codable, Hashable, Sendable, CaseIterable { + case remote = "remote" + case remoteAndLocal = "remote_and_local" + } + /// Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. + /// + /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/threat_model`. + public var threatModel: Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload? /// - Remark: Generated from `#/components/schemas/code-scanning-default-setup-update/LanguagesPayload`. @frozen public enum LanguagesPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable { case actions = "actions" @@ -3409,18 +3435,21 @@ public enum Components { /// - runnerType: Runner type to be used. /// - runnerLabel: Runner label to be used if the runner type is labeled. /// - querySuite: CodeQL query suite to be used. + /// - threatModel: Threat model to be used for code scanning analysis. Use `remote` to analyze only network sources and `remote_and_local` to include local sources like filesystem access, command-line arguments, database reads, environment variable and standard input. /// - languages: CodeQL languages to be analyzed. public init( state: Components.Schemas.CodeScanningDefaultSetupUpdate.StatePayload? = nil, runnerType: Components.Schemas.CodeScanningDefaultSetupUpdate.RunnerTypePayload? = nil, runnerLabel: Swift.String? = nil, querySuite: Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload? = nil, + threatModel: Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload? = nil, languages: Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload? = nil ) { self.state = state self.runnerType = runnerType self.runnerLabel = runnerLabel self.querySuite = querySuite + self.threatModel = threatModel self.languages = languages } public enum CodingKeys: String, CodingKey { @@ -3428,6 +3457,7 @@ public enum Components { case runnerType = "runner_type" case runnerLabel = "runner_label" case querySuite = "query_suite" + case threatModel = "threat_model" case languages } public init(from decoder: any Decoder) throws { @@ -3448,6 +3478,10 @@ public enum Components { Components.Schemas.CodeScanningDefaultSetupUpdate.QuerySuitePayload.self, forKey: .querySuite ) + self.threatModel = try container.decodeIfPresent( + Components.Schemas.CodeScanningDefaultSetupUpdate.ThreatModelPayload.self, + forKey: .threatModel + ) self.languages = try container.decodeIfPresent( Components.Schemas.CodeScanningDefaultSetupUpdate.LanguagesPayload.self, forKey: .languages @@ -3457,6 +3491,7 @@ public enum Components { "runner_type", "runner_label", "query_suite", + "threat_model", "languages" ]) } From 982292f2f76d8a0948c52d345a7df614ee00b7b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:46:26 +0000 Subject: [PATCH 07/10] Commit via running: make Sources/dependabot --- Sources/dependabot/Client.swift | 213 ++++++++++++++ Sources/dependabot/Types.swift | 492 ++++++++++++++++++++++++++++++++ 2 files changed, 705 insertions(+) diff --git a/Sources/dependabot/Client.swift b/Sources/dependabot/Client.swift index 5da94b1066..8a3c37bc9d 100644 --- a/Sources/dependabot/Client.swift +++ b/Sources/dependabot/Client.swift @@ -274,6 +274,219 @@ public struct Client: APIProtocol { } ) } + /// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `GET /organizations/{org}/dependabot/repository-access`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)`. + public func dependabotRepositoryAccessForOrg(_ input: Operations.DependabotRepositoryAccessForOrg.Input) async throws -> Operations.DependabotRepositoryAccessForOrg.Output { + try await client.send( + input: input, + forOperation: Operations.DependabotRepositoryAccessForOrg.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/organizations/{}/dependabot/repository-access", + parameters: [ + input.path.org + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .get + ) + suppressMutabilityWarning(&request) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.DependabotRepositoryAccessForOrg.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.DependabotRepositoryAccessDetails.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + case 403: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.Forbidden.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BasicError.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .forbidden(.init(body: body)) + case 404: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.NotFound.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BasicError.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .notFound(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Set the default repository access level for Dependabot + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Sets the default level of repository access Dependabot will have while performing an update. Available values are: + /// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + /// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + /// + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`. + public func dependabotSetRepositoryAccessDefaultLevel(_ input: Operations.DependabotSetRepositoryAccessDefaultLevel.Input) async throws -> Operations.DependabotSetRepositoryAccessDefaultLevel.Output { + try await client.send( + input: input, + forOperation: Operations.DependabotSetRepositoryAccessDefaultLevel.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/organizations/{}/dependabot/repository-access/default-level", + parameters: [ + input.path.org + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .put + ) + suppressMutabilityWarning(&request) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) + let body: OpenAPIRuntime.HTTPBody? + switch input.body { + case let .json(value): + body = try converter.setRequiredRequestBodyAsJSON( + value, + headerFields: &request.headerFields, + contentType: "application/json; charset=utf-8" + ) + } + return (request, body) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + case 403: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.Forbidden.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BasicError.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .forbidden(.init(body: body)) + case 404: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.NotFound.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.BasicError.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .notFound(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } /// List Dependabot alerts for an organization /// /// Lists Dependabot alerts for an organization. diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index 80a7b8871c..8e252283e7 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -24,6 +24,28 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /enterprises/{enterprise}/dependabot/alerts`. /// - Remark: Generated from `#/paths//enterprises/{enterprise}/dependabot/alerts/get(dependabot/list-alerts-for-enterprise)`. func dependabotListAlertsForEnterprise(_ input: Operations.DependabotListAlertsForEnterprise.Input) async throws -> Operations.DependabotListAlertsForEnterprise.Output + /// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `GET /organizations/{org}/dependabot/repository-access`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)`. + func dependabotRepositoryAccessForOrg(_ input: Operations.DependabotRepositoryAccessForOrg.Input) async throws -> Operations.DependabotRepositoryAccessForOrg.Output + /// Set the default repository access level for Dependabot + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Sets the default level of repository access Dependabot will have while performing an update. Available values are: + /// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + /// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + /// + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`. + func dependabotSetRepositoryAccessDefaultLevel(_ input: Operations.DependabotSetRepositoryAccessDefaultLevel.Input) async throws -> Operations.DependabotSetRepositoryAccessDefaultLevel.Output /// List Dependabot alerts for an organization /// /// Lists Dependabot alerts for an organization. @@ -225,6 +247,46 @@ extension APIProtocol { headers: headers )) } + /// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `GET /organizations/{org}/dependabot/repository-access`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)`. + public func dependabotRepositoryAccessForOrg( + path: Operations.DependabotRepositoryAccessForOrg.Input.Path, + headers: Operations.DependabotRepositoryAccessForOrg.Input.Headers = .init() + ) async throws -> Operations.DependabotRepositoryAccessForOrg.Output { + try await dependabotRepositoryAccessForOrg(Operations.DependabotRepositoryAccessForOrg.Input( + path: path, + headers: headers + )) + } + /// Set the default repository access level for Dependabot + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Sets the default level of repository access Dependabot will have while performing an update. Available values are: + /// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + /// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + /// + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`. + public func dependabotSetRepositoryAccessDefaultLevel( + path: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Path, + headers: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Headers = .init(), + body: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body + ) async throws -> Operations.DependabotSetRepositoryAccessDefaultLevel.Output { + try await dependabotSetRepositoryAccessDefaultLevel(Operations.DependabotSetRepositoryAccessDefaultLevel.Input( + path: path, + headers: headers, + body: body + )) + } /// List Dependabot alerts for an organization /// /// Lists Dependabot alerts for an organization. @@ -3178,6 +3240,55 @@ public enum Components { case securityAndAnalysis = "security_and_analysis" } } + /// Information about repositories that Dependabot is able to access in an organization + /// + /// - Remark: Generated from `#/components/schemas/dependabot-repository-access-details`. + public struct DependabotRepositoryAccessDetails: Codable, Hashable, Sendable { + /// The default repository access level for Dependabot updates. + /// + /// - Remark: Generated from `#/components/schemas/dependabot-repository-access-details/default_level`. + @frozen public enum DefaultLevelPayload: String, Codable, Hashable, Sendable, CaseIterable { + case _public = "public" + case _internal = "internal" + } + /// The default repository access level for Dependabot updates. + /// + /// - Remark: Generated from `#/components/schemas/dependabot-repository-access-details/default_level`. + public var defaultLevel: Components.Schemas.DependabotRepositoryAccessDetails.DefaultLevelPayload? + /// - Remark: Generated from `#/components/schemas/dependabot-repository-access-details/accessible_repositories`. + public var accessibleRepositories: [Components.Schemas.SimpleRepository]? + /// Creates a new `DependabotRepositoryAccessDetails`. + /// + /// - Parameters: + /// - defaultLevel: The default repository access level for Dependabot updates. + /// - accessibleRepositories: + public init( + defaultLevel: Components.Schemas.DependabotRepositoryAccessDetails.DefaultLevelPayload? = nil, + accessibleRepositories: [Components.Schemas.SimpleRepository]? = nil + ) { + self.defaultLevel = defaultLevel + self.accessibleRepositories = accessibleRepositories + } + public enum CodingKeys: String, CodingKey { + case defaultLevel = "default_level" + case accessibleRepositories = "accessible_repositories" + } + public init(from decoder: any Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + self.defaultLevel = try container.decodeIfPresent( + Components.Schemas.DependabotRepositoryAccessDetails.DefaultLevelPayload.self, + forKey: .defaultLevel + ) + self.accessibleRepositories = try container.decodeIfPresent( + [Components.Schemas.SimpleRepository].self, + forKey: .accessibleRepositories + ) + try decoder.ensureNoAdditionalProperties(knownKeys: [ + "default_level", + "accessible_repositories" + ]) + } + } /// An object without any properties. /// /// - Remark: Generated from `#/components/schemas/empty-object`. @@ -4351,6 +4462,387 @@ public enum Operations { } } } + /// Lists repositories that organization admins have allowed Dependabot to access when updating dependencies. + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `GET /organizations/{org}/dependabot/repository-access`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)`. + public enum DependabotRepositoryAccessForOrg { + public static let id: Swift.String = "dependabot/repository-access-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/GET/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/GET/path/org`. + public var org: Components.Parameters.Org + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + public init(org: Components.Parameters.Org) { + self.org = org + } + } + public var path: Operations.DependabotRepositoryAccessForOrg.Input.Path + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/GET/header`. + public struct Headers: Sendable, Hashable { + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - accept: + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + self.accept = accept + } + } + public var headers: Operations.DependabotRepositoryAccessForOrg.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + public init( + path: Operations.DependabotRepositoryAccessForOrg.Input.Path, + headers: Operations.DependabotRepositoryAccessForOrg.Input.Headers = .init() + ) { + self.path = path + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/GET/responses/200/content/application\/json`. + case json(Components.Schemas.DependabotRepositoryAccessDetails) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Components.Schemas.DependabotRepositoryAccessDetails { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.DependabotRepositoryAccessForOrg.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.DependabotRepositoryAccessForOrg.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.DependabotRepositoryAccessForOrg.Output.Ok) + /// The associated value of the enum case if `self` is `.ok`. + /// + /// - Throws: An error if `self` is not `.ok`. + /// - SeeAlso: `.ok`. + public var ok: Operations.DependabotRepositoryAccessForOrg.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + response: self + ) + } + } + } + /// Forbidden + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + case forbidden(Components.Responses.Forbidden) + /// The associated value of the enum case if `self` is `.forbidden`. + /// + /// - Throws: An error if `self` is not `.forbidden`. + /// - SeeAlso: `.forbidden`. + public var forbidden: Components.Responses.Forbidden { + get throws { + switch self { + case let .forbidden(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "forbidden", + response: self + ) + } + } + } + /// Resource not found + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/get(dependabot/repository-access-for-org)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + case notFound(Components.Responses.NotFound) + /// The associated value of the enum case if `self` is `.notFound`. + /// + /// - Throws: An error if `self` is not `.notFound`. + /// - SeeAlso: `.notFound`. + public var notFound: Components.Responses.NotFound { + get throws { + switch self { + case let .notFound(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "notFound", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + @frozen public enum AcceptableContentType: AcceptableProtocol { + case json + case other(Swift.String) + public init?(rawValue: Swift.String) { + switch rawValue.lowercased() { + case "application/json": + self = .json + default: + self = .other(rawValue) + } + } + public var rawValue: Swift.String { + switch self { + case let .other(string): + return string + case .json: + return "application/json" + } + } + public static var allCases: [Self] { + [ + .json + ] + } + } + } + /// Set the default repository access level for Dependabot + /// + /// > [!NOTE] + /// > This operation supports both server-to-server and user-to-server access. + /// Sets the default level of repository access Dependabot will have while performing an update. Available values are: + /// - 'public' - Dependabot will only have access to public repositories, unless access is explicitly granted to non-public repositories. + /// - 'internal' - Dependabot will only have access to public and internal repositories, unless access is explicitly granted to private repositories. + /// + /// Unauthorized users will not see the existence of this endpoint. + /// + /// - Remark: HTTP `PUT /organizations/{org}/dependabot/repository-access/default-level`. + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)`. + public enum DependabotSetRepositoryAccessDefaultLevel { + public static let id: Swift.String = "dependabot/set-repository-access-default-level" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/path/org`. + public var org: Components.Parameters.Org + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + public init(org: Components.Parameters.Org) { + self.org = org + } + } + public var path: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Path + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/header`. + public struct Headers: Sendable, Hashable { + public var accept: [OpenAPIRuntime.AcceptHeaderContentType] + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - accept: + public init(accept: [OpenAPIRuntime.AcceptHeaderContentType] = .defaultValues()) { + self.accept = accept + } + } + public var headers: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Headers + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/requestBody`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/requestBody/json`. + public struct JsonPayload: Codable, Hashable, Sendable { + /// The default repository access level for Dependabot updates. + /// + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/requestBody/json/default_level`. + @frozen public enum DefaultLevelPayload: String, Codable, Hashable, Sendable, CaseIterable { + case _public = "public" + case _internal = "internal" + } + /// The default repository access level for Dependabot updates. + /// + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/requestBody/json/default_level`. + public var defaultLevel: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body.JsonPayload.DefaultLevelPayload + /// Creates a new `JsonPayload`. + /// + /// - Parameters: + /// - defaultLevel: The default repository access level for Dependabot updates. + public init(defaultLevel: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body.JsonPayload.DefaultLevelPayload) { + self.defaultLevel = defaultLevel + } + public enum CodingKeys: String, CodingKey { + case defaultLevel = "default_level" + } + } + /// - Remark: Generated from `#/paths/organizations/{org}/dependabot/repository-access/default-level/PUT/requestBody/content/application\/json`. + case json(Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body.JsonPayload) + } + public var body: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + /// - body: + public init( + path: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Path, + headers: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Headers = .init(), + body: Operations.DependabotSetRepositoryAccessDefaultLevel.Input.Body + ) { + self.path = path + self.headers = headers + self.body = body + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.DependabotSetRepositoryAccessDefaultLevel.Output.NoContent) + /// Response + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + public static var noContent: Self { + .noContent(.init()) + } + /// The associated value of the enum case if `self` is `.noContent`. + /// + /// - Throws: An error if `self` is not `.noContent`. + /// - SeeAlso: `.noContent`. + public var noContent: Operations.DependabotSetRepositoryAccessDefaultLevel.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Forbidden + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)/responses/403`. + /// + /// HTTP response code: `403 forbidden`. + case forbidden(Components.Responses.Forbidden) + /// The associated value of the enum case if `self` is `.forbidden`. + /// + /// - Throws: An error if `self` is not `.forbidden`. + /// - SeeAlso: `.forbidden`. + public var forbidden: Components.Responses.Forbidden { + get throws { + switch self { + case let .forbidden(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "forbidden", + response: self + ) + } + } + } + /// Resource not found + /// + /// - Remark: Generated from `#/paths//organizations/{org}/dependabot/repository-access/default-level/put(dependabot/set-repository-access-default-level)/responses/404`. + /// + /// HTTP response code: `404 notFound`. + case notFound(Components.Responses.NotFound) + /// The associated value of the enum case if `self` is `.notFound`. + /// + /// - Throws: An error if `self` is not `.notFound`. + /// - SeeAlso: `.notFound`. + public var notFound: Components.Responses.NotFound { + get throws { + switch self { + case let .notFound(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "notFound", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + @frozen public enum AcceptableContentType: AcceptableProtocol { + case json + case other(Swift.String) + public init?(rawValue: Swift.String) { + switch rawValue.lowercased() { + case "application/json": + self = .json + default: + self = .other(rawValue) + } + } + public var rawValue: Swift.String { + switch self { + case let .other(string): + return string + case .json: + return "application/json" + } + } + public static var allCases: [Self] { + [ + .json + ] + } + } + } /// List Dependabot alerts for an organization /// /// Lists Dependabot alerts for an organization. From d69f255c7a9981cd9d0488b9f7fbe4dffed7add5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:48:14 +0000 Subject: [PATCH 08/10] Commit via running: make Sources/issues --- Sources/issues/Types.swift | 56 +++++++------------------------------- 1 file changed, 10 insertions(+), 46 deletions(-) diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 5d050e34cc..44070e1086 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -1831,20 +1831,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. public var permissions: Components.Schemas.Integration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/pem`. - public var pem: Swift.String? /// Creates a new `Integration`. /// /// - Parameters: @@ -1860,11 +1854,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -1879,10 +1870,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -1898,9 +1886,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -1917,9 +1902,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// Scim Error @@ -3448,20 +3430,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -3477,11 +3453,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -3496,10 +3469,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -3515,9 +3485,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -3534,9 +3501,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// How the author is associated with the repository. From 198fb520c0c3dee824d37cfde6e1f9dcfa5fb175 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:52:54 +0000 Subject: [PATCH 09/10] Commit via running: make Sources/repos --- Sources/repos/Types.swift | 62 ++++++++++----------------------------- 1 file changed, 16 insertions(+), 46 deletions(-) diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index a2f83de8d3..04af42f57c 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -6419,20 +6419,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/integration/permissions`. public var permissions: Components.Schemas.Integration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/integration/pem`. - public var pem: Swift.String? /// Creates a new `Integration`. /// /// - Parameters: @@ -6448,11 +6442,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -6467,10 +6458,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.Integration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -6486,9 +6474,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -6505,9 +6490,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// The URL to which the payloads will be delivered. @@ -8427,20 +8409,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -8456,11 +8432,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -8475,10 +8448,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -8494,9 +8464,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -8513,9 +8480,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// How the author is associated with the repository. @@ -21244,6 +21208,8 @@ public enum Components { public var contentType: Swift.String /// - Remark: Generated from `#/components/schemas/release-asset/size`. public var size: Swift.Int + /// - Remark: Generated from `#/components/schemas/release-asset/digest`. + public var digest: Swift.String? /// - Remark: Generated from `#/components/schemas/release-asset/download_count`. public var downloadCount: Swift.Int /// - Remark: Generated from `#/components/schemas/release-asset/created_at`. @@ -21264,6 +21230,7 @@ public enum Components { /// - state: State of the release asset. /// - contentType: /// - size: + /// - digest: /// - downloadCount: /// - createdAt: /// - updatedAt: @@ -21278,6 +21245,7 @@ public enum Components { state: Components.Schemas.ReleaseAsset.StatePayload, contentType: Swift.String, size: Swift.Int, + digest: Swift.String? = nil, downloadCount: Swift.Int, createdAt: Foundation.Date, updatedAt: Foundation.Date, @@ -21292,6 +21260,7 @@ public enum Components { self.state = state self.contentType = contentType self.size = size + self.digest = digest self.downloadCount = downloadCount self.createdAt = createdAt self.updatedAt = updatedAt @@ -21307,6 +21276,7 @@ public enum Components { case state case contentType = "content_type" case size + case digest case downloadCount = "download_count" case createdAt = "created_at" case updatedAt = "updated_at" From cd70ccc456a0b2061162a4c4a3b6843d15f46f9b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 3 Jun 2025 02:53:16 +0000 Subject: [PATCH 10/10] Commit via running: make Sources/search --- Sources/search/Types.swift | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index 1939135425..7821b0f6b6 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -2105,20 +2105,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-integration/permissions`. public var permissions: Components.Schemas.NullableIntegration.PermissionsPayload - /// The list of events for the GitHub app + /// The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/events`. public var events: [Swift.String] - /// The number of installations associated with the GitHub app + /// The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. /// /// - Remark: Generated from `#/components/schemas/nullable-integration/installations_count`. public var installationsCount: Swift.Int? - /// - Remark: Generated from `#/components/schemas/nullable-integration/client_secret`. - public var clientSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/webhook_secret`. - public var webhookSecret: Swift.String? - /// - Remark: Generated from `#/components/schemas/nullable-integration/pem`. - public var pem: Swift.String? /// Creates a new `NullableIntegration`. /// /// - Parameters: @@ -2134,11 +2128,8 @@ public enum Components { /// - createdAt: /// - updatedAt: /// - permissions: The set of permissions for the GitHub app - /// - events: The list of events for the GitHub app - /// - installationsCount: The number of installations associated with the GitHub app - /// - clientSecret: - /// - webhookSecret: - /// - pem: + /// - events: The list of events for the GitHub app. Note that the `installation_target`, `security_advisory`, and `meta` events are not included because they are global events and not specific to an installation. + /// - installationsCount: The number of installations associated with the GitHub app. Only returned when the integration is requesting details about itself. public init( id: Swift.Int, slug: Swift.String? = nil, @@ -2153,10 +2144,7 @@ public enum Components { updatedAt: Foundation.Date, permissions: Components.Schemas.NullableIntegration.PermissionsPayload, events: [Swift.String], - installationsCount: Swift.Int? = nil, - clientSecret: Swift.String? = nil, - webhookSecret: Swift.String? = nil, - pem: Swift.String? = nil + installationsCount: Swift.Int? = nil ) { self.id = id self.slug = slug @@ -2172,9 +2160,6 @@ public enum Components { self.permissions = permissions self.events = events self.installationsCount = installationsCount - self.clientSecret = clientSecret - self.webhookSecret = webhookSecret - self.pem = pem } public enum CodingKeys: String, CodingKey { case id @@ -2191,9 +2176,6 @@ public enum Components { case permissions case events case installationsCount = "installations_count" - case clientSecret = "client_secret" - case webhookSecret = "webhook_secret" - case pem } } /// How the author is associated with the repository.