From 888f25204f439b67be6915eec745ca3f19876eda Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 21:43:32 +0000 Subject: [PATCH 01/13] Bump Submodule/github/rest-api-description from `0956844` to `f024f30` Bumps [Submodule/github/rest-api-description](https://github.com/github/rest-api-description) from `0956844` to `f024f30`. - [Release notes](https://github.com/github/rest-api-description/releases) - [Commits](https://github.com/github/rest-api-description/compare/0956844c50850685dce43634d73a69f4dac7989e...f024f30c535ebed5adff7f3db7c35b565e4640fb) --- updated-dependencies: - dependency-name: Submodule/github/rest-api-description dependency-version: f024f30c535ebed5adff7f3db7c35b565e4640fb 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 0956844c50..f024f30c53 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 0956844c50850685dce43634d73a69f4dac7989e +Subproject commit f024f30c535ebed5adff7f3db7c35b565e4640fb From daeaa42d8672459f42d192fa2bc721200201de06 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:36:37 +0000 Subject: [PATCH 02/13] Commit via running: make Sources/actions --- Sources/actions/Client.swift | 52 ++++++++++ Sources/actions/Types.swift | 189 +++++++++++++++++++++++++++++++++-- 2 files changed, 234 insertions(+), 7 deletions(-) diff --git a/Sources/actions/Client.swift b/Sources/actions/Client.swift index a4a792e849..d0b5bc7cff 100644 --- a/Sources/actions/Client.swift +++ b/Sources/actions/Client.swift @@ -2915,12 +2915,38 @@ public struct Client: APIProtocol { method: .delete ) suppressMutabilityWarning(&request) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) return (request, nil) }, deserializer: { response, responseBody in switch response.status.code { case 204: return .noContent(.init()) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.ValidationFailedSimple.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ValidationErrorSimple.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, @@ -6976,12 +7002,38 @@ public struct Client: APIProtocol { method: .delete ) suppressMutabilityWarning(&request) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) return (request, nil) }, deserializer: { response, responseBody in switch response.status.code { case 204: return .noContent(.init()) + case 422: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.ValidationFailedSimple.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.ValidationErrorSimple.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .unprocessableContent(.init(body: body)) default: return .undocumented( statusCode: response.status.code, diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index 19d18b4693..1a5414e688 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -2327,8 +2327,14 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /orgs/{org}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)`. - public func actionsDeleteSelfHostedRunnerFromOrg(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output { - try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input(path: path)) + public func actionsDeleteSelfHostedRunnerFromOrg( + path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path, + headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init() + ) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromOrg.Output { + try await actionsDeleteSelfHostedRunnerFromOrg(Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input( + path: path, + headers: headers + )) } /// List labels for a self-hosted runner for an organization /// @@ -3321,8 +3327,14 @@ extension APIProtocol { /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)`. - public func actionsDeleteSelfHostedRunnerFromRepo(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output { - try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input(path: path)) + public func actionsDeleteSelfHostedRunnerFromRepo( + path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path, + headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init() + ) async throws -> Operations.ActionsDeleteSelfHostedRunnerFromRepo.Output { + try await actionsDeleteSelfHostedRunnerFromRepo(Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input( + path: path, + headers: headers + )) } /// List labels for a self-hosted runner for a repository /// @@ -5228,6 +5240,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -5326,6 +5367,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -5421,7 +5463,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -5518,6 +5561,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -5615,6 +5659,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct @@ -17165,12 +17210,29 @@ public enum Operations { } } public var path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runners/{runner_id}/DELETE/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.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path) { + /// - headers: + public init( + path: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Path, + headers: Operations.ActionsDeleteSelfHostedRunnerFromOrg.Input.Headers = .init() + ) { self.path = path + self.headers = headers } } @frozen public enum Output: Sendable, Hashable { @@ -17209,11 +17271,59 @@ public enum Operations { } } } + /// Validation failed, or the endpoint has been spammed. + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-org)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Components.Responses.ValidationFailedSimple) + /// The associated value of the enum case if `self` is `.unprocessableContent`. + /// + /// - Throws: An error if `self` is not `.unprocessableContent`. + /// - SeeAlso: `.unprocessableContent`. + public var unprocessableContent: Components.Responses.ValidationFailedSimple { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + 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 labels for a self-hosted runner for an organization /// @@ -25593,12 +25703,29 @@ public enum Operations { } } public var path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/actions/runners/{runner_id}/DELETE/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.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers /// Creates a new `Input`. /// /// - Parameters: /// - path: - public init(path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path) { + /// - headers: + public init( + path: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Path, + headers: Operations.ActionsDeleteSelfHostedRunnerFromRepo.Input.Headers = .init() + ) { self.path = path + self.headers = headers } } @frozen public enum Output: Sendable, Hashable { @@ -25637,11 +25764,59 @@ public enum Operations { } } } + /// Validation failed, or the endpoint has been spammed. + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/actions/runners/{runner_id}/delete(actions/delete-self-hosted-runner-from-repo)/responses/422`. + /// + /// HTTP response code: `422 unprocessableContent`. + case unprocessableContent(Components.Responses.ValidationFailedSimple) + /// The associated value of the enum case if `self` is `.unprocessableContent`. + /// + /// - Throws: An error if `self` is not `.unprocessableContent`. + /// - SeeAlso: `.unprocessableContent`. + public var unprocessableContent: Components.Responses.ValidationFailedSimple { + get throws { + switch self { + case let .unprocessableContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "unprocessableContent", + 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 labels for a self-hosted runner for a repository /// From 643be930454bc8e209a78919d8132296e9e78230 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:36:58 +0000 Subject: [PATCH 03/13] Commit via running: make Sources/activity --- Sources/activity/Types.swift | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index 5a72d1db2a..2e3484f2ff 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -1787,6 +1787,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -1885,6 +1914,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -1980,7 +2010,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -2077,6 +2108,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -2174,6 +2206,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct From 70bb94d0c9ce92ce35d7b5d66f1e7b28efc1a97b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:37:20 +0000 Subject: [PATCH 04/13] Commit via running: make Sources/apps --- Sources/apps/Types.swift | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/apps/Types.swift b/Sources/apps/Types.swift index 1e35c9d7d9..b272e5516a 100644 --- a/Sources/apps/Types.swift +++ b/Sources/apps/Types.swift @@ -3715,6 +3715,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -3813,6 +3842,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -3908,7 +3938,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -4005,6 +4036,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -4102,6 +4134,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Authentication token for a GitHub App installed on a user or org. From 00b94efc34e859b87b8057a525cd1a2b68a54244 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:41:15 +0000 Subject: [PATCH 05/13] Commit via running: make Sources/issues --- Sources/issues/Types.swift | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index 98e1908748..5d050e34cc 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -2641,6 +2641,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -2739,6 +2768,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -2834,7 +2864,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -2931,6 +2962,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -3028,6 +3060,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// A collection of related issues and pull requests. From 223a197e2696b11687d343562b8566fbd4d8bc7b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:43:02 +0000 Subject: [PATCH 06/13] Commit via running: make Sources/migrations --- Sources/migrations/Types.swift | 35 +++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/migrations/Types.swift b/Sources/migrations/Types.swift index 96008a916e..ca9deee7cc 100644 --- a/Sources/migrations/Types.swift +++ b/Sources/migrations/Types.swift @@ -1628,6 +1628,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -1726,6 +1755,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -1821,7 +1851,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -1918,6 +1949,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -2015,6 +2047,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct From 5eced0af9496d19eedeb0c759533118e3416ae18 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:44:49 +0000 Subject: [PATCH 07/13] Commit via running: make Sources/pulls --- Sources/pulls/Types.swift | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/pulls/Types.swift b/Sources/pulls/Types.swift index 3f02eee314..aa7776b7e8 100644 --- a/Sources/pulls/Types.swift +++ b/Sources/pulls/Types.swift @@ -1949,6 +1949,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -2047,6 +2076,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -2142,7 +2172,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -2239,6 +2270,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -2336,6 +2368,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// A collection of related issues and pull requests. From e6ee0684383672fb082ca78355fb2812d5d6e328 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:45:55 +0000 Subject: [PATCH 08/13] Commit via running: make Sources/repos --- Sources/repos/Client.swift | 22 +++++++++ Sources/repos/Types.swift | 93 +++++++++++++++++++++++++++++++++++++- 2 files changed, 113 insertions(+), 2 deletions(-) diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 444a889e18..fa57f81fb2 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -1512,6 +1512,28 @@ public struct Client: APIProtocol { preconditionFailure("bestContentType chose an invalid content type.") } return .notFound(.init(body: body)) + case 409: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Components.Responses.Conflict.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 .conflict(.init(body: body)) default: return .undocumented( statusCode: response.status.code, diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 3037d3659d..a2f83de8d3 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -7667,6 +7667,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -7765,6 +7794,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -7860,7 +7890,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -7957,6 +7988,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -8054,6 +8086,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct @@ -10061,6 +10094,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? /// Creates a new `NullableRepository`. /// /// - Parameters: @@ -10159,6 +10221,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -10254,7 +10317,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -10351,6 +10415,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -10448,6 +10513,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code of Conduct Simple @@ -26732,6 +26798,29 @@ public enum Operations { } } } + /// Conflict + /// + /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/delete(repos/delete)/responses/409`. + /// + /// HTTP response code: `409 conflict`. + case conflict(Components.Responses.Conflict) + /// The associated value of the enum case if `self` is `.conflict`. + /// + /// - Throws: An error if `self` is not `.conflict`. + /// - SeeAlso: `.conflict`. + public var conflict: Components.Responses.Conflict { + get throws { + switch self { + case let .conflict(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "conflict", + response: self + ) + } + } + } /// Undocumented response. /// /// A response with a code that is not documented in the OpenAPI document. From ccffa010b2d2874506737ebe5b1c30ca7381dcad Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:46:17 +0000 Subject: [PATCH 09/13] Commit via running: make Sources/search --- Sources/search/Types.swift | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index a606b12c8e..1939135425 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -1255,6 +1255,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -1353,6 +1382,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -1448,7 +1478,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -1545,6 +1576,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -1642,6 +1674,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct From cee82b0c9e1c110a1df4d6b2b38cd1929007290c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:46:38 +0000 Subject: [PATCH 10/13] Commit via running: make Sources/secret-scanning --- Sources/secret-scanning/Client.swift | 28 +++++++++++++++ Sources/secret-scanning/Types.swift | 51 ++++++++++++++++++++++++++-- 2 files changed, 76 insertions(+), 3 deletions(-) diff --git a/Sources/secret-scanning/Client.swift b/Sources/secret-scanning/Client.swift index 78ceb86188..1426ab854f 100644 --- a/Sources/secret-scanning/Client.swift +++ b/Sources/secret-scanning/Client.swift @@ -143,6 +143,13 @@ public struct Client: APIProtocol { name: "is_multi_repo", value: input.query.isMultiRepo ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "hide_secret", + value: input.query.hideSecret + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -347,6 +354,13 @@ public struct Client: APIProtocol { name: "is_multi_repo", value: input.query.isMultiRepo ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "hide_secret", + value: input.query.hideSecret + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -552,6 +566,13 @@ public struct Client: APIProtocol { name: "is_multi_repo", value: input.query.isMultiRepo ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "hide_secret", + value: input.query.hideSecret + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept @@ -646,6 +667,13 @@ public struct Client: APIProtocol { method: .get ) suppressMutabilityWarning(&request) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "hide_secret", + value: input.query.hideSecret + ) converter.setAcceptHeader( in: &request.headerFields, contentTypes: input.headers.accept diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index c8ff4d6a54..d0ab55c5b1 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -180,10 +180,12 @@ extension APIProtocol { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/get(secret-scanning/get-alert)`. public func secretScanningGetAlert( path: Operations.SecretScanningGetAlert.Input.Path, + query: Operations.SecretScanningGetAlert.Input.Query = .init(), headers: Operations.SecretScanningGetAlert.Input.Headers = .init() ) async throws -> Operations.SecretScanningGetAlert.Output { try await secretScanningGetAlert(Operations.SecretScanningGetAlert.Input( path: path, + query: query, headers: headers )) } @@ -2256,6 +2258,10 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-multi-repo`. public typealias SecretScanningAlertMultiRepo = Swift.Bool + /// A boolean value representing whether or not to hide literal secrets in the results. + /// + /// - Remark: Generated from `#/components/parameters/secret-scanning-alert-hide-secret`. + public typealias SecretScanningAlertHideSecret = Swift.Bool /// The account owner of the repository. The name is not case sensitive. /// /// - Remark: Generated from `#/components/parameters/owner`. @@ -2475,6 +2481,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/is_multi_repo`. public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? + /// A boolean value representing whether or not to hide literal secrets in the results. + /// + /// - Remark: Generated from `#/paths/enterprises/{enterprise}/secret-scanning/alerts/GET/query/hide_secret`. + public var hideSecret: Components.Parameters.SecretScanningAlertHideSecret? /// Creates a new `Query`. /// /// - Parameters: @@ -2489,6 +2499,7 @@ public enum Operations { /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results. public init( state: Components.Parameters.SecretScanningAlertState? = nil, secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, @@ -2500,7 +2511,8 @@ public enum Operations { after: Components.Parameters.PaginationAfter? = nil, validity: Components.Parameters.SecretScanningAlertValidity? = nil, isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, - isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil, + hideSecret: Components.Parameters.SecretScanningAlertHideSecret? = nil ) { self.state = state self.secretType = secretType @@ -2513,6 +2525,7 @@ public enum Operations { self.validity = validity self.isPubliclyLeaked = isPubliclyLeaked self.isMultiRepo = isMultiRepo + self.hideSecret = hideSecret } } public var query: Operations.SecretScanningListAlertsForEnterprise.Input.Query @@ -2785,6 +2798,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/is_multi_repo`. public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? + /// A boolean value representing whether or not to hide literal secrets in the results. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/secret-scanning/alerts/GET/query/hide_secret`. + public var hideSecret: Components.Parameters.SecretScanningAlertHideSecret? /// Creates a new `Query`. /// /// - Parameters: @@ -2800,6 +2817,7 @@ public enum Operations { /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results. public init( state: Components.Parameters.SecretScanningAlertState? = nil, secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, @@ -2812,7 +2830,8 @@ public enum Operations { after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? = nil, validity: Components.Parameters.SecretScanningAlertValidity? = nil, isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, - isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil, + hideSecret: Components.Parameters.SecretScanningAlertHideSecret? = nil ) { self.state = state self.secretType = secretType @@ -2826,6 +2845,7 @@ public enum Operations { self.validity = validity self.isPubliclyLeaked = isPubliclyLeaked self.isMultiRepo = isMultiRepo + self.hideSecret = hideSecret } } public var query: Operations.SecretScanningListAlertsForOrg.Input.Query @@ -3107,6 +3127,10 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/is_multi_repo`. public var isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? + /// A boolean value representing whether or not to hide literal secrets in the results. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/GET/query/hide_secret`. + public var hideSecret: Components.Parameters.SecretScanningAlertHideSecret? /// Creates a new `Query`. /// /// - Parameters: @@ -3122,6 +3146,7 @@ public enum Operations { /// - validity: A comma-separated list of validities that, when present, will return alerts that match the validities in this list. Valid options are `active`, `inactive`, and `unknown`. /// - isPubliclyLeaked: A boolean value representing whether or not to filter alerts by the publicly-leaked tag being present. /// - isMultiRepo: A boolean value representing whether or not to filter alerts by the multi-repo tag being present. + /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results. public init( state: Components.Parameters.SecretScanningAlertState? = nil, secretType: Components.Parameters.SecretScanningAlertSecretType? = nil, @@ -3134,7 +3159,8 @@ public enum Operations { after: Components.Parameters.SecretScanningPaginationAfterOrgRepo? = nil, validity: Components.Parameters.SecretScanningAlertValidity? = nil, isPubliclyLeaked: Components.Parameters.SecretScanningAlertPubliclyLeaked? = nil, - isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil + isMultiRepo: Components.Parameters.SecretScanningAlertMultiRepo? = nil, + hideSecret: Components.Parameters.SecretScanningAlertHideSecret? = nil ) { self.state = state self.secretType = secretType @@ -3148,6 +3174,7 @@ public enum Operations { self.validity = validity self.isPubliclyLeaked = isPubliclyLeaked self.isMultiRepo = isMultiRepo + self.hideSecret = hideSecret } } public var query: Operations.SecretScanningListAlertsForRepo.Input.Query @@ -3364,6 +3391,21 @@ public enum Operations { } } public var path: Operations.SecretScanningGetAlert.Input.Path + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/query`. + public struct Query: Sendable, Hashable { + /// A boolean value representing whether or not to hide literal secrets in the results. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/query/hide_secret`. + public var hideSecret: Components.Parameters.SecretScanningAlertHideSecret? + /// Creates a new `Query`. + /// + /// - Parameters: + /// - hideSecret: A boolean value representing whether or not to hide literal secrets in the results. + public init(hideSecret: Components.Parameters.SecretScanningAlertHideSecret? = nil) { + self.hideSecret = hideSecret + } + } + public var query: Operations.SecretScanningGetAlert.Input.Query /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/GET/header`. public struct Headers: Sendable, Hashable { public var accept: [OpenAPIRuntime.AcceptHeaderContentType] @@ -3380,12 +3422,15 @@ public enum Operations { /// /// - Parameters: /// - path: + /// - query: /// - headers: public init( path: Operations.SecretScanningGetAlert.Input.Path, + query: Operations.SecretScanningGetAlert.Input.Query = .init(), headers: Operations.SecretScanningGetAlert.Input.Headers = .init() ) { self.path = path + self.query = query self.headers = headers } } From 5a888defd42d3e1b59ef19f862a4c14a8b0a591f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:47:43 +0000 Subject: [PATCH 11/13] Commit via running: make Sources/codespaces --- Sources/codespaces/Types.swift | 70 +++++++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/Sources/codespaces/Types.swift b/Sources/codespaces/Types.swift index 186bdd0aac..5cb6aec113 100644 --- a/Sources/codespaces/Types.swift +++ b/Sources/codespaces/Types.swift @@ -2309,6 +2309,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -2407,6 +2436,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -2502,7 +2532,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -2599,6 +2630,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -2696,6 +2728,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code Of Conduct @@ -4465,6 +4498,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? /// Creates a new `NullableRepository`. /// /// - Parameters: @@ -4563,6 +4625,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -4658,7 +4721,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -4755,6 +4819,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -4852,6 +4917,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code of Conduct Simple From 006a23554b74faa12810f3ebf7340112499bc655 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:48:26 +0000 Subject: [PATCH 12/13] Commit via running: make Sources/security-advisories --- Sources/security-advisories/Types.swift | 70 ++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 2 deletions(-) diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index 6140331094..a074b03ae2 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -1924,6 +1924,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? /// Creates a new `Repository`. /// /// - Parameters: @@ -2022,6 +2051,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -2117,7 +2147,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.Repository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -2214,6 +2245,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -2311,6 +2343,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// A GitHub repository. @@ -3489,6 +3522,35 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/anonymous_access_enabled`. public var anonymousAccessEnabled: Swift.Bool? + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public struct CodeSearchIndexStatusPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_search_ok`. + public var lexicalSearchOk: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status/lexical_commit_sha`. + public var lexicalCommitSha: Swift.String? + /// Creates a new `CodeSearchIndexStatusPayload`. + /// + /// - Parameters: + /// - lexicalSearchOk: + /// - lexicalCommitSha: + public init( + lexicalSearchOk: Swift.Bool? = nil, + lexicalCommitSha: Swift.String? = nil + ) { + self.lexicalSearchOk = lexicalSearchOk + self.lexicalCommitSha = lexicalCommitSha + } + public enum CodingKeys: String, CodingKey { + case lexicalSearchOk = "lexical_search_ok" + case lexicalCommitSha = "lexical_commit_sha" + } + } + /// The status of the code search index for this repository + /// + /// - Remark: Generated from `#/components/schemas/nullable-repository/code_search_index_status`. + public var codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? /// Creates a new `NullableRepository`. /// /// - Parameters: @@ -3587,6 +3649,7 @@ public enum Components { /// - masterBranch: /// - starredAt: /// - anonymousAccessEnabled: Whether anonymous git access is enabled for this repository + /// - codeSearchIndexStatus: The status of the code search index for this repository public init( id: Swift.Int64, nodeId: Swift.String, @@ -3682,7 +3745,8 @@ public enum Components { watchers: Swift.Int, masterBranch: Swift.String? = nil, starredAt: Swift.String? = nil, - anonymousAccessEnabled: Swift.Bool? = nil + anonymousAccessEnabled: Swift.Bool? = nil, + codeSearchIndexStatus: Components.Schemas.NullableRepository.CodeSearchIndexStatusPayload? = nil ) { self.id = id self.nodeId = nodeId @@ -3779,6 +3843,7 @@ public enum Components { self.masterBranch = masterBranch self.starredAt = starredAt self.anonymousAccessEnabled = anonymousAccessEnabled + self.codeSearchIndexStatus = codeSearchIndexStatus } public enum CodingKeys: String, CodingKey { case id @@ -3876,6 +3941,7 @@ public enum Components { case masterBranch = "master_branch" case starredAt = "starred_at" case anonymousAccessEnabled = "anonymous_access_enabled" + case codeSearchIndexStatus = "code_search_index_status" } } /// Code of Conduct Simple From de9d04edc575ca90b571895ed308e22970d3f012 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Tue, 27 May 2025 03:50:35 +0000 Subject: [PATCH 13/13] Commit via running: make Sources/private-registries --- Sources/private-registries/Types.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Sources/private-registries/Types.swift b/Sources/private-registries/Types.swift index d89d001fbc..6dc8524a06 100644 --- a/Sources/private-registries/Types.swift +++ b/Sources/private-registries/Types.swift @@ -440,6 +440,8 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration/registry_type`. @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case mavenRepository = "maven_repository" + case nugetFeed = "nuget_feed" + case goproxyServer = "goproxy_server" } /// The registry type. /// @@ -511,6 +513,8 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/org-private-registry-configuration-with-selected-repositories/registry_type`. @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case mavenRepository = "maven_repository" + case nugetFeed = "nuget_feed" + case goproxyServer = "goproxy_server" } /// The registry type. /// @@ -1024,6 +1028,8 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/POST/requestBody/json/registry_type`. @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case mavenRepository = "maven_repository" + case nugetFeed = "nuget_feed" + case goproxyServer = "goproxy_server" } /// The registry type. /// @@ -1667,6 +1673,8 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/private-registries/{secret_name}/PATCH/requestBody/json/registry_type`. @frozen public enum RegistryTypePayload: String, Codable, Hashable, Sendable, CaseIterable { case mavenRepository = "maven_repository" + case nugetFeed = "nuget_feed" + case goproxyServer = "goproxy_server" } /// The registry type. ///