diff --git a/.spi.yml b/.spi.yml index c5f8ce72eeb..f829d7e353b 100644 --- a/.spi.yml +++ b/.spi.yml @@ -31,6 +31,7 @@ builder: - GitHubRestAPIOidc - GitHubRestAPIOrgs - GitHubRestAPIPackages + - GitHubRestAPIPrivate_Registries - GitHubRestAPIProjects - GitHubRestAPIPulls - GitHubRestAPIRate_Limit diff --git a/Package.swift b/Package.swift index abb5eac1ca7..be43e368b45 100644 --- a/Package.swift +++ b/Package.swift @@ -40,6 +40,7 @@ let package = Package( .library(name: "GitHubRestAPIOidc", targets: ["GitHubRestAPIOidc"]), .library(name: "GitHubRestAPIOrgs", targets: ["GitHubRestAPIOrgs"]), .library(name: "GitHubRestAPIPackages", targets: ["GitHubRestAPIPackages"]), + .library(name: "GitHubRestAPIPrivate_Registries", targets: ["GitHubRestAPIPrivate_Registries"]), .library(name: "GitHubRestAPIProjects", targets: ["GitHubRestAPIProjects"]), .library(name: "GitHubRestAPIPulls", targets: ["GitHubRestAPIPulls"]), .library(name: "GitHubRestAPIRate_Limit", targets: ["GitHubRestAPIRate_Limit"]), @@ -288,6 +289,14 @@ let package = Package( ], path: "Sources/packages" ), + .target( + name: "GitHubRestAPIPrivate_Registries", + dependencies: [ + .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"), + .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"), + ], + path: "Sources/private-registries" + ), .target( name: "GitHubRestAPIProjects", dependencies: [ diff --git a/Sources/actions/Client.swift b/Sources/actions/Client.swift index add941952b2..904b4653304 100644 --- a/Sources/actions/Client.swift +++ b/Sources/actions/Client.swift @@ -779,6 +779,804 @@ public struct Client: APIProtocol { } ) } + /// List self-hosted runner groups for an organization + /// + /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. + public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups", + parameters: [ + input.path.org + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .get + ) + suppressMutabilityWarning(&request) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "per_page", + value: input.query.per_page + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "page", + value: input.query.page + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "visible_to_repository", + value: input.query.visible_to_repository + ) + 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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Create a self-hosted runner group for an organization + /// + /// Creates a new self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. + public func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups", + parameters: [ + input.path.org + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .post + ) + 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 201: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Components.Schemas.runner_hyphen_groups_hyphen_org.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .created(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Get a self-hosted runner group for an organization + /// + /// Gets a specific self-hosted runner group for an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. + public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + 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.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.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.runner_hyphen_groups_hyphen_org.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Update a self-hosted runner group for an organization + /// + /// Updates the `name` and `visibility` of a self-hosted runner group in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. + public func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .patch + ) + 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 200: + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.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.runner_hyphen_groups_hyphen_org.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Delete a self-hosted runner group from an organization + /// + /// Deletes a self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. + public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .delete + ) + suppressMutabilityWarning(&request) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// List repository access to a self-hosted runner group in an organization + /// + /// Lists the repositories with access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/repositories", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .get + ) + suppressMutabilityWarning(&request) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "page", + value: input.query.page + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "per_page", + value: input.query.per_page + ) + 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.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init(body: body)) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Set repository access for a self-hosted runner group in an organization + /// + /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/repositories", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .put + ) + suppressMutabilityWarning(&request) + 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()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Add repository access to a self-hosted runner group in an organization + /// + /// Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/repositories/{}", + parameters: [ + input.path.org, + input.path.runner_group_id, + input.path.repository_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .put + ) + suppressMutabilityWarning(&request) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Remove repository access to a self-hosted runner group in an organization + /// + /// Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/repositories/{}", + parameters: [ + input.path.org, + input.path.runner_group_id, + input.path.repository_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .delete + ) + suppressMutabilityWarning(&request) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// List self-hosted runners in a group for an organization + /// + /// Lists self-hosted runners that are in a specific organization group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. + public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/runners", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .get + ) + suppressMutabilityWarning(&request) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "per_page", + value: input.query.per_page + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "page", + value: input.query.page + ) + converter.setAcceptHeader( + in: &request.headerFields, + contentTypes: input.headers.accept + ) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 200: + let headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(Link: try converter.getOptionalHeaderFieldAsURI( + in: response.headerFields, + name: "Link", + as: Components.Headers.link.self + )) + let contentType = converter.extractContentTypeIfPresent(in: response.headerFields) + let body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + let chosenContentType = try converter.bestContentType( + received: contentType, + options: [ + "application/json" + ] + ) + switch chosenContentType { + case "application/json": + body = try await converter.getResponseBodyAsJSON( + Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload.self, + from: responseBody, + transforming: { value in + .json(value) + } + ) + default: + preconditionFailure("bestContentType chose an invalid content type.") + } + return .ok(.init( + headers: headers, + body: body + )) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Set self-hosted runners in a group for an organization + /// + /// Replaces the list of self-hosted runners that are part of an organization runner group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. + public func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/runners", + parameters: [ + input.path.org, + input.path.runner_group_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .put + ) + suppressMutabilityWarning(&request) + 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()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Add a self-hosted runner to a group for an organization + /// + /// Adds a self-hosted runner to a runner group configured in an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. + public func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/runners/{}", + parameters: [ + input.path.org, + input.path.runner_group_id, + input.path.runner_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .put + ) + suppressMutabilityWarning(&request) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } + /// Remove a self-hosted runner from a group for an organization + /// + /// Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. + public func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output { + try await client.send( + input: input, + forOperation: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.id, + serializer: { input in + let path = try converter.renderedPath( + template: "/orgs/{}/actions/runner-groups/{}/runners/{}", + parameters: [ + input.path.org, + input.path.runner_group_id, + input.path.runner_id + ] + ) + var request: HTTPTypes.HTTPRequest = .init( + soar_path: path, + method: .delete + ) + suppressMutabilityWarning(&request) + return (request, nil) + }, + deserializer: { response, responseBody in + switch response.status.code { + case 204: + return .noContent(.init()) + default: + return .undocumented( + statusCode: response.status.code, + .init( + headerFields: response.headerFields, + body: responseBody + ) + ) + } + } + ) + } /// List self-hosted runners for an organization /// /// Lists all self-hosted runners configured in an organization. diff --git a/Sources/actions/Types.swift b/Sources/actions/Types.swift index b81f0496849..220613fe563 100644 --- a/Sources/actions/Types.swift +++ b/Sources/actions/Types.swift @@ -126,6 +126,123 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `PUT /orgs/{org}/actions/permissions/workflow`. /// - Remark: Generated from `#/paths//orgs/{org}/actions/permissions/workflow/put(actions/set-github-actions-default-workflow-permissions-organization)`. func actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization(_ input: Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Input) async throws -> Operations.actions_sol_set_hyphen_github_hyphen_actions_hyphen_default_hyphen_workflow_hyphen_permissions_hyphen_organization.Output + /// List self-hosted runner groups for an organization + /// + /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. + func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output + /// Create a self-hosted runner group for an organization + /// + /// Creates a new self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. + func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + /// Get a self-hosted runner group for an organization + /// + /// Gets a specific self-hosted runner group for an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. + func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + /// Update a self-hosted runner group for an organization + /// + /// Updates the `name` and `visibility` of a self-hosted runner group in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. + func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output + /// Delete a self-hosted runner group from an organization + /// + /// Deletes a self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. + func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(_ input: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output + /// List repository access to a self-hosted runner group in an organization + /// + /// Lists the repositories with access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. + func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + /// Set repository access for a self-hosted runner group in an organization + /// + /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. + func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + /// Add repository access to a self-hosted runner group in an organization + /// + /// Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. + func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + /// Remove repository access to a self-hosted runner group in an organization + /// + /// Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. + func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output + /// List self-hosted runners in a group for an organization + /// + /// Lists self-hosted runners that are in a specific organization group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. + func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output + /// Set self-hosted runners in a group for an organization + /// + /// Replaces the list of self-hosted runners that are part of an organization runner group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. + func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output + /// Add a self-hosted runner to a group for an organization + /// + /// Adds a self-hosted runner to a runner group configured in an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. + func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output + /// Remove a self-hosted runner from a group for an organization + /// + /// Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. + func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(_ input: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output /// List self-hosted runners for an organization /// /// Lists all self-hosted runners configured in an organization. @@ -1595,6 +1712,207 @@ extension APIProtocol { body: body )) } + /// List self-hosted runner groups for an organization + /// + /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. + public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org( + path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers = .init() + ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output { + try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input( + path: path, + query: query, + headers: headers + )) + } + /// Create a self-hosted runner group for an organization + /// + /// Creates a new self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. + public func actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( + path: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), + body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) async throws -> Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + path: path, + headers: headers, + body: body + )) + } + /// Get a self-hosted runner group for an organization + /// + /// Gets a specific self-hosted runner group for an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. + public func actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( + path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + ) async throws -> Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + path: path, + headers: headers + )) + } + /// Update a self-hosted runner group for an organization + /// + /// Updates the `name` and `visibility` of a self-hosted runner group in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. + public func actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org( + path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), + body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) async throws -> Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input( + path: path, + headers: headers, + body: body + )) + } + /// Delete a self-hosted runner group from an organization + /// + /// Deletes a self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. + public func actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path) async throws -> Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output { + try await actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input(path: path)) + } + /// List repository access to a self-hosted runner group in an organization + /// + /// Lists the repositories with access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org( + path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers = .init() + ) async throws -> Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input( + path: path, + query: query, + headers: headers + )) + } + /// Set repository access for a self-hosted runner group in an organization + /// + /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org( + path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, + body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body + ) async throws -> Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input( + path: path, + body: body + )) + } + /// Add repository access to a self-hosted runner group in an organization + /// + /// Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input(path: path)) + } + /// Remove repository access to a self-hosted runner group in an organization + /// + /// Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. + public func actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output { + try await actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org(Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input(path: path)) + } + /// List self-hosted runners in a group for an organization + /// + /// Lists self-hosted runners that are in a specific organization group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. + public func actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org( + path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + ) async throws -> Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input( + path: path, + query: query, + headers: headers + )) + } + /// Set self-hosted runners in a group for an organization + /// + /// Replaces the list of self-hosted runners that are part of an organization runner group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. + public func actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org( + path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, + body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) async throws -> Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input( + path: path, + body: body + )) + } + /// Add a self-hosted runner to a group for an organization + /// + /// Adds a self-hosted runner to a runner group configured in an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. + public func actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path) async throws -> Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input(path: path)) + } + /// Remove a self-hosted runner from a group for an organization + /// + /// Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. + public func actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path) async throws -> Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output { + try await actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org(Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input(path: path)) + } /// List self-hosted runners for an organization /// /// Lists all self-hosted runners configured in an organization. @@ -3775,6 +4093,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -3799,6 +4119,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -3820,7 +4141,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -3843,6 +4165,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -3866,6 +4189,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -3982,6 +4306,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -4006,6 +4332,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -4027,7 +4354,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -4050,6 +4378,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -4073,6 +4402,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Scim Error @@ -4421,7 +4751,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -4609,7 +4939,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -5550,6 +5880,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -5558,18 +5910,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -5577,6 +5932,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -6424,6 +6780,103 @@ public enum Components { case can_approve_pull_request_reviews } } + /// - Remark: Generated from `#/components/schemas/runner-groups-org`. + public struct runner_hyphen_groups_hyphen_org: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/runner-groups-org/id`. + public var id: Swift.Double + /// - Remark: Generated from `#/components/schemas/runner-groups-org/name`. + public var name: Swift.String + /// - Remark: Generated from `#/components/schemas/runner-groups-org/visibility`. + public var visibility: Swift.String + /// - Remark: Generated from `#/components/schemas/runner-groups-org/default`. + public var _default: Swift.Bool + /// Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` + /// + /// - Remark: Generated from `#/components/schemas/runner-groups-org/selected_repositories_url`. + public var selected_repositories_url: Swift.String? + /// - Remark: Generated from `#/components/schemas/runner-groups-org/runners_url`. + public var runners_url: Swift.String + /// - Remark: Generated from `#/components/schemas/runner-groups-org/hosted_runners_url`. + public var hosted_runners_url: Swift.String? + /// - Remark: Generated from `#/components/schemas/runner-groups-org/inherited`. + public var inherited: Swift.Bool + /// - Remark: Generated from `#/components/schemas/runner-groups-org/inherited_allows_public_repositories`. + public var inherited_allows_public_repositories: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/runner-groups-org/allows_public_repositories`. + public var allows_public_repositories: Swift.Bool + /// If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. + /// + /// - Remark: Generated from `#/components/schemas/runner-groups-org/workflow_restrictions_read_only`. + public var workflow_restrictions_read_only: Swift.Bool? + /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// + /// - Remark: Generated from `#/components/schemas/runner-groups-org/restricted_to_workflows`. + public var restricted_to_workflows: Swift.Bool? + /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// + /// - Remark: Generated from `#/components/schemas/runner-groups-org/selected_workflows`. + public var selected_workflows: [Swift.String]? + /// Creates a new `runner_hyphen_groups_hyphen_org`. + /// + /// - Parameters: + /// - id: + /// - name: + /// - visibility: + /// - _default: + /// - selected_repositories_url: Link to the selected repositories resource for this runner group. Not present unless visibility was set to `selected` + /// - runners_url: + /// - hosted_runners_url: + /// - inherited: + /// - inherited_allows_public_repositories: + /// - allows_public_repositories: + /// - workflow_restrictions_read_only: If `true`, the `restricted_to_workflows` and `selected_workflows` fields cannot be modified. + /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + public init( + id: Swift.Double, + name: Swift.String, + visibility: Swift.String, + _default: Swift.Bool, + selected_repositories_url: Swift.String? = nil, + runners_url: Swift.String, + hosted_runners_url: Swift.String? = nil, + inherited: Swift.Bool, + inherited_allows_public_repositories: Swift.Bool? = nil, + allows_public_repositories: Swift.Bool, + workflow_restrictions_read_only: Swift.Bool? = nil, + restricted_to_workflows: Swift.Bool? = nil, + selected_workflows: [Swift.String]? = nil + ) { + self.id = id + self.name = name + self.visibility = visibility + self._default = _default + self.selected_repositories_url = selected_repositories_url + self.runners_url = runners_url + self.hosted_runners_url = hosted_runners_url + self.inherited = inherited + self.inherited_allows_public_repositories = inherited_allows_public_repositories + self.allows_public_repositories = allows_public_repositories + self.workflow_restrictions_read_only = workflow_restrictions_read_only + self.restricted_to_workflows = restricted_to_workflows + self.selected_workflows = selected_workflows + } + public enum CodingKeys: String, CodingKey { + case id + case name + case visibility + case _default = "default" + case selected_repositories_url + case runners_url + case hosted_runners_url + case inherited + case inherited_allows_public_repositories + case allows_public_repositories + case workflow_restrictions_read_only + case restricted_to_workflows + case selected_workflows + } + } /// A label for a self hosted runner /// /// - Remark: Generated from `#/components/schemas/runner-label`. @@ -9035,6 +9488,14 @@ public enum Components { /// /// - Remark: Generated from `#/components/parameters/repository-id`. public typealias repository_hyphen_id = Swift.Int + /// Only return runner groups that are allowed to be used by this repository. + /// + /// - Remark: Generated from `#/components/parameters/visible-to-repository`. + public typealias visible_hyphen_to_hyphen_repository = Swift.String + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/components/parameters/runner-group-id`. + public typealias runner_hyphen_group_hyphen_id = Swift.Int /// Unique identifier of the self-hosted runner. /// /// - Remark: Generated from `#/components/parameters/runner-id`. @@ -11038,6 +11499,1797 @@ public enum Operations { case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) } } + /// List self-hosted runner groups for an organization + /// + /// Lists all self-hosted runner groups configured in an organization and inherited from an enterprise. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)`. + public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/list-self-hosted-runner-groups-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query`. + public struct Query: Sendable, Hashable { + /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/per_page`. + public var per_page: Components.Parameters.per_hyphen_page? + /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/page`. + public var page: Components.Parameters.page? + /// Only return runner groups that are allowed to be used by this repository. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/query/visible_to_repository`. + public var visible_to_repository: Components.Parameters.visible_hyphen_to_hyphen_repository? + /// Creates a new `Query`. + /// + /// - Parameters: + /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - visible_to_repository: Only return runner groups that are allowed to be used by this repository. + public init( + per_page: Components.Parameters.per_hyphen_page? = nil, + page: Components.Parameters.page? = nil, + visible_to_repository: Components.Parameters.visible_hyphen_to_hyphen_repository? = nil + ) { + self.per_page = per_page + self.page = page + self.visible_to_repository = visible_to_repository + } + } + public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - query: + /// - headers: + public init( + path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Input.Headers = .init() + ) { + self.path = path + self.query = query + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json/total_count`. + public var total_count: Swift.Double + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/json/runner_groups`. + public var runner_groups: [Components.Schemas.runner_hyphen_groups_hyphen_org] + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - total_count: + /// - runner_groups: + public init( + total_count: Swift.Double, + runner_groups: [Components.Schemas.runner_hyphen_groups_hyphen_org] + ) { + self.total_count = total_count + self.runner_groups = runner_groups + } + public enum CodingKeys: String, CodingKey { + case total_count + case runner_groups + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/GET/responses/200/content/application\/json`. + case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/get(actions/list-self-hosted-runner-groups-for-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_groups_hyphen_for_hyphen_org.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + 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 + ] + } + } + } + /// Create a self-hosted runner group for an organization + /// + /// Creates a new self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `POST /orgs/{org}/actions/runner-groups`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)`. + public enum actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/create-self-hosted-runner-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/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.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/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.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// Name of the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/name`. + public var name: Swift.String + /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/visibility`. + @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + case selected = "selected" + case all = "all" + case _private = "private" + } + /// Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/visibility`. + public var visibility: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? + /// List of repository IDs that can access the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/selected_repository_ids`. + public var selected_repository_ids: [Swift.Int]? + /// List of runner IDs to add to the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/runners`. + public var runners: [Swift.Int]? + /// Whether the runner group can be used by `public` repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/allows_public_repositories`. + public var allows_public_repositories: Swift.Bool? + /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/restricted_to_workflows`. + public var restricted_to_workflows: Swift.Bool? + /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/json/selected_workflows`. + public var selected_workflows: [Swift.String]? + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - name: Name of the runner group. + /// - visibility: Visibility of a runner group. You can select all repositories, select individual repositories, or limit access to private repositories. + /// - selected_repository_ids: List of repository IDs that can access the runner group. + /// - runners: List of runner IDs to add to the runner group. + /// - allows_public_repositories: Whether the runner group can be used by `public` repositories. + /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + public init( + name: Swift.String, + visibility: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? = nil, + selected_repository_ids: [Swift.Int]? = nil, + runners: [Swift.Int]? = nil, + allows_public_repositories: Swift.Bool? = nil, + restricted_to_workflows: Swift.Bool? = nil, + selected_workflows: [Swift.String]? = nil + ) { + self.name = name + self.visibility = visibility + self.selected_repository_ids = selected_repository_ids + self.runners = runners + self.allows_public_repositories = allows_public_repositories + self.restricted_to_workflows = restricted_to_workflows + self.selected_workflows = selected_workflows + } + public enum CodingKeys: String, CodingKey { + case name + case visibility + case selected_repository_ids + case runners + case allows_public_repositories + case restricted_to_workflows + case selected_workflows + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/requestBody/content/application\/json`. + case json(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + } + public var body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + /// - body: + public init( + path: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), + body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) { + self.path = path + self.headers = headers + self.body = body + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Created: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/responses/201/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/POST/responses/201/content/application\/json`. + case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + /// 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.runner_hyphen_groups_hyphen_org { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body + /// Creates a new `Created`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/post(actions/create-self-hosted-runner-group-for-org)/responses/201`. + /// + /// HTTP response code: `201 created`. + case created(Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created) + /// The associated value of the enum case if `self` is `.created`. + /// + /// - Throws: An error if `self` is not `.created`. + /// - SeeAlso: `.created`. + public var created: Operations.actions_sol_create_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Created { + get throws { + switch self { + case let .created(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "created", + 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 + ] + } + } + } + /// Get a self-hosted runner group for an organization + /// + /// Gets a specific self-hosted runner group for an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)`. + public enum actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/get-self-hosted-runner-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/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.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + public init( + path: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + ) { + self.path = path + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/GET/responses/200/content/application\/json`. + case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + /// 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.runner_hyphen_groups_hyphen_org { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/get(actions/get-self-hosted-runner-group-for-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.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.actions_sol_get_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + 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 + ] + } + } + } + /// Update a self-hosted runner group for an organization + /// + /// Updates the `name` and `visibility` of a self-hosted runner group in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PATCH /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)`. + public enum actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/update-self-hosted-runner-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/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.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// Name of the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/name`. + public var name: Swift.String + /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/visibility`. + @frozen public enum visibilityPayload: String, Codable, Hashable, Sendable { + case selected = "selected" + case all = "all" + case _private = "private" + } + /// Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/visibility`. + public var visibility: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? + /// Whether the runner group can be used by `public` repositories. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/allows_public_repositories`. + public var allows_public_repositories: Swift.Bool? + /// If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/restricted_to_workflows`. + public var restricted_to_workflows: Swift.Bool? + /// List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/json/selected_workflows`. + public var selected_workflows: [Swift.String]? + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - name: Name of the runner group. + /// - visibility: Visibility of a runner group. You can select all repositories, select individual repositories, or all private repositories. + /// - allows_public_repositories: Whether the runner group can be used by `public` repositories. + /// - restricted_to_workflows: If `true`, the runner group will be restricted to running only the workflows specified in the `selected_workflows` array. + /// - selected_workflows: List of workflows the runner group should be allowed to run. This setting will be ignored unless `restricted_to_workflows` is set to `true`. + public init( + name: Swift.String, + visibility: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload.visibilityPayload? = nil, + allows_public_repositories: Swift.Bool? = nil, + restricted_to_workflows: Swift.Bool? = nil, + selected_workflows: [Swift.String]? = nil + ) { + self.name = name + self.visibility = visibility + self.allows_public_repositories = allows_public_repositories + self.restricted_to_workflows = restricted_to_workflows + self.selected_workflows = selected_workflows + } + public enum CodingKeys: String, CodingKey { + case name + case visibility + case allows_public_repositories + case restricted_to_workflows + case selected_workflows + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/requestBody/content/application\/json`. + case json(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + } + public var body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - headers: + /// - body: + public init( + path: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Path, + headers: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init(), + body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) { + self.path = path + self.headers = headers + self.body = body + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/PATCH/responses/200/content/application\/json`. + case json(Components.Schemas.runner_hyphen_groups_hyphen_org) + /// 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.runner_hyphen_groups_hyphen_org { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/patch(actions/update-self-hosted-runner-group-for-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.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.actions_sol_update_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + 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 + ] + } + } + } + /// Delete a self-hosted runner group from an organization + /// + /// Deletes a self-hosted runner group for an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)`. + public enum actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org { + public static let id: Swift.String = "actions/delete-self-hosted-runner-group-from-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/DELETE/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + public init(path: Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Input.Path) { + self.path = path + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/delete(actions/delete-self-hosted-runner-group-from-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output.NoContent) + /// 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.actions_sol_delete_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_from_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// List repository access to a self-hosted runner group in an organization + /// + /// Lists the repositories with access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)`. + public enum actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public static let id: Swift.String = "actions/list-repo-access-to-self-hosted-runner-group-in-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query`. + public struct Query: Sendable, Hashable { + /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query/page`. + public var page: Components.Parameters.page? + /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/query/per_page`. + public var per_page: Components.Parameters.per_hyphen_page? + /// Creates a new `Query`. + /// + /// - Parameters: + /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + public init( + page: Components.Parameters.page? = nil, + per_page: Components.Parameters.per_hyphen_page? = nil + ) { + self.page = page + self.per_page = per_page + } + } + public var query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/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.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - query: + /// - headers: + public init( + path: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Headers = .init() + ) { + self.path = path + self.query = query + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json/total_count`. + public var total_count: Swift.Double + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/json/repositories`. + public var repositories: [Components.Schemas.minimal_hyphen_repository] + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - total_count: + /// - repositories: + public init( + total_count: Swift.Double, + repositories: [Components.Schemas.minimal_hyphen_repository] + ) { + self.total_count = total_count + self.repositories = repositories + } + public enum CodingKeys: String, CodingKey { + case total_count + case repositories + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/GET/responses/200/content/application\/json`. + case json(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body.jsonPayload { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - body: Received HTTP response body + public init(body: Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok.Body) { + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/get(actions/list-repo-access-to-self-hosted-runner-group-in-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.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.actions_sol_list_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + 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 repository access for a self-hosted runner group in an organization + /// + /// Replaces the list of repositories that have access to a self-hosted runner group configured in an organization. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)`. + public enum actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public static let id: Swift.String = "actions/set-repo-access-to-self-hosted-runner-group-in-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// List of repository IDs that can access the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/json/selected_repository_ids`. + public var selected_repository_ids: [Swift.Int] + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - selected_repository_ids: List of repository IDs that can access the runner group. + public init(selected_repository_ids: [Swift.Int]) { + self.selected_repository_ids = selected_repository_ids + } + public enum CodingKeys: String, CodingKey { + case selected_repository_ids + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/PUT/requestBody/content/application\/json`. + case json(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body.jsonPayload) + } + public var body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - body: + public init( + path: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path, + body: Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Body + ) { + self.path = path + 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//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/put(actions/set-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + /// 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.actions_sol_set_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// Add repository access to a self-hosted runner group in an organization + /// + /// Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)`. + public enum actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public static let id: Swift.String = "actions/add-repo-access-to-self-hosted-runner-group-in-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// The unique identifier of the repository. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/PUT/path/repository_id`. + public var repository_id: Components.Parameters.repository_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - repository_id: The unique identifier of the repository. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, + repository_id: Components.Parameters.repository_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + self.repository_id = repository_id + } + } + public var path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + public init(path: Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) { + self.path = path + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/put(actions/add-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + /// 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.actions_sol_add_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// Remove repository access to a self-hosted runner group in an organization + /// + /// Removes a repository from the list of selected repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)." + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)`. + public enum actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org { + public static let id: Swift.String = "actions/remove-repo-access-to-self-hosted-runner-group-in-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// The unique identifier of the repository. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/DELETE/path/repository_id`. + public var repository_id: Components.Parameters.repository_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - repository_id: The unique identifier of the repository. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, + repository_id: Components.Parameters.repository_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + self.repository_id = repository_id + } + } + public var path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + public init(path: Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Input.Path) { + self.path = path + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}/delete(actions/remove-repo-access-to-self-hosted-runner-group-in-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent) + /// 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.actions_sol_remove_hyphen_repo_hyphen_access_hyphen_to_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_group_hyphen_in_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// List self-hosted runners in a group for an organization + /// + /// Lists self-hosted runners that are in a specific organization group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)`. + public enum actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/list-self-hosted-runners-in-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query`. + public struct Query: Sendable, Hashable { + /// The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query/per_page`. + public var per_page: Components.Parameters.per_hyphen_page? + /// The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/query/page`. + public var page: Components.Parameters.page? + /// Creates a new `Query`. + /// + /// - Parameters: + /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + public init( + per_page: Components.Parameters.per_hyphen_page? = nil, + page: Components.Parameters.page? = nil + ) { + self.per_page = per_page + self.page = page + } + } + public var query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - query: + /// - headers: + public init( + path: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, + query: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Query = .init(), + headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Headers = .init() + ) { + self.path = path + self.query = query + self.headers = headers + } + } + @frozen public enum Output: Sendable, Hashable { + public struct Ok: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/headers`. + public struct Headers: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/headers/Link`. + public var Link: Components.Headers.link? + /// Creates a new `Headers`. + /// + /// - Parameters: + /// - Link: + public init(Link: Components.Headers.link? = nil) { + self.Link = Link + } + } + /// Received HTTP response headers + public var headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json/total_count`. + public var total_count: Swift.Double + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/json/runners`. + public var runners: [Components.Schemas.runner] + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - total_count: + /// - runners: + public init( + total_count: Swift.Double, + runners: [Components.Schemas.runner] + ) { + self.total_count = total_count + self.runners = runners + } + public enum CodingKeys: String, CodingKey { + case total_count + case runners + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/GET/responses/200/content/application\/json`. + case json(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload) + /// The associated value of the enum case if `self` is `.json`. + /// + /// - Throws: An error if `self` is not `.json`. + /// - SeeAlso: `.json`. + public var json: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body.jsonPayload { + get throws { + switch self { + case let .json(body): + return body + } + } + } + } + /// Received HTTP response body + public var body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + /// Creates a new `Ok`. + /// + /// - Parameters: + /// - headers: Received HTTP response headers + /// - body: Received HTTP response body + public init( + headers: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Headers = .init(), + body: Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok.Body + ) { + self.headers = headers + self.body = body + } + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/get(actions/list-self-hosted-runners-in-group-for-org)/responses/200`. + /// + /// HTTP response code: `200 ok`. + case ok(Operations.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.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.actions_sol_list_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.Ok { + get throws { + switch self { + case let .ok(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "ok", + 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 self-hosted runners in a group for an organization + /// + /// Replaces the list of self-hosted runners that are part of an organization runner group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)`. + public enum actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/set-self-hosted-runners-in-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + } + } + public var path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody`. + @frozen public enum Body: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/json`. + public struct jsonPayload: Codable, Hashable, Sendable { + /// List of runner IDs to add to the runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/json/runners`. + public var runners: [Swift.Int] + /// Creates a new `jsonPayload`. + /// + /// - Parameters: + /// - runners: List of runner IDs to add to the runner group. + public init(runners: [Swift.Int]) { + self.runners = runners + } + public enum CodingKeys: String, CodingKey { + case runners + } + } + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/PUT/requestBody/content/application\/json`. + case json(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body.jsonPayload) + } + public var body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + /// - body: + public init( + path: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Path, + body: Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Input.Body + ) { + self.path = path + 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//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/put(actions/set-self-hosted-runners-in-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + /// 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.actions_sol_set_hyphen_self_hyphen_hosted_hyphen_runners_hyphen_in_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// Add a self-hosted runner to a group for an organization + /// + /// Adds a self-hosted runner to a runner group configured in an organization. + /// + /// OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)`. + public enum actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/add-self-hosted-runner-to-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Unique identifier of the self-hosted runner. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/PUT/path/runner_id`. + public var runner_id: Components.Parameters.runner_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runner_id: Unique identifier of the self-hosted runner. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, + runner_id: Components.Parameters.runner_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + self.runner_id = runner_id + } + } + public var path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + public init(path: Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Input.Path) { + self.path = path + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/put(actions/add-self-hosted-runner-to-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + /// 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.actions_sol_add_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_to_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } + /// Remove a self-hosted runner from a group for an organization + /// + /// Removes a self-hosted runner from a group configured in an organization. The runner is then returned to the default group. + /// + /// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint. + /// + /// - Remark: HTTP `DELETE /orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}`. + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)`. + public enum actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org { + public static let id: Swift.String = "actions/remove-self-hosted-runner-from-group-for-org" + public struct Input: Sendable, Hashable { + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path`. + public struct Path: Sendable, Hashable { + /// The organization name. The name is not case sensitive. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/org`. + public var org: Components.Parameters.org + /// Unique identifier of the self-hosted runner group. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/runner_group_id`. + public var runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id + /// Unique identifier of the self-hosted runner. + /// + /// - Remark: Generated from `#/paths/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/DELETE/path/runner_id`. + public var runner_id: Components.Parameters.runner_hyphen_id + /// Creates a new `Path`. + /// + /// - Parameters: + /// - org: The organization name. The name is not case sensitive. + /// - runner_group_id: Unique identifier of the self-hosted runner group. + /// - runner_id: Unique identifier of the self-hosted runner. + public init( + org: Components.Parameters.org, + runner_group_id: Components.Parameters.runner_hyphen_group_hyphen_id, + runner_id: Components.Parameters.runner_hyphen_id + ) { + self.org = org + self.runner_group_id = runner_group_id + self.runner_id = runner_id + } + } + public var path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path + /// Creates a new `Input`. + /// + /// - Parameters: + /// - path: + public init(path: Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Input.Path) { + self.path = path + } + } + @frozen public enum Output: Sendable, Hashable { + public struct NoContent: Sendable, Hashable { + /// Creates a new `NoContent`. + public init() {} + } + /// Response + /// + /// - Remark: Generated from `#/paths//orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}/delete(actions/remove-self-hosted-runner-from-group-for-org)/responses/204`. + /// + /// HTTP response code: `204 noContent`. + case noContent(Operations.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output.NoContent) + /// 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.actions_sol_remove_hyphen_self_hyphen_hosted_hyphen_runner_hyphen_from_hyphen_group_hyphen_for_hyphen_org.Output.NoContent { + get throws { + switch self { + case let .noContent(response): + return response + default: + try throwUnexpectedResponseStatus( + expectedStatus: "noContent", + response: self + ) + } + } + } + /// Undocumented response. + /// + /// A response with a code that is not documented in the OpenAPI document. + case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload) + } + } /// List self-hosted runners for an organization /// /// Lists all self-hosted runners configured in an organization. diff --git a/Sources/activity/Types.swift b/Sources/activity/Types.swift index e764875c002..bccbb3c7352 100644 --- a/Sources/activity/Types.swift +++ b/Sources/activity/Types.swift @@ -889,6 +889,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -913,6 +915,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -934,7 +937,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -957,6 +961,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -980,6 +985,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1065,6 +1071,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1089,6 +1097,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1110,7 +1119,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1133,6 +1143,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1156,6 +1167,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -1580,7 +1592,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -1768,7 +1780,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -3547,6 +3559,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -3555,18 +3589,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -3574,6 +3611,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository diff --git a/Sources/apps/Types.swift b/Sources/apps/Types.swift index cf1b9cc4451..7c320828b2e 100644 --- a/Sources/apps/Types.swift +++ b/Sources/apps/Types.swift @@ -1027,6 +1027,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -1051,6 +1053,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1072,7 +1075,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1095,6 +1099,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1118,6 +1123,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1234,6 +1240,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1258,6 +1266,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1279,7 +1288,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1302,6 +1312,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1325,6 +1336,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. @@ -2654,13 +2666,13 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. public var organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. @frozen public enum organization_copilot_seat_managementPayload: String, Codable, Hashable, Sendable { case write = "write" } - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. public var organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? @@ -2728,7 +2740,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. public var organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. @frozen public enum organization_projectsPayload: String, Codable, Hashable, Sendable { @@ -2736,7 +2748,7 @@ public enum Components { case write = "write" case admin = "admin" } - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. public var organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? @@ -2902,14 +2914,14 @@ public enum Components { /// - organization_custom_roles: The level of permission to grant the access token for custom repository roles management. /// - organization_custom_org_roles: The level of permission to grant the access token for custom organization roles management. /// - organization_custom_properties: The level of permission to grant the access token for custom property management. - /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// - organization_announcement_banners: The level of permission to grant the access token to view and manage announcement banners for an organization. /// - organization_events: The level of permission to grant the access token to view events triggered by an activity in an organization. /// - organization_hooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. /// - organization_personal_access_tokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// - organization_personal_access_token_requests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// - organization_plan: The level of permission to grant the access token for viewing an organization's plan. - /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// - organization_packages: The level of permission to grant the access token for organization packages published to GitHub Packages. /// - organization_secrets: The level of permission to grant the access token to manage organization secrets. /// - organization_self_hosted_runners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. @@ -3560,7 +3572,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -3748,7 +3760,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. diff --git a/Sources/checks/Types.swift b/Sources/checks/Types.swift index 122d36f2fe2..65c72b9f68b 100644 --- a/Sources/checks/Types.swift +++ b/Sources/checks/Types.swift @@ -463,6 +463,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -487,6 +489,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -508,7 +511,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -531,6 +535,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -554,6 +559,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -639,6 +645,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -663,6 +671,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -684,7 +693,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -707,6 +717,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -730,6 +741,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Code Of Conduct @@ -1124,6 +1136,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -1132,18 +1166,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -1151,6 +1188,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository diff --git a/Sources/code-scanning/Client.swift b/Sources/code-scanning/Client.swift index a0d4edc944c..288da633614 100644 --- a/Sources/code-scanning/Client.swift +++ b/Sources/code-scanning/Client.swift @@ -306,6 +306,20 @@ public struct Client: APIProtocol { name: "direction", value: input.query.direction ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "before", + value: input.query.before + ) + try converter.setQueryItemAsURI( + in: &request, + style: .form, + explode: true, + name: "after", + value: input.query.after + ) try converter.setQueryItemAsURI( in: &request, style: .form, @@ -891,7 +905,7 @@ public struct Client: APIProtocol { /// and `0` is returned in this field. /// /// > [!WARNING] - /// > **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. + /// > **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// diff --git a/Sources/code-scanning/Types.swift b/Sources/code-scanning/Types.swift index 7681eaa8523..751fe9c7ccf 100644 --- a/Sources/code-scanning/Types.swift +++ b/Sources/code-scanning/Types.swift @@ -75,7 +75,7 @@ public protocol APIProtocol: Sendable { /// and `0` is returned in this field. /// /// > [!WARNING] - /// > **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. + /// > **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// @@ -413,7 +413,7 @@ extension APIProtocol { /// and `0` is returned in this field. /// /// > [!WARNING] - /// > **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. + /// > **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// @@ -803,6 +803,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -827,6 +829,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -848,7 +851,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -871,6 +875,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -894,6 +899,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -979,6 +985,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1003,6 +1011,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1024,7 +1033,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1047,6 +1057,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1070,6 +1081,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Scim Error @@ -3916,6 +3928,14 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/direction`. public var direction: Components.Parameters.direction? + /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/before`. + public var before: Components.Parameters.pagination_hyphen_before? + /// A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/after`. + public var after: Components.Parameters.pagination_hyphen_after? /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/code-scanning/alerts/GET/query/sort`. @frozen public enum sortPayload: String, Codable, Hashable, Sendable { case created = "created" @@ -3943,6 +3963,8 @@ public enum Operations { /// - ref: The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/` or simply ``. To reference a pull request use `refs/pull//merge`. /// - pr: The number of the pull request for the results you want to list. /// - direction: The direction to sort the results by. + /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." + /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - sort: The property by which to sort the results. /// - state: If specified, only code scanning alerts with this state will be returned. /// - severity: If specified, only code scanning alerts with this severity will be returned. @@ -3954,6 +3976,8 @@ public enum Operations { ref: Components.Parameters.git_hyphen_ref? = nil, pr: Components.Parameters.pr_hyphen_alias? = nil, direction: Components.Parameters.direction? = nil, + before: Components.Parameters.pagination_hyphen_before? = nil, + after: Components.Parameters.pagination_hyphen_after? = nil, sort: Operations.code_hyphen_scanning_sol_list_hyphen_alerts_hyphen_for_hyphen_repo.Input.Query.sortPayload? = nil, state: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_state_hyphen_query? = nil, severity: Components.Schemas.code_hyphen_scanning_hyphen_alert_hyphen_severity? = nil @@ -3965,6 +3989,8 @@ public enum Operations { self.ref = ref self.pr = pr self.direction = direction + self.before = before + self.after = after self.sort = sort self.state = state self.severity = severity @@ -4946,7 +4972,7 @@ public enum Operations { /// and `0` is returned in this field. /// /// > [!WARNING] - /// > **Deprecation notice:** The `tool_name` field is deprecated and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. + /// > **Closing down notice:** The `tool_name` field is closing down and will, in future, not be included in the response for this endpoint. The example response reflects this change. The tool name can now be found inside the `tool` field. /// /// OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories. /// diff --git a/Sources/code-security/Types.swift b/Sources/code-security/Types.swift index 9b9bca817fe..41b8a18cd9d 100644 --- a/Sources/code-security/Types.swift +++ b/Sources/code-security/Types.swift @@ -435,6 +435,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -459,6 +461,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -480,7 +483,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -503,6 +507,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -526,6 +531,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1011,6 +1017,7 @@ public enum Components { @frozen public enum target_typePayload: String, Codable, Hashable, Sendable { case global = "global" case organization = "organization" + case enterprise = "enterprise" } /// The type of the code security configuration. /// diff --git a/Sources/codespaces/Types.swift b/Sources/codespaces/Types.swift index 3e31259f699..8c76b52204a 100644 --- a/Sources/codespaces/Types.swift +++ b/Sources/codespaces/Types.swift @@ -1445,6 +1445,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -1469,6 +1471,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1490,7 +1493,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1513,6 +1517,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1536,6 +1541,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1621,6 +1627,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1645,6 +1653,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1666,7 +1675,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1689,6 +1699,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1712,6 +1723,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Scim Error @@ -2185,7 +2197,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -2373,7 +2385,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -2840,6 +2852,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -2848,18 +2882,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -2867,6 +2904,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -4289,7 +4327,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -4477,7 +4515,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -10558,7 +10596,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/location`. public var location: Swift.String? - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/geo`. @frozen public enum geoPayload: String, Codable, Hashable, Sendable { @@ -10567,7 +10605,7 @@ public enum Operations { case UsEast = "UsEast" case UsWest = "UsWest" } - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/codespaces/POST/requestBody/json/geo`. public var geo: Operations.codespaces_sol_create_hyphen_with_hyphen_repo_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? @@ -10608,7 +10646,7 @@ public enum Operations { /// - Parameters: /// - ref: Git ref (typically a branch name) for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. - /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// - client_ip: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace /// - devcontainer_path: Path to devcontainer.json config to use for this codespace @@ -13029,7 +13067,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/location`. public var location: Swift.String? - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/geo`. @frozen public enum geoPayload: String, Codable, Hashable, Sendable { @@ -13038,7 +13076,7 @@ public enum Operations { case UsEast = "UsEast" case UsWest = "UsWest" } - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/codespaces/POST/requestBody/json/geo`. public var geo: Operations.codespaces_sol_create_hyphen_with_hyphen_pr_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.geoPayload? @@ -13078,7 +13116,7 @@ public enum Operations { /// /// - Parameters: /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. - /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// - client_ip: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace /// - devcontainer_path: Path to devcontainer.json config to use for this codespace @@ -13700,7 +13738,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/location`. public var location: Swift.String? - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/geo`. @frozen public enum geoPayload: String, Codable, Hashable, Sendable { @@ -13709,7 +13747,7 @@ public enum Operations { case UsEast = "UsEast" case UsWest = "UsWest" } - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case1/geo`. public var geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case1Payload.geoPayload? @@ -13751,7 +13789,7 @@ public enum Operations { /// - repository_id: Repository id for this codespace /// - ref: Git ref (typically a branch name) for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. - /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// - client_ip: IP for location auto-detection when proxying a request /// - machine: Machine type to use for this codespace /// - devcontainer_path: Path to devcontainer.json config to use for this codespace @@ -13843,7 +13881,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/location`. public var location: Swift.String? - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/geo`. @frozen public enum geoPayload: String, Codable, Hashable, Sendable { @@ -13852,7 +13890,7 @@ public enum Operations { case UsEast = "UsEast" case UsWest = "UsWest" } - /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// /// - Remark: Generated from `#/paths/user/codespaces/POST/requestBody/json/case2/geo`. public var geo: Operations.codespaces_sol_create_hyphen_for_hyphen_authenticated_hyphen_user.Input.Body.jsonPayload.Case2Payload.geoPayload? @@ -13877,7 +13915,7 @@ public enum Operations { /// - Parameters: /// - pull_request: Pull request number for this codespace /// - location: The requested location for a new codespace. Best efforts are made to respect this upon creation. Assigned by IP if not provided. - /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is being deprecated. + /// - geo: The geographic area for this codespace. If not specified, the value is assigned by IP. This property replaces `location`, which is closing down. /// - machine: Machine type to use for this codespace /// - devcontainer_path: Path to devcontainer.json config to use for this codespace /// - working_directory: Working directory for this codespace diff --git a/Sources/copilot/Client.swift b/Sources/copilot/Client.swift index 601629eab90..184dac7718b 100644 --- a/Sources/copilot/Client.swift +++ b/Sources/copilot/Client.swift @@ -41,7 +41,7 @@ public struct Client: APIProtocol { /// List all Copilot seat assignments for an enterprise /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription. /// @@ -226,7 +226,7 @@ public struct Client: APIProtocol { /// Get a summary of Copilot usage for enterprise members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances, @@ -419,7 +419,7 @@ public struct Client: APIProtocol { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -616,7 +616,7 @@ public struct Client: APIProtocol { /// Get Copilot seat information and settings for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets information about an organization's Copilot subscription, including seat breakdown /// and feature policies. To configure these settings, go to your organization's settings on GitHub.com. @@ -779,7 +779,7 @@ public struct Client: APIProtocol { /// List all Copilot seat assignments for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription. /// Only organization owners can view assigned seats. @@ -959,7 +959,7 @@ public struct Client: APIProtocol { /// Add teams to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -1136,7 +1136,7 @@ public struct Client: APIProtocol { /// Remove teams from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for all members of each team specified. /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -1311,7 +1311,7 @@ public struct Client: APIProtocol { /// Add users to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -1488,7 +1488,7 @@ public struct Client: APIProtocol { /// Remove users from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for each user specified. /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -1663,7 +1663,7 @@ public struct Client: APIProtocol { /// Get a summary of Copilot usage for organization members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -1856,7 +1856,7 @@ public struct Client: APIProtocol { /// Get Copilot seat assignment details for a user /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot. /// @@ -2018,7 +2018,7 @@ public struct Client: APIProtocol { /// Get a summary of Copilot usage for a team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. diff --git a/Sources/copilot/Types.swift b/Sources/copilot/Types.swift index b488e20f49f..e2f9fd058be 100644 --- a/Sources/copilot/Types.swift +++ b/Sources/copilot/Types.swift @@ -14,7 +14,7 @@ public protocol APIProtocol: Sendable { /// List all Copilot seat assignments for an enterprise /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription. /// @@ -32,7 +32,7 @@ public protocol APIProtocol: Sendable { /// Get a summary of Copilot usage for enterprise members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances, @@ -52,7 +52,7 @@ public protocol APIProtocol: Sendable { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -75,7 +75,7 @@ public protocol APIProtocol: Sendable { /// Get Copilot seat information and settings for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets information about an organization's Copilot subscription, including seat breakdown /// and feature policies. To configure these settings, go to your organization's settings on GitHub.com. @@ -91,7 +91,7 @@ public protocol APIProtocol: Sendable { /// List all Copilot seat assignments for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription. /// Only organization owners can view assigned seats. @@ -104,7 +104,7 @@ public protocol APIProtocol: Sendable { /// Add teams to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -125,7 +125,7 @@ public protocol APIProtocol: Sendable { /// Remove teams from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for all members of each team specified. /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -144,7 +144,7 @@ public protocol APIProtocol: Sendable { /// Add users to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -165,7 +165,7 @@ public protocol APIProtocol: Sendable { /// Remove users from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for each user specified. /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -184,7 +184,7 @@ public protocol APIProtocol: Sendable { /// Get a summary of Copilot usage for organization members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -204,7 +204,7 @@ public protocol APIProtocol: Sendable { /// Get Copilot seat assignment details for a user /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot. /// @@ -218,7 +218,7 @@ public protocol APIProtocol: Sendable { /// Get a summary of Copilot usage for a team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -245,7 +245,7 @@ extension APIProtocol { /// List all Copilot seat assignments for an enterprise /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription. /// @@ -273,7 +273,7 @@ extension APIProtocol { /// Get a summary of Copilot usage for enterprise members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances, @@ -303,7 +303,7 @@ extension APIProtocol { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -336,7 +336,7 @@ extension APIProtocol { /// Get Copilot seat information and settings for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets information about an organization's Copilot subscription, including seat breakdown /// and feature policies. To configure these settings, go to your organization's settings on GitHub.com. @@ -360,7 +360,7 @@ extension APIProtocol { /// List all Copilot seat assignments for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription. /// Only organization owners can view assigned seats. @@ -383,7 +383,7 @@ extension APIProtocol { /// Add teams to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -414,7 +414,7 @@ extension APIProtocol { /// Remove teams from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for all members of each team specified. /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -443,7 +443,7 @@ extension APIProtocol { /// Add users to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -474,7 +474,7 @@ extension APIProtocol { /// Remove users from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for each user specified. /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -503,7 +503,7 @@ extension APIProtocol { /// Get a summary of Copilot usage for organization members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -533,7 +533,7 @@ extension APIProtocol { /// Get Copilot seat assignment details for a user /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot. /// @@ -555,7 +555,7 @@ extension APIProtocol { /// Get a summary of Copilot usage for a team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -647,6 +647,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -671,6 +673,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -692,7 +695,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -715,6 +719,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -738,6 +743,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -2062,7 +2068,7 @@ public enum Operations { /// List all Copilot seat assignments for an enterprise /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats across organizations or enterprise teams for an enterprise with a Copilot Business or Copilot Enterprise subscription. /// @@ -2368,7 +2374,7 @@ public enum Operations { /// Get a summary of Copilot usage for enterprise members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances, @@ -2646,7 +2652,7 @@ public enum Operations { /// Get a summary of Copilot usage for an enterprise team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -2936,7 +2942,7 @@ public enum Operations { /// Get Copilot seat information and settings for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets information about an organization's Copilot subscription, including seat breakdown /// and feature policies. To configure these settings, go to your organization's settings on GitHub.com. @@ -3196,7 +3202,7 @@ public enum Operations { /// List all Copilot seat assignments for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Lists all active Copilot seats for an organization with a Copilot Business or Copilot Enterprise subscription. /// Only organization owners can view assigned seats. @@ -3497,7 +3503,7 @@ public enum Operations { /// Add teams to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for all users within each specified team. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -3805,7 +3811,7 @@ public enum Operations { /// Remove teams from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for all members of each team specified. /// This will cause the members of the specified team(s) to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -4111,7 +4117,7 @@ public enum Operations { /// Add users to the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Purchases a GitHub Copilot seat for each user specified. /// The organization will be billed accordingly. For more information about Copilot pricing, see "[Pricing for GitHub Copilot](https://docs.github.com/billing/managing-billing-for-github-copilot/about-billing-for-github-copilot#about-billing-for-github-copilot)". @@ -4419,7 +4425,7 @@ public enum Operations { /// Remove users from the Copilot subscription for an organization /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Cancels the Copilot seat assignment for each user specified. /// This will cause the specified users to lose access to GitHub Copilot at the end of the current billing cycle, and the organization will not be billed further for those users. @@ -4725,7 +4731,7 @@ public enum Operations { /// Get a summary of Copilot usage for organization members /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. @@ -5003,7 +5009,7 @@ public enum Operations { /// Get Copilot seat assignment details for a user /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// Gets the GitHub Copilot seat assignment details for a member of an organization who currently has access to GitHub Copilot. /// @@ -5270,7 +5276,7 @@ public enum Operations { /// Get a summary of Copilot usage for a team /// /// > [!NOTE] - /// > This endpoint is in beta and is subject to change. + /// > This endpoint is in public preview and is subject to change. /// /// You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE /// for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. diff --git a/Sources/dependabot/Types.swift b/Sources/dependabot/Types.swift index 07269ad7f7a..26aece0dc31 100644 --- a/Sources/dependabot/Types.swift +++ b/Sources/dependabot/Types.swift @@ -674,6 +674,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -698,6 +700,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -719,7 +722,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -742,6 +746,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -765,6 +770,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -881,6 +887,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -905,6 +913,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -926,7 +935,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -949,6 +959,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -972,6 +983,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Scim Error @@ -2397,6 +2409,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -2405,18 +2439,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -2424,6 +2461,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -5852,7 +5890,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/direction`. public var direction: Components.Parameters.direction? - /// **Deprecated**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. + /// **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/dependabot/alerts/GET/query/page`. @available(*, deprecated) @@ -5893,7 +5931,7 @@ public enum Operations { /// - scope: The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. /// - sort: The property by which to sort the results. /// - direction: The direction to sort the results by. - /// - page: **Deprecated**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. + /// - page: **Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - before: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - after: A cursor, as given in the [Link header](https://docs.github.com/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." diff --git a/Sources/gists/Types.swift b/Sources/gists/Types.swift index 36b45b5f90b..b1c5539cb04 100644 --- a/Sources/gists/Types.swift +++ b/Sources/gists/Types.swift @@ -619,6 +619,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -643,6 +645,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -664,7 +667,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -687,6 +691,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -710,6 +715,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -795,6 +801,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -819,6 +827,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -840,7 +849,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -863,6 +873,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -886,6 +897,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -1226,6 +1238,8 @@ public enum Components { public var login: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/id`. public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/public-user/user_view_type`. + public var user_view_type: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/avatar_url`. @@ -1325,8 +1339,6 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/public-user/plan`. public var plan: Components.Schemas.public_hyphen_user.planPayload? - /// - Remark: Generated from `#/components/schemas/public-user/suspended_at`. - public var suspended_at: Foundation.Date? /// - Remark: Generated from `#/components/schemas/public-user/private_gists`. public var private_gists: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/total_private_repos`. @@ -1342,6 +1354,7 @@ public enum Components { /// - Parameters: /// - login: /// - id: + /// - user_view_type: /// - node_id: /// - avatar_url: /// - gravatar_id: @@ -1374,7 +1387,6 @@ public enum Components { /// - created_at: /// - updated_at: /// - plan: - /// - suspended_at: /// - private_gists: /// - total_private_repos: /// - owned_private_repos: @@ -1383,6 +1395,7 @@ public enum Components { public init( login: Swift.String, id: Swift.Int64, + user_view_type: Swift.String? = nil, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1415,7 +1428,6 @@ public enum Components { created_at: Foundation.Date, updated_at: Foundation.Date, plan: Components.Schemas.public_hyphen_user.planPayload? = nil, - suspended_at: Foundation.Date? = nil, private_gists: Swift.Int? = nil, total_private_repos: Swift.Int? = nil, owned_private_repos: Swift.Int? = nil, @@ -1424,6 +1436,7 @@ public enum Components { ) { self.login = login self.id = id + self.user_view_type = user_view_type self.node_id = node_id self.avatar_url = avatar_url self.gravatar_id = gravatar_id @@ -1456,7 +1469,6 @@ public enum Components { self.created_at = created_at self.updated_at = updated_at self.plan = plan - self.suspended_at = suspended_at self.private_gists = private_gists self.total_private_repos = total_private_repos self.owned_private_repos = owned_private_repos @@ -1466,6 +1478,7 @@ public enum Components { public enum CodingKeys: String, CodingKey { case login case id + case user_view_type case node_id case avatar_url case gravatar_id @@ -1498,7 +1511,6 @@ public enum Components { case created_at case updated_at case plan - case suspended_at case private_gists case total_private_repos case owned_private_repos @@ -1515,6 +1527,10 @@ public enum Components { Swift.Int64.self, forKey: .id ) + user_view_type = try container.decodeIfPresent( + Swift.String.self, + forKey: .user_view_type + ) node_id = try container.decode( Swift.String.self, forKey: .node_id @@ -1643,10 +1659,6 @@ public enum Components { Components.Schemas.public_hyphen_user.planPayload.self, forKey: .plan ) - suspended_at = try container.decodeIfPresent( - Foundation.Date.self, - forKey: .suspended_at - ) private_gists = try container.decodeIfPresent( Swift.Int.self, forKey: .private_gists @@ -1670,6 +1682,7 @@ public enum Components { try decoder.ensureNoAdditionalProperties(knownKeys: [ "login", "id", + "user_view_type", "node_id", "avatar_url", "gravatar_id", @@ -1702,7 +1715,6 @@ public enum Components { "created_at", "updated_at", "plan", - "suspended_at", "private_gists", "total_private_repos", "owned_private_repos", diff --git a/Sources/issues/Types.swift b/Sources/issues/Types.swift index ba237ec6911..e109cb7ae36 100644 --- a/Sources/issues/Types.swift +++ b/Sources/issues/Types.swift @@ -1251,6 +1251,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -1275,6 +1277,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1296,7 +1299,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1319,6 +1323,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1342,6 +1347,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1427,6 +1433,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1451,6 +1459,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1472,7 +1481,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1495,6 +1505,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1518,6 +1529,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. @@ -2220,7 +2232,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -2408,7 +2420,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -6974,11 +6986,11 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/path`. public var path: Swift.String - /// The line index in the diff to which the comment applies. This field is deprecated; use `line` instead. + /// The line index in the diff to which the comment applies. This field is closing down; use `line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/position`. public var position: Swift.Int? - /// The index of the original line in the diff to which the comment applies. This field is deprecated; use `original_line` instead. + /// The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_position`. public var original_position: Swift.Int? @@ -7154,8 +7166,8 @@ public enum Components { /// - node_id: The node ID of the pull request review comment. /// - diff_hunk: The diff of the line that the comment refers to. /// - path: The relative path of the file to which the comment applies. - /// - position: The line index in the diff to which the comment applies. This field is deprecated; use `line` instead. - /// - original_position: The index of the original line in the diff to which the comment applies. This field is deprecated; use `original_line` instead. + /// - position: The line index in the diff to which the comment applies. This field is closing down; use `line` instead. + /// - original_position: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// - commit_id: The SHA of the commit to which the comment applies. /// - original_commit_id: The SHA of the original commit to which the comment applies. /// - in_reply_to_id: The comment ID to reply to. @@ -9736,7 +9748,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/body`. public var body: Swift.String? - /// Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ + /// Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_ /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/POST/requestBody/json/assignee`. public var assignee: Swift.String? @@ -9866,7 +9878,7 @@ public enum Operations { /// - Parameters: /// - title: The title of the issue. /// - body: The contents of the issue. - /// - assignee: Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is deprecated.**_ + /// - assignee: Login for the user that this issue should be assigned to. _NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. **This field is closing down.**_ /// - milestone: /// - labels: Labels to associate with this issue. _NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise._ /// - assignees: Logins for Users to assign to this issue. _NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise._ @@ -11685,7 +11697,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/body`. public var body: Swift.String? - /// Username to assign to this issue. **This field is deprecated.** + /// Username to assign to this issue. **This field is closing down.** /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/issues/{issue_number}/PATCH/requestBody/json/assignee`. public var assignee: Swift.String? @@ -11838,7 +11850,7 @@ public enum Operations { /// - Parameters: /// - title: The title of the issue. /// - body: The contents of the issue. - /// - assignee: Username to assign to this issue. **This field is deprecated.** + /// - assignee: Username to assign to this issue. **This field is closing down.** /// - state: The open or closed state of the issue. /// - state_reason: The reason for the state change. Ignored unless `state` is changed. /// - milestone: diff --git a/Sources/migrations/Client.swift b/Sources/migrations/Client.swift index f0366d78270..6b752e13353 100644 --- a/Sources/migrations/Client.swift +++ b/Sources/migrations/Client.swift @@ -667,7 +667,7 @@ public struct Client: APIProtocol { /// View the progress of an import. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// **Import status** /// @@ -818,7 +818,7 @@ public struct Client: APIProtocol { /// You can select the project to import by providing one of the objects in the `project_choices` array in the update request. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @@ -922,7 +922,7 @@ public struct Client: APIProtocol { /// return a status `422 Unprocessable Entity` response. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @@ -1074,7 +1074,7 @@ public struct Client: APIProtocol { /// Stop an import for a repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @@ -1147,7 +1147,7 @@ public struct Client: APIProtocol { /// This endpoint and the [Map a commit author](https://docs.github.com/rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @@ -1268,7 +1268,7 @@ public struct Client: APIProtocol { /// new commits to the repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @@ -1415,7 +1415,7 @@ public struct Client: APIProtocol { /// List files larger than 100MB found during the import /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @@ -1510,7 +1510,7 @@ public struct Client: APIProtocol { /// site](https://docs.github.com/repositories/working-with-files/managing-large-files). /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. diff --git a/Sources/migrations/Types.swift b/Sources/migrations/Types.swift index 186e2d975f7..2ab6b3f543c 100644 --- a/Sources/migrations/Types.swift +++ b/Sources/migrations/Types.swift @@ -74,7 +74,7 @@ public protocol APIProtocol: Sendable { /// View the progress of an import. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// **Import status** /// @@ -123,7 +123,7 @@ public protocol APIProtocol: Sendable { /// You can select the project to import by providing one of the objects in the `project_choices` array in the update request. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @@ -136,7 +136,7 @@ public protocol APIProtocol: Sendable { /// return a status `422 Unprocessable Entity` response. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @@ -147,7 +147,7 @@ public protocol APIProtocol: Sendable { /// Stop an import for a repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @@ -160,7 +160,7 @@ public protocol APIProtocol: Sendable { /// This endpoint and the [Map a commit author](https://docs.github.com/rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @@ -172,7 +172,7 @@ public protocol APIProtocol: Sendable { /// new commits to the repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @@ -183,7 +183,7 @@ public protocol APIProtocol: Sendable { /// List files larger than 100MB found during the import /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @@ -198,7 +198,7 @@ public protocol APIProtocol: Sendable { /// site](https://docs.github.com/repositories/working-with-files/managing-large-files). /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. @@ -411,7 +411,7 @@ extension APIProtocol { /// View the progress of an import. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// **Import status** /// @@ -468,7 +468,7 @@ extension APIProtocol { /// You can select the project to import by providing one of the objects in the `project_choices` array in the update request. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @@ -491,7 +491,7 @@ extension APIProtocol { /// return a status `422 Unprocessable Entity` response. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @@ -512,7 +512,7 @@ extension APIProtocol { /// Stop an import for a repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @@ -533,7 +533,7 @@ extension APIProtocol { /// This endpoint and the [Map a commit author](https://docs.github.com/rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @@ -555,7 +555,7 @@ extension APIProtocol { /// new commits to the repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @@ -576,7 +576,7 @@ extension APIProtocol { /// List files larger than 100MB found during the import /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @@ -599,7 +599,7 @@ extension APIProtocol { /// site](https://docs.github.com/repositories/working-with-files/managing-large-files). /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. @@ -813,6 +813,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -837,6 +839,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -858,7 +861,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -881,6 +885,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -904,6 +909,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -989,6 +995,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1013,6 +1021,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1034,7 +1043,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1057,6 +1067,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1080,6 +1091,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -1504,7 +1516,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -1692,7 +1704,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -2159,6 +2171,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -2167,18 +2201,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -2186,6 +2223,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -4736,7 +4774,7 @@ public enum Operations { /// View the progress of an import. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// **Import status** /// @@ -4964,7 +5002,7 @@ public enum Operations { /// You can select the project to import by providing one of the objects in the `project_choices` array in the update request. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/patch(migrations/update-import)`. @@ -5194,7 +5232,7 @@ public enum Operations { /// return a status `422 Unprocessable Entity` response. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PUT /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/put(migrations/start-import)`. @@ -5495,7 +5533,7 @@ public enum Operations { /// Stop an import for a repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `DELETE /repos/{owner}/{repo}/import`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/delete(migrations/cancel-import)`. @@ -5640,7 +5678,7 @@ public enum Operations { /// This endpoint and the [Map a commit author](https://docs.github.com/rest/migrations/source-imports#map-a-commit-author) endpoint allow you to provide correct Git author information. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/authors`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/get(migrations/get-commit-authors)`. @@ -5849,7 +5887,7 @@ public enum Operations { /// new commits to the repository. /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/authors/{author_id}`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/authors/{author_id}/patch(migrations/map-commit-author)`. @@ -6118,7 +6156,7 @@ public enum Operations { /// List files larger than 100MB found during the import /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `GET /repos/{owner}/{repo}/import/large_files`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/large_files/get(migrations/get-large-files)`. @@ -6289,7 +6327,7 @@ public enum Operations { /// site](https://docs.github.com/repositories/working-with-files/managing-large-files). /// /// > [!WARNING] - /// > **Deprecation notice:** Due to very low levels of usage and available alternatives, this endpoint is deprecated and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). + /// > **Endpoint closing down notice:** Due to very low levels of usage and available alternatives, this endpoint is closing down and will no longer be available from 00:00 UTC on April 12, 2024. For more details and alternatives, see the [changelog](https://gh.io/source-imports-api-deprecation). /// /// - Remark: HTTP `PATCH /repos/{owner}/{repo}/import/lfs`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/import/lfs/patch(migrations/set-lfs-preference)`. diff --git a/Sources/orgs/Client.swift b/Sources/orgs/Client.swift index ccf10410ff9..3c6b205c57f 100644 --- a/Sources/orgs/Client.swift +++ b/Sources/orgs/Client.swift @@ -224,10 +224,10 @@ public struct Client: APIProtocol { /// Update an organization /// /// > [!WARNING] - /// > **Parameter deprecation notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + /// > **Closing down notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). /// /// > [!WARNING] - /// > **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). + /// > **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). /// /// Updates the organization's profile and member privileges. /// @@ -6729,7 +6729,7 @@ public struct Client: APIProtocol { /// Enable or disable a security feature for an organization /// /// > [!WARNING] - /// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). + /// > **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). /// /// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// diff --git a/Sources/orgs/Types.swift b/Sources/orgs/Types.swift index 0a8b499493a..aaf3c3ffe68 100644 --- a/Sources/orgs/Types.swift +++ b/Sources/orgs/Types.swift @@ -39,10 +39,10 @@ public protocol APIProtocol: Sendable { /// Update an organization /// /// > [!WARNING] - /// > **Parameter deprecation notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + /// > **Closing down notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). /// /// > [!WARNING] - /// > **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). + /// > **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). /// /// Updates the organization's profile and member privileges. /// @@ -694,7 +694,7 @@ public protocol APIProtocol: Sendable { /// Enable or disable a security feature for an organization /// /// > [!WARNING] - /// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). + /// > **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). /// /// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// @@ -793,10 +793,10 @@ extension APIProtocol { /// Update an organization /// /// > [!WARNING] - /// > **Parameter deprecation notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + /// > **Closing down notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). /// /// > [!WARNING] - /// > **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). + /// > **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). /// /// Updates the organization's profile and member privileges. /// @@ -1960,7 +1960,7 @@ extension APIProtocol { /// Enable or disable a security feature for an organization /// /// > [!WARNING] - /// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). + /// > **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). /// /// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// @@ -2125,6 +2125,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -2149,6 +2151,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -2170,7 +2173,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -2193,6 +2197,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -2216,6 +2221,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -2332,6 +2338,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -2356,6 +2364,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -2377,7 +2386,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -2400,6 +2410,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -2423,6 +2434,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// The URL to which the payloads will be delivered. @@ -3433,13 +3445,13 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_custom_properties`. public var organization_custom_properties: Components.Schemas.app_hyphen_permissions.organization_custom_propertiesPayload? - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. @frozen public enum organization_copilot_seat_managementPayload: String, Codable, Hashable, Sendable { case write = "write" } - /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_copilot_seat_management`. public var organization_copilot_seat_management: Components.Schemas.app_hyphen_permissions.organization_copilot_seat_managementPayload? @@ -3507,7 +3519,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_plan`. public var organization_plan: Components.Schemas.app_hyphen_permissions.organization_planPayload? - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. @frozen public enum organization_projectsPayload: String, Codable, Hashable, Sendable { @@ -3515,7 +3527,7 @@ public enum Components { case write = "write" case admin = "admin" } - /// The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// /// - Remark: Generated from `#/components/schemas/app-permissions/organization_projects`. public var organization_projects: Components.Schemas.app_hyphen_permissions.organization_projectsPayload? @@ -3681,14 +3693,14 @@ public enum Components { /// - organization_custom_roles: The level of permission to grant the access token for custom repository roles management. /// - organization_custom_org_roles: The level of permission to grant the access token for custom organization roles management. /// - organization_custom_properties: The level of permission to grant the access token for custom property management. - /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in beta and is subject to change. + /// - organization_copilot_seat_management: The level of permission to grant the access token for managing access to GitHub Copilot for members of an organization with a Copilot Business subscription. This property is in public preview and is subject to change. /// - organization_announcement_banners: The level of permission to grant the access token to view and manage announcement banners for an organization. /// - organization_events: The level of permission to grant the access token to view events triggered by an activity in an organization. /// - organization_hooks: The level of permission to grant the access token to manage the post-receive hooks for an organization. /// - organization_personal_access_tokens: The level of permission to grant the access token for viewing and managing fine-grained personal access token requests to an organization. /// - organization_personal_access_token_requests: The level of permission to grant the access token for viewing and managing fine-grained personal access tokens that have been approved by an organization. /// - organization_plan: The level of permission to grant the access token for viewing an organization's plan. - /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects beta (where available). + /// - organization_projects: The level of permission to grant the access token to manage organization projects and projects public preview (where available). /// - organization_packages: The level of permission to grant the access token for organization packages published to GitHub Packages. /// - organization_secrets: The level of permission to grant the access token to manage organization secrets. /// - organization_self_hosted_runners: The level of permission to grant the access token to view and manage GitHub Actions self-hosted runners available to an organization. @@ -4450,6 +4462,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -4458,18 +4492,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -4477,6 +4514,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -5318,7 +5356,7 @@ public enum Components { public var members_can_fork_private_repositories: Swift.Bool? /// - Remark: Generated from `#/components/schemas/organization-full/web_commit_signoff_required`. public var web_commit_signoff_required: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether GitHub Advanced Security is enabled for new repositories and repositories transferred to this organization. /// @@ -5327,7 +5365,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/advanced_security_enabled_for_new_repositories`. @available(*, deprecated) public var advanced_security_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization. /// @@ -5336,7 +5374,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/dependabot_alerts_enabled_for_new_repositories`. @available(*, deprecated) public var dependabot_alerts_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization. /// @@ -5345,7 +5383,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/dependabot_security_updates_enabled_for_new_repositories`. @available(*, deprecated) public var dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -5354,7 +5392,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/dependency_graph_enabled_for_new_repositories`. @available(*, deprecated) public var dependency_graph_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -5363,7 +5401,7 @@ public enum Components { /// - Remark: Generated from `#/components/schemas/organization-full/secret_scanning_enabled_for_new_repositories`. @available(*, deprecated) public var secret_scanning_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -5434,12 +5472,12 @@ public enum Components { /// - members_can_create_private_pages: /// - members_can_fork_private_repositories: /// - web_commit_signoff_required: - /// - advanced_security_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_alerts_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_security_updates_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependency_graph_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - advanced_security_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabot_alerts_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabot_security_updates_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependency_graph_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secret_scanning_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secret_scanning_push_protection_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// - secret_scanning_push_protection_custom_link_enabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. /// - secret_scanning_push_protection_custom_link: An optional URL string to display to contributors who are blocked from pushing a secret. /// - created_at: @@ -6265,6 +6303,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/user-role-assignment/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/user-role-assignment/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `user_hyphen_role_hyphen_assignment`. /// /// - Parameters: @@ -6289,6 +6329,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -6310,7 +6351,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -6333,6 +6375,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -6356,6 +6399,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Minimal representation of an organization programmatic access grant request for enumerations @@ -7693,10 +7737,10 @@ public enum Operations { /// Update an organization /// /// > [!WARNING] - /// > **Parameter deprecation notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). + /// > **Closing down notice:** GitHub will replace and discontinue `members_allowed_repository_creation_type` in favor of more granular permissions. The new input parameters are `members_can_create_public_repositories`, `members_can_create_private_repositories` for all organizations and `members_can_create_internal_repositories` for organizations associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. For more information, see the [blog post](https://developer.github.com/changes/2019-12-03-internal-visibility-changes). /// /// > [!WARNING] - /// > **Parameter deprecation notice:** Code security product enablement for new repositories through the organization API is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). + /// > **Closing down notice:** Code security product enablement for new repositories through the organization API is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations#set-a-code-security-configuration-as-a-default-for-an-organization) to set defaults instead. For more information on setting a default security configuration, see the [changelog](https://github.blog/changelog/2024-07-09-sunsetting-security-settings-defaults-parameters-in-the-organizations-rest-api/). /// /// Updates the organization's profile and member privileges. /// @@ -7806,7 +7850,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_can_create_public_repositories`. public var members_can_create_public_repositories: Swift.Bool? /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. - /// **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. + /// **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_allowed_repository_creation_type`. @frozen public enum members_allowed_repository_creation_typePayload: String, Codable, Hashable, Sendable { @@ -7815,7 +7859,7 @@ public enum Operations { case none = "none" } /// Specifies which types of repositories non-admin organization members can create. `private` is only available to repositories that are part of an organization on GitHub Enterprise Cloud. - /// **Note:** This parameter is deprecated and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. + /// **Note:** This parameter is closing down and will be removed in the future. Its return value ignores internal repositories. Using this parameter overrides values set in `members_can_create_repositories`. See the parameter deprecation notice in the operation description for details. /// /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/members_allowed_repository_creation_type`. public var members_allowed_repository_creation_type: Operations.orgs_sol_update.Input.Body.jsonPayload.members_allowed_repository_creation_typePayload? @@ -7841,7 +7885,7 @@ public enum Operations { public var web_commit_signoff_required: Swift.Bool? /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/blog`. public var blog: Swift.String? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether GitHub Advanced Security is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7852,7 +7896,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/advanced_security_enabled_for_new_repositories`. @available(*, deprecated) public var advanced_security_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot alerts are automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7863,7 +7907,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependabot_alerts_enabled_for_new_repositories`. @available(*, deprecated) public var dependabot_alerts_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether Dependabot security updates are automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7874,7 +7918,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependabot_security_updates_enabled_for_new_repositories`. @available(*, deprecated) public var dependabot_security_updates_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether dependency graph is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7885,7 +7929,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/dependency_graph_enabled_for_new_repositories`. @available(*, deprecated) public var dependency_graph_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7896,7 +7940,7 @@ public enum Operations { /// - Remark: Generated from `#/paths/orgs/{org}/PATCH/requestBody/json/secret_scanning_enabled_for_new_repositories`. @available(*, deprecated) public var secret_scanning_enabled_for_new_repositories: Swift.Bool? - /// **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// /// Whether secret scanning push protection is automatically enabled for new repositories and repositories transferred to this organization. /// @@ -7939,12 +7983,12 @@ public enum Operations { /// - members_can_fork_private_repositories: Whether organization members can fork private organization repositories. /// - web_commit_signoff_required: Whether contributors to organization repositories are required to sign off on commits they make through GitHub's web interface. /// - blog: - /// - advanced_security_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_alerts_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependabot_security_updates_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - dependency_graph_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. - /// - secret_scanning_push_protection_enabled_for_new_repositories: **Deprecated.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - advanced_security_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabot_alerts_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependabot_security_updates_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - dependency_graph_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secret_scanning_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. + /// - secret_scanning_push_protection_enabled_for_new_repositories: **Endpoint closing down notice.** Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. /// - secret_scanning_push_protection_custom_link_enabled: Whether a custom link is shown to contributors who are blocked from pushing a secret by push protection. /// - secret_scanning_push_protection_custom_link: If `secret_scanning_push_protection_custom_link_enabled` is true, the URL that will be displayed to contributors who are blocked from pushing a secret. public init( @@ -20372,7 +20416,7 @@ public enum Operations { /// Enable or disable a security feature for an organization /// /// > [!WARNING] - /// > **Deprecation notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is deprecated. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). + /// > **Closing down notice:** The ability to enable or disable a security feature for all eligible repositories in an organization is closing down. Please use [code security configurations](https://docs.github.com/rest/code-security/configurations) instead. For more information, see the [changelog](https://github.blog/changelog/2024-07-22-deprecation-of-api-endpoint-to-enable-or-disable-a-security-feature-for-an-organization/). /// /// Enables or disables the specified security feature for all eligible repositories in an organization. For more information, see "[Managing security managers in your organization](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/managing-security-managers-in-your-organization)." /// diff --git a/Sources/packages/Types.swift b/Sources/packages/Types.swift index 097e4b06541..fd5d57efb80 100644 --- a/Sources/packages/Types.swift +++ b/Sources/packages/Types.swift @@ -871,6 +871,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -895,6 +897,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -916,7 +919,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -939,6 +943,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -962,6 +967,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1047,6 +1053,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1071,6 +1079,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1092,7 +1101,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1115,6 +1125,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1138,6 +1149,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Code Of Conduct @@ -1303,6 +1315,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -1311,18 +1345,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -1330,6 +1367,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository diff --git a/Sources/private-registries/Client.swift b/Sources/private-registries/Client.swift new file mode 100644 index 00000000000..87202523ac7 --- /dev/null +++ b/Sources/private-registries/Client.swift @@ -0,0 +1,41 @@ +// Generated by swift-openapi-generator, do not modify. +@_spi(Generated) import OpenAPIRuntime +#if os(Linux) +@preconcurrency import struct Foundation.URL +@preconcurrency import struct Foundation.Data +@preconcurrency import struct Foundation.Date +#else +import struct Foundation.URL +import struct Foundation.Data +import struct Foundation.Date +#endif +import HTTPTypes +/// GitHub's v3 REST API. +public struct Client: APIProtocol { + /// The underlying HTTP client. + private let client: UniversalClient + /// Creates a new client. + /// - Parameters: + /// - serverURL: The server URL that the client connects to. Any server + /// URLs defined in the OpenAPI document are available as static methods + /// on the ``Servers`` type. + /// - configuration: A set of configuration values for the client. + /// - transport: A transport that performs HTTP operations. + /// - middlewares: A list of middlewares to call before the transport. + public init( + serverURL: Foundation.URL, + configuration: Configuration = .init(), + transport: any ClientTransport, + middlewares: [any ClientMiddleware] = [] + ) { + self.client = .init( + serverURL: serverURL, + configuration: configuration, + transport: transport, + middlewares: middlewares + ) + } + private var converter: Converter { + client.converter + } +} diff --git a/Sources/private-registries/Types.swift b/Sources/private-registries/Types.swift new file mode 100644 index 00000000000..2a210decbff --- /dev/null +++ b/Sources/private-registries/Types.swift @@ -0,0 +1,44 @@ +// Generated by swift-openapi-generator, do not modify. +@_spi(Generated) import OpenAPIRuntime +#if os(Linux) +@preconcurrency import struct Foundation.URL +@preconcurrency import struct Foundation.Data +@preconcurrency import struct Foundation.Date +#else +import struct Foundation.URL +import struct Foundation.Data +import struct Foundation.Date +#endif +/// A type that performs HTTP operations defined by the OpenAPI document. +public protocol APIProtocol: Sendable {} + +/// Convenience overloads for operation inputs. +extension APIProtocol { +} + +/// Server URLs defined in the OpenAPI document. +public enum Servers { + public static func server1() throws -> Foundation.URL { + try Foundation.URL( + validatingOpenAPIServerURL: "https://api.github.com", + variables: [] + ) + } +} + +/// Types generated from the components section of the OpenAPI document. +public enum Components { + /// Types generated from the `#/components/schemas` section of the OpenAPI document. + public enum Schemas {} + /// Types generated from the `#/components/parameters` section of the OpenAPI document. + public enum Parameters {} + /// Types generated from the `#/components/requestBodies` section of the OpenAPI document. + public enum RequestBodies {} + /// Types generated from the `#/components/responses` section of the OpenAPI document. + public enum Responses {} + /// Types generated from the `#/components/headers` section of the OpenAPI document. + public enum Headers {} +} + +/// API operations, with input and output types, generated from `#/paths` in the OpenAPI document. +public enum Operations {} diff --git a/Sources/projects/Types.swift b/Sources/projects/Types.swift index 1cb1cfdeb73..aa7bc1787d7 100644 --- a/Sources/projects/Types.swift +++ b/Sources/projects/Types.swift @@ -659,6 +659,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -683,6 +685,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -704,7 +707,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -727,6 +731,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -750,6 +755,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -866,6 +872,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -890,6 +898,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -911,7 +920,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -934,6 +944,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -957,6 +968,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error diff --git a/Sources/pulls/Client.swift b/Sources/pulls/Client.swift index 3849b3f6274..a591521912a 100644 --- a/Sources/pulls/Client.swift +++ b/Sources/pulls/Client.swift @@ -1126,7 +1126,7 @@ public struct Client: APIProtocol { /// /// If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request. /// - /// The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. + /// The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. /// /// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" /// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." diff --git a/Sources/pulls/Types.swift b/Sources/pulls/Types.swift index 1b4851a6dd9..bd928709691 100644 --- a/Sources/pulls/Types.swift +++ b/Sources/pulls/Types.swift @@ -165,7 +165,7 @@ public protocol APIProtocol: Sendable { /// /// If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request. /// - /// The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. + /// The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. /// /// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" /// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." @@ -641,7 +641,7 @@ extension APIProtocol { /// /// If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request. /// - /// The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. + /// The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. /// /// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" /// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." @@ -1103,6 +1103,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -1127,6 +1129,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1148,7 +1151,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1171,6 +1175,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1194,6 +1199,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1310,6 +1316,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1334,6 +1342,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1355,7 +1364,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1378,6 +1388,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1401,6 +1412,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -1825,7 +1837,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -2013,7 +2025,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -3848,11 +3860,11 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/path`. public var path: Swift.String - /// The line index in the diff to which the comment applies. This field is deprecated; use `line` instead. + /// The line index in the diff to which the comment applies. This field is closing down; use `line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/position`. public var position: Swift.Int? - /// The index of the original line in the diff to which the comment applies. This field is deprecated; use `original_line` instead. + /// The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// /// - Remark: Generated from `#/components/schemas/pull-request-review-comment/original_position`. public var original_position: Swift.Int? @@ -4028,8 +4040,8 @@ public enum Components { /// - node_id: The node ID of the pull request review comment. /// - diff_hunk: The diff of the line that the comment refers to. /// - path: The relative path of the file to which the comment applies. - /// - position: The line index in the diff to which the comment applies. This field is deprecated; use `line` instead. - /// - original_position: The index of the original line in the diff to which the comment applies. This field is deprecated; use `original_line` instead. + /// - position: The line index in the diff to which the comment applies. This field is closing down; use `line` instead. + /// - original_position: The index of the original line in the diff to which the comment applies. This field is closing down; use `original_line` instead. /// - commit_id: The SHA of the commit to which the comment applies. /// - original_commit_id: The SHA of the original commit to which the comment applies. /// - in_reply_to_id: The comment ID to reply to. @@ -4390,6 +4402,8 @@ public enum Components { public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/owner/url`. public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/owner/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `ownerPayload`. /// /// - Parameters: @@ -4411,6 +4425,7 @@ public enum Components { /// - subscriptions_url: /// - _type: /// - url: + /// - user_view_type: public init( avatar_url: Swift.String, events_url: Swift.String, @@ -4429,7 +4444,8 @@ public enum Components { starred_url: Swift.String, subscriptions_url: Swift.String, _type: Swift.String, - url: Swift.String + url: Swift.String, + user_view_type: Swift.String? = nil ) { self.avatar_url = avatar_url self.events_url = events_url @@ -4449,6 +4465,7 @@ public enum Components { self.subscriptions_url = subscriptions_url self._type = _type self.url = url + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case avatar_url @@ -4469,6 +4486,7 @@ public enum Components { case subscriptions_url case _type = "type" case url + case user_view_type } } /// - Remark: Generated from `#/components/schemas/pull-request/head/repo/owner`. @@ -5048,6 +5066,8 @@ public enum Components { public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/head/user/url`. public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request/head/user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `userPayload`. /// /// - Parameters: @@ -5069,6 +5089,7 @@ public enum Components { /// - subscriptions_url: /// - _type: /// - url: + /// - user_view_type: public init( avatar_url: Swift.String, events_url: Swift.String, @@ -5087,7 +5108,8 @@ public enum Components { starred_url: Swift.String, subscriptions_url: Swift.String, _type: Swift.String, - url: Swift.String + url: Swift.String, + user_view_type: Swift.String? = nil ) { self.avatar_url = avatar_url self.events_url = events_url @@ -5107,6 +5129,7 @@ public enum Components { self.subscriptions_url = subscriptions_url self._type = _type self.url = url + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case avatar_url @@ -5127,6 +5150,7 @@ public enum Components { case subscriptions_url case _type = "type" case url + case user_view_type } } /// - Remark: Generated from `#/components/schemas/pull-request/head/user`. @@ -5278,6 +5302,8 @@ public enum Components { public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/repo/owner/url`. public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request/base/repo/owner/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `ownerPayload`. /// /// - Parameters: @@ -5299,6 +5325,7 @@ public enum Components { /// - subscriptions_url: /// - _type: /// - url: + /// - user_view_type: public init( avatar_url: Swift.String, events_url: Swift.String, @@ -5317,7 +5344,8 @@ public enum Components { starred_url: Swift.String, subscriptions_url: Swift.String, _type: Swift.String, - url: Swift.String + url: Swift.String, + user_view_type: Swift.String? = nil ) { self.avatar_url = avatar_url self.events_url = events_url @@ -5337,6 +5365,7 @@ public enum Components { self.subscriptions_url = subscriptions_url self._type = _type self.url = url + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case avatar_url @@ -5357,6 +5386,7 @@ public enum Components { case subscriptions_url case _type = "type" case url + case user_view_type } } /// - Remark: Generated from `#/components/schemas/pull-request/base/repo/owner`. @@ -5893,6 +5923,8 @@ public enum Components { public var _type: Swift.String /// - Remark: Generated from `#/components/schemas/pull-request/base/user/url`. public var url: Swift.String + /// - Remark: Generated from `#/components/schemas/pull-request/base/user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `userPayload`. /// /// - Parameters: @@ -5914,6 +5946,7 @@ public enum Components { /// - subscriptions_url: /// - _type: /// - url: + /// - user_view_type: public init( avatar_url: Swift.String, events_url: Swift.String, @@ -5932,7 +5965,8 @@ public enum Components { starred_url: Swift.String, subscriptions_url: Swift.String, _type: Swift.String, - url: Swift.String + url: Swift.String, + user_view_type: Swift.String? = nil ) { self.avatar_url = avatar_url self.events_url = events_url @@ -5952,6 +5986,7 @@ public enum Components { self.subscriptions_url = subscriptions_url self._type = _type self.url = url + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case avatar_url @@ -5972,6 +6007,7 @@ public enum Components { case subscriptions_url case _type = "type" case url + case user_view_type } } /// - Remark: Generated from `#/components/schemas/pull-request/base/user`. @@ -9156,7 +9192,7 @@ public enum Operations { /// /// If your comment applies to more than one line in the pull request diff, you should use the parameters `line`, `side`, and optionally `start_line` and `start_side` in your request. /// - /// The `position` parameter is deprecated. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. + /// The `position` parameter is closing down. If you use `position`, the `line`, `side`, `start_line`, and `start_side` parameters are not required. /// /// This endpoint triggers [notifications](https://docs.github.com/github/managing-subscriptions-and-notifications-on-github/about-notifications). Creating content too quickly using this endpoint may result in secondary rate limiting. For more information, see "[Rate limits for the API](https://docs.github.com/rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" /// and "[Best practices for using the REST API](https://docs.github.com/rest/guides/best-practices-for-using-the-rest-api)." @@ -9232,7 +9268,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/path`. public var path: Swift.String - /// **This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + /// **This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/pulls/{pull_number}/comments/POST/requestBody/json/position`. @available(*, deprecated) @@ -9289,7 +9325,7 @@ public enum Operations { /// - body: The text of the review comment. /// - commit_id: The SHA of the commit needing a comment. Not using the latest commit SHA may render your comment outdated if a subsequent commit modifies the line you specify as the `position`. /// - path: The relative path to the file that necessitates a comment. - /// - position: **This parameter is deprecated. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. + /// - position: **This parameter is closing down. Use `line` instead**. The position in the diff where you want to add a review comment. Note this value is not the same as the line number in the file. The position value equals the number of lines down from the first "@@" hunk header in the file you want to add a comment. The line just below the "@@" line is position 1, the next line is position 2, and so on. The position in the diff continues to increase through lines of whitespace and additional hunks until the beginning of a new file. /// - side: In a split diff view, the side of the diff that the pull request's changes appear on. Can be `LEFT` or `RIGHT`. Use `LEFT` for deletions that appear in red. Use `RIGHT` for additions that appear in green or unchanged lines that appear in white and are shown for context. For a multi-line comment, side represents whether the last line of the comment range is a deletion or addition. For more information, see "[Diff view options](https://docs.github.com/articles/about-comparing-branches-in-pull-requests#diff-view-options)" in the GitHub Help documentation. /// - line: **Required unless using `subject_type:file`**. The line of the blob in the pull request diff that the comment applies to. For a multi-line comment, the last line of the range that your comment applies to. /// - start_line: **Required when using multi-line comments unless using `in_reply_to`**. The `start_line` is the first line in the pull request diff that your multi-line comment applies to. To learn more about multi-line comments, see "[Commenting on a pull request](https://docs.github.com/articles/commenting-on-a-pull-request#adding-line-comments-to-a-pull-request)" in the GitHub Help documentation. diff --git a/Sources/rate-limit/Client.swift b/Sources/rate-limit/Client.swift index 5cfda7888c1..318dec3f412 100644 --- a/Sources/rate-limit/Client.swift +++ b/Sources/rate-limit/Client.swift @@ -55,7 +55,7 @@ public struct Client: APIProtocol { /// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)." /// /// > [!NOTE] - /// > The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. diff --git a/Sources/rate-limit/Types.swift b/Sources/rate-limit/Types.swift index dc38c7028d0..1d24c69e143 100644 --- a/Sources/rate-limit/Types.swift +++ b/Sources/rate-limit/Types.swift @@ -28,7 +28,7 @@ public protocol APIProtocol: Sendable { /// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)." /// /// > [!NOTE] - /// > The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. @@ -54,7 +54,7 @@ extension APIProtocol { /// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)." /// /// > [!NOTE] - /// > The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. @@ -315,7 +315,7 @@ public enum Operations { /// * The `source_import` object is no longer in use for any API endpoints, and it will be removed in the next API version. For more information about API versions, see "[API Versions](https://docs.github.com/rest/about-the-rest-api/api-versions)." /// /// > [!NOTE] - /// > The `rate` object is deprecated. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. + /// > The `rate` object is closing down. If you're writing new API client code or updating existing code, you should use the `core` object instead of the `rate` object. The `core` object contains the same information that is present in the `rate` object. /// /// - Remark: HTTP `GET /rate_limit`. /// - Remark: Generated from `#/paths//rate_limit/get(rate-limit/get)`. diff --git a/Sources/reactions/Client.swift b/Sources/reactions/Client.swift index 21656304d0d..2c8e1bbc585 100644 --- a/Sources/reactions/Client.swift +++ b/Sources/reactions/Client.swift @@ -1980,7 +1980,7 @@ public struct Client: APIProtocol { /// List reactions for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. /// /// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -2081,7 +2081,7 @@ public struct Client: APIProtocol { /// Create reaction for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. /// /// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -2164,7 +2164,7 @@ public struct Client: APIProtocol { /// List reactions for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. /// /// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -2264,7 +2264,7 @@ public struct Client: APIProtocol { /// Create reaction for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. /// /// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// diff --git a/Sources/reactions/Types.swift b/Sources/reactions/Types.swift index 0a4bf435183..358b85e7ee5 100644 --- a/Sources/reactions/Types.swift +++ b/Sources/reactions/Types.swift @@ -210,7 +210,7 @@ public protocol APIProtocol: Sendable { /// List reactions for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. /// /// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -223,7 +223,7 @@ public protocol APIProtocol: Sendable { /// Create reaction for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. /// /// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -238,7 +238,7 @@ public protocol APIProtocol: Sendable { /// List reactions for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. /// /// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -251,7 +251,7 @@ public protocol APIProtocol: Sendable { /// Create reaction for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. /// /// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -620,7 +620,7 @@ extension APIProtocol { /// List reactions for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. /// /// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -643,7 +643,7 @@ extension APIProtocol { /// Create reaction for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. /// /// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -668,7 +668,7 @@ extension APIProtocol { /// List reactions for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. /// /// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -691,7 +691,7 @@ extension APIProtocol { /// Create reaction for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. /// /// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -812,6 +812,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -836,6 +838,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -857,7 +860,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -880,6 +884,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -903,6 +908,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -5337,7 +5343,7 @@ public enum Operations { /// List reactions for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion comment`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion-comment) endpoint. /// /// List the reactions to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -5554,7 +5560,7 @@ public enum Operations { /// Create reaction for a team discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Create reaction for a team discussion comment](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion-comment)" endpoint. /// /// Create a reaction to a [team discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment). /// @@ -5748,7 +5754,7 @@ public enum Operations { /// List reactions for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List reactions for a team discussion`](https://docs.github.com/rest/reactions/reactions#list-reactions-for-a-team-discussion) endpoint. /// /// List the reactions to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// @@ -5958,7 +5964,7 @@ public enum Operations { /// Create reaction for a team discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create reaction for a team discussion`](https://docs.github.com/rest/reactions/reactions#create-reaction-for-a-team-discussion) endpoint. /// /// Create a reaction to a [team discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion). /// diff --git a/Sources/repos/Client.swift b/Sources/repos/Client.swift index 778cbd9dda3..c5e569e6e21 100644 --- a/Sources/repos/Client.swift +++ b/Sources/repos/Client.swift @@ -17570,10 +17570,10 @@ public struct Client: APIProtocol { } ) } - /// Deprecated - List tag protection states for a repository + /// Closing down - List tag protection states for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. /// /// This returns the tag protection states of a repository. /// @@ -17685,10 +17685,10 @@ public struct Client: APIProtocol { } ) } - /// Deprecated - Create a tag protection state for a repository + /// Closing down - Create a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. /// /// This creates a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -17808,10 +17808,10 @@ public struct Client: APIProtocol { } ) } - /// Deprecated - Delete a tag protection state for a repository + /// Closing down - Delete a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. /// /// This deletes a tag protection state for a repository. /// This endpoint is only available to repository administrators. diff --git a/Sources/repos/Types.swift b/Sources/repos/Types.swift index 32d32fa51e6..ec0d084fe0f 100644 --- a/Sources/repos/Types.swift +++ b/Sources/repos/Types.swift @@ -1869,10 +1869,10 @@ public protocol APIProtocol: Sendable { /// - Remark: HTTP `GET /repos/{owner}/{repo}/tags`. /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/get(repos/list-tags)`. func repos_sol_list_hyphen_tags(_ input: Operations.repos_sol_list_hyphen_tags.Input) async throws -> Operations.repos_sol_list_hyphen_tags.Output - /// Deprecated - List tag protection states for a repository + /// Closing down - List tag protection states for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. /// /// This returns the tag protection states of a repository. /// @@ -1882,10 +1882,10 @@ public protocol APIProtocol: Sendable { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/get(repos/list-tag-protection)`. @available(*, deprecated) func repos_sol_list_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_list_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_list_hyphen_tag_hyphen_protection.Output - /// Deprecated - Create a tag protection state for a repository + /// Closing down - Create a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. /// /// This creates a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -1894,10 +1894,10 @@ public protocol APIProtocol: Sendable { /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/tags/protection/post(repos/create-tag-protection)`. @available(*, deprecated) func repos_sol_create_hyphen_tag_hyphen_protection(_ input: Operations.repos_sol_create_hyphen_tag_hyphen_protection.Input) async throws -> Operations.repos_sol_create_hyphen_tag_hyphen_protection.Output - /// Deprecated - Delete a tag protection state for a repository + /// Closing down - Delete a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. /// /// This deletes a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -5455,10 +5455,10 @@ extension APIProtocol { headers: headers )) } - /// Deprecated - List tag protection states for a repository + /// Closing down - List tag protection states for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. /// /// This returns the tag protection states of a repository. /// @@ -5476,10 +5476,10 @@ extension APIProtocol { headers: headers )) } - /// Deprecated - Create a tag protection state for a repository + /// Closing down - Create a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. /// /// This creates a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -5498,10 +5498,10 @@ extension APIProtocol { body: body )) } - /// Deprecated - Delete a tag protection state for a repository + /// Closing down - Delete a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. /// /// This deletes a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -5907,6 +5907,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -5931,6 +5933,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -5952,7 +5955,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -5975,6 +5979,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -5998,6 +6003,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -6114,6 +6120,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -6138,6 +6146,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -6159,7 +6168,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -6182,6 +6192,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -6205,6 +6216,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// GitHub apps are a new way to extend GitHub. They can be installed directly on organizations and user accounts and granted access to specific repositories. They come with granular permissions and built-in webhooks. GitHub apps are first class actors within GitHub. @@ -7345,7 +7357,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -7533,7 +7545,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -8680,6 +8692,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -8688,18 +8722,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -8707,6 +8744,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -9652,7 +9690,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -9840,7 +9878,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -14105,6 +14143,8 @@ public enum Components { public var _type: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/site_admin`. public var site_admin: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/usersPayload/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `usersPayloadPayload`. /// /// - Parameters: @@ -14126,6 +14166,7 @@ public enum Components { /// - received_events_url: /// - _type: /// - site_admin: + /// - user_view_type: public init( login: Swift.String? = nil, id: Swift.Int64? = nil, @@ -14144,7 +14185,8 @@ public enum Components { events_url: Swift.String? = nil, received_events_url: Swift.String? = nil, _type: Swift.String? = nil, - site_admin: Swift.Bool? = nil + site_admin: Swift.Bool? = nil, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -14164,6 +14206,7 @@ public enum Components { self.received_events_url = received_events_url self._type = _type self.site_admin = site_admin + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -14184,6 +14227,7 @@ public enum Components { case received_events_url case _type = "type" case site_admin + case user_view_type } } /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/users`. @@ -14339,6 +14383,8 @@ public enum Components { public var _type: Swift.String? /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/site_admin`. public var site_admin: Swift.Bool? + /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `ownerPayload`. /// /// - Parameters: @@ -14365,6 +14411,7 @@ public enum Components { /// - received_events_url: /// - _type: /// - site_admin: + /// - user_view_type: public init( login: Swift.String? = nil, id: Swift.Int? = nil, @@ -14388,7 +14435,8 @@ public enum Components { organizations_url: Swift.String? = nil, received_events_url: Swift.String? = nil, _type: Swift.String? = nil, - site_admin: Swift.Bool? = nil + site_admin: Swift.Bool? = nil, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -14413,6 +14461,7 @@ public enum Components { self.received_events_url = received_events_url self._type = _type self.site_admin = site_admin + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -14438,6 +14487,7 @@ public enum Components { case received_events_url case _type = "type" case site_admin + case user_view_type } } /// - Remark: Generated from `#/components/schemas/branch-restriction-policy/appsPayload/owner`. @@ -16141,6 +16191,8 @@ public enum Components { public var permissions: Components.Schemas.collaborator.permissionsPayload? /// - Remark: Generated from `#/components/schemas/collaborator/role_name`. public var role_name: Swift.String + /// - Remark: Generated from `#/components/schemas/collaborator/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `collaborator`. /// /// - Parameters: @@ -16166,6 +16218,7 @@ public enum Components { /// - site_admin: /// - permissions: /// - role_name: + /// - user_view_type: public init( login: Swift.String, id: Swift.Int64, @@ -16188,7 +16241,8 @@ public enum Components { _type: Swift.String, site_admin: Swift.Bool, permissions: Components.Schemas.collaborator.permissionsPayload? = nil, - role_name: Swift.String + role_name: Swift.String, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -16212,6 +16266,7 @@ public enum Components { self.site_admin = site_admin self.permissions = permissions self.role_name = role_name + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -16236,6 +16291,7 @@ public enum Components { case site_admin case permissions case role_name + case user_view_type } } /// Repository invitations let you manage who you collaborate with. @@ -16418,6 +16474,8 @@ public enum Components { public var permissions: Components.Schemas.nullable_hyphen_collaborator.permissionsPayload? /// - Remark: Generated from `#/components/schemas/nullable-collaborator/role_name`. public var role_name: Swift.String + /// - Remark: Generated from `#/components/schemas/nullable-collaborator/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_collaborator`. /// /// - Parameters: @@ -16443,6 +16501,7 @@ public enum Components { /// - site_admin: /// - permissions: /// - role_name: + /// - user_view_type: public init( login: Swift.String, id: Swift.Int64, @@ -16465,7 +16524,8 @@ public enum Components { _type: Swift.String, site_admin: Swift.Bool, permissions: Components.Schemas.nullable_hyphen_collaborator.permissionsPayload? = nil, - role_name: Swift.String + role_name: Swift.String, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -16489,6 +16549,7 @@ public enum Components { self.site_admin = site_admin self.permissions = permissions self.role_name = role_name + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -16513,6 +16574,7 @@ public enum Components { case site_admin case permissions case role_name + case user_view_type } } /// Repository Collaborator Permission @@ -18835,6 +18897,8 @@ public enum Components { public var email: Swift.String? /// - Remark: Generated from `#/components/schemas/contributor/name`. public var name: Swift.String? + /// - Remark: Generated from `#/components/schemas/contributor/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `contributor`. /// /// - Parameters: @@ -18859,6 +18923,7 @@ public enum Components { /// - contributions: /// - email: /// - name: + /// - user_view_type: public init( login: Swift.String? = nil, id: Swift.Int? = nil, @@ -18880,7 +18945,8 @@ public enum Components { site_admin: Swift.Bool? = nil, contributions: Swift.Int, email: Swift.String? = nil, - name: Swift.String? = nil + name: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -18903,6 +18969,7 @@ public enum Components { self.contributions = contributions self.email = email self.name = name + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -18926,6 +18993,7 @@ public enum Components { case contributions case email case name + case user_view_type } } /// The status of a deployment. @@ -18964,7 +19032,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/deployment-status/environment`. public var environment: Swift.String? - /// Deprecated: the URL to associate with this status. + /// Closing down notice: the URL to associate with this status. /// /// - Remark: Generated from `#/components/schemas/deployment-status/target_url`. public var target_url: Swift.String @@ -18996,7 +19064,7 @@ public enum Components { /// - creator: /// - description: A short description of the status. /// - environment: The environment of the deployment that the status is for. - /// - target_url: Deprecated: the URL to associate with this status. + /// - target_url: Closing down notice: the URL to associate with this status. /// - created_at: /// - updated_at: /// - deployment_url: @@ -23027,7 +23095,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/delete_branch_on_merge`. public var delete_branch_on_merge: Swift.Bool? - /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/paths/orgs/{org}/repos/POST/requestBody/json/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -23160,7 +23228,7 @@ public enum Operations { /// - allow_rebase_merge: Either `true` to allow rebase-merging pull requests, or `false` to prevent rebase-merging. /// - allow_auto_merge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. /// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. **The authenticated user must be an organization owner to set this property to `true`.** - /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: Required when using `squash_merge_commit_message`. /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: Required when using `merge_commit_message`. @@ -25310,6 +25378,29 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_push_protection`. public var secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? + /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// Can be `enabled` or `disabled`. + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection/status`. + public var status: Swift.String? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: Can be `enabled` or `disabled`. + public init(status: Swift.String? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + /// + /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_ai_detectionPayload? /// Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/security_and_analysis/secret_scanning_non_provider_patterns`. @@ -25339,22 +25430,26 @@ public enum Operations { /// - advanced_security: Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." /// - secret_scanning: Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." /// - secret_scanning_push_protection: Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." + /// - secret_scanning_ai_detection: Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." /// - secret_scanning_non_provider_patterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." public init( advanced_security: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.advanced_securityPayload? = nil, secret_scanning: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanningPayload? = nil, secret_scanning_push_protection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_push_protectionPayload? = nil, + secret_scanning_ai_detection: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_ai_detectionPayload? = nil, secret_scanning_non_provider_patterns: Operations.repos_sol_update.Input.Body.jsonPayload.security_and_analysisPayload.secret_scanning_non_provider_patternsPayload? = nil ) { self.advanced_security = advanced_security self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection + self.secret_scanning_ai_detection = secret_scanning_ai_detection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns } public enum CodingKeys: String, CodingKey { case advanced_security case secret_scanning case secret_scanning_push_protection + case secret_scanning_ai_detection case secret_scanning_non_provider_patterns } } @@ -25413,7 +25508,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/PATCH/requestBody/json/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -25532,7 +25627,7 @@ public enum Operations { /// - allow_auto_merge: Either `true` to allow auto-merge on pull requests, or `false` to disallow auto-merge. /// - delete_branch_on_merge: Either `true` to allow automatically deleting head branches when pull requests are merged, or `false` to prevent automatic deletion. /// - allow_update_branch: Either `true` to always allow a pull request head branch that is behind its base branch to be updated even if it is not required to be up to date before merging, or false otherwise. - /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Either `true` to allow squash-merge commits to use pull request title, or `false` to use commit message. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: Required when using `squash_merge_commit_message`. /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: Required when using `merge_commit_message`. @@ -28605,7 +28700,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/strict`. public var strict: Swift.Bool - /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/PUT/requestBody/json/required_status_checks/contexts`. @available(*, deprecated) @@ -28649,7 +28744,7 @@ public enum Operations { /// /// - Parameters: /// - strict: Require branches to be up to date before merging. - /// - contexts: **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// - contexts: **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// - checks: The list of status checks to require in order to merge into this branch. public init( strict: Swift.Bool, @@ -31045,7 +31140,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/strict`. public var strict: Swift.Bool? - /// **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/PATCH/requestBody/json/contexts`. @available(*, deprecated) @@ -31089,7 +31184,7 @@ public enum Operations { /// /// - Parameters: /// - strict: Require branches to be up to date before merging. - /// - contexts: **Deprecated**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. + /// - contexts: **Closing down notice**: The list of status checks to require in order to merge into this branch. If any of these checks have recently been set by a particular GitHub App, they will be required to come from that app in future for the branch to merge. Use `checks` instead of `contexts` for more fine-grained control. /// - checks: The list of status checks to require in order to merge into this branch. public init( strict: Swift.Bool? = nil, @@ -37984,7 +38079,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/json/position`. public var position: Swift.Int? - /// **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + /// **Closing down notice**. Use **position** parameter instead. Line number in the file to comment on. /// /// - Remark: Generated from `#/paths/repos/{owner}/{repo}/commits/{commit_sha}/comments/POST/requestBody/json/line`. public var line: Swift.Int? @@ -37994,7 +38089,7 @@ public enum Operations { /// - body: The contents of the comment. /// - path: Relative path of the file to comment on. /// - position: Line index in the diff to comment on. - /// - line: **Deprecated**. Use **position** parameter instead. Line number in the file to comment on. + /// - line: **Closing down notice**. Use **position** parameter instead. Line number in the file to comment on. public init( body: Swift.String, path: Swift.String? = nil, @@ -59476,10 +59571,10 @@ public enum Operations { } } } - /// Deprecated - List tag protection states for a repository + /// Closing down - List tag protection states for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#get-all-repository-rulesets)" endpoint instead. /// /// This returns the tag protection states of a repository. /// @@ -59668,10 +59763,10 @@ public enum Operations { } } } - /// Deprecated - Create a tag protection state for a repository + /// Closing down - Create a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#create-a-repository-ruleset)" endpoint instead. /// /// This creates a tag protection state for a repository. /// This endpoint is only available to repository administrators. @@ -59885,10 +59980,10 @@ public enum Operations { } } } - /// Deprecated - Delete a tag protection state for a repository + /// Closing down - Delete a tag protection state for a repository /// /// > [!WARNING] - /// > **Deprecation notice:** This operation is deprecated and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. + /// > **Closing down notice:** This operation is closing down and will be removed after August 30, 2024. Use the "[Repository Rulesets](https://docs.github.com/rest/repos/rules#delete-a-repository-ruleset)" endpoint instead. /// /// This deletes a tag protection state for a repository. /// This endpoint is only available to repository administrators. diff --git a/Sources/search/Types.swift b/Sources/search/Types.swift index 2fb5e9d41fa..682f5a19352 100644 --- a/Sources/search/Types.swift +++ b/Sources/search/Types.swift @@ -375,6 +375,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -399,6 +401,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -420,7 +423,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -443,6 +447,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -466,6 +471,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -551,6 +557,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -575,6 +583,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -596,7 +605,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -619,6 +629,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -642,6 +653,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -1066,7 +1078,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -1254,7 +1266,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -2156,6 +2168,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -2164,18 +2198,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -2183,6 +2220,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -4513,6 +4551,8 @@ public enum Components { public var company: Swift.String? /// - Remark: Generated from `#/components/schemas/user-search-result-item/suspended_at`. public var suspended_at: Foundation.Date? + /// - Remark: Generated from `#/components/schemas/user-search-result-item/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `user_hyphen_search_hyphen_result_hyphen_item`. /// /// - Parameters: @@ -4550,6 +4590,7 @@ public enum Components { /// - blog: /// - company: /// - suspended_at: + /// - user_view_type: public init( login: Swift.String, id: Swift.Int64, @@ -4584,7 +4625,8 @@ public enum Components { text_matches: Components.Schemas.search_hyphen_result_hyphen_text_hyphen_matches? = nil, blog: Swift.String? = nil, company: Swift.String? = nil, - suspended_at: Foundation.Date? = nil + suspended_at: Foundation.Date? = nil, + user_view_type: Swift.String? = nil ) { self.login = login self.id = id @@ -4620,6 +4662,7 @@ public enum Components { self.blog = blog self.company = company self.suspended_at = suspended_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case login @@ -4656,6 +4699,7 @@ public enum Components { case blog case company case suspended_at + case user_view_type } } } @@ -4871,7 +4915,7 @@ public enum Operations { @frozen public enum sortPayload: String, Codable, Hashable, Sendable { case indexed = "indexed" } - /// **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) + /// **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) /// /// - Remark: Generated from `#/paths/search/code/GET/query/sort`. @available(*, deprecated) @@ -4881,7 +4925,7 @@ public enum Operations { case desc = "desc" case asc = "asc" } - /// **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + /// **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// /// - Remark: Generated from `#/paths/search/code/GET/query/order`. @available(*, deprecated) @@ -4898,8 +4942,8 @@ public enum Operations { /// /// - Parameters: /// - q: The query contains one or more search keywords and qualifiers. Qualifiers allow you to limit your search to specific areas of GitHub. The REST API supports the same qualifiers as the web interface for GitHub. To learn more about the format of the query, see [Constructing a search query](https://docs.github.com/rest/search/search#constructing-a-search-query). See "[Searching code](https://docs.github.com/search-github/searching-on-github/searching-code)" for a detailed list of qualifiers. - /// - sort: **This field is deprecated.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) - /// - order: **This field is deprecated.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. + /// - sort: **This field is closing down.** Sorts the results of your query. Can only be `indexed`, which indicates how recently a file has been indexed by the GitHub search infrastructure. Default: [best match](https://docs.github.com/rest/search/search#ranking-search-results) + /// - order: **This field is closing down.** Determines whether the first search result returned is the highest number of matches (`desc`) or lowest number of matches (`asc`). This parameter is ignored unless you provide `sort`. /// - per_page: The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." /// - page: The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." public init( diff --git a/Sources/secret-scanning/Types.swift b/Sources/secret-scanning/Types.swift index 7e1c7b29706..704e1b0ddb9 100644 --- a/Sources/secret-scanning/Types.swift +++ b/Sources/secret-scanning/Types.swift @@ -303,6 +303,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -327,6 +329,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -348,7 +351,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -371,6 +375,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -394,6 +399,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -479,6 +485,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -503,6 +511,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -524,7 +533,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -547,6 +557,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -570,6 +581,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// The security alert number. diff --git a/Sources/security-advisories/Types.swift b/Sources/security-advisories/Types.swift index faf4c6ee707..55c347a5955 100644 --- a/Sources/security-advisories/Types.swift +++ b/Sources/security-advisories/Types.swift @@ -546,6 +546,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -570,6 +572,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -591,7 +594,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -614,6 +618,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -637,6 +642,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// The type of credit the user is receiving. @@ -1234,6 +1240,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -1258,6 +1266,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1279,7 +1288,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1302,6 +1312,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1325,6 +1336,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Scim Error @@ -1798,7 +1810,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -1986,7 +1998,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. @@ -3034,6 +3046,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -3042,18 +3076,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -3061,6 +3098,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// A repository on GitHub. @@ -3311,7 +3349,7 @@ public enum Components { /// /// - Remark: Generated from `#/components/schemas/nullable-repository/allow_update_branch`. public var allow_update_branch: Swift.Bool? - /// Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// /// - Remark: Generated from `#/components/schemas/nullable-repository/use_squash_pr_title_as_default`. @available(*, deprecated) @@ -3499,7 +3537,7 @@ public enum Components { /// - allow_auto_merge: Whether to allow Auto-merge to be used on pull requests. /// - delete_branch_on_merge: Whether to delete head branches when pull requests are merged /// - allow_update_branch: Whether or not a pull request head branch that is behind its base branch can always be updated even if it is not required to be up to date before merging. - /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property has been deprecated. Please use `squash_merge_commit_title` instead. + /// - use_squash_pr_title_as_default: Whether a squash merge commit can use the pull request title as default. **This property is closing down. Please use `squash_merge_commit_title` instead. /// - squash_merge_commit_title: The default value for a squash merge commit title: /// - squash_merge_commit_message: The default value for a squash merge commit message: /// - merge_commit_title: The default value for a merge commit title. diff --git a/Sources/teams/Client.swift b/Sources/teams/Client.swift index 50c05979d3d..6909dfcfd7b 100644 --- a/Sources/teams/Client.swift +++ b/Sources/teams/Client.swift @@ -2403,7 +2403,7 @@ public struct Client: APIProtocol { /// Get a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @@ -2491,7 +2491,7 @@ public struct Client: APIProtocol { /// Update a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer. /// @@ -2659,7 +2659,7 @@ public struct Client: APIProtocol { /// Delete a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. /// @@ -2753,7 +2753,7 @@ public struct Client: APIProtocol { /// List discussions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. /// /// List all discussions on a team's page. /// @@ -2852,7 +2852,7 @@ public struct Client: APIProtocol { /// Create a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. /// /// Creates a new discussion post on a team's page. /// @@ -2933,7 +2933,7 @@ public struct Client: APIProtocol { /// Get a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. /// /// Get a specific discussion on a team's page. /// @@ -3004,7 +3004,7 @@ public struct Client: APIProtocol { /// Update a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated. /// @@ -3086,7 +3086,7 @@ public struct Client: APIProtocol { /// Delete a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. /// /// Delete a discussion from a team's page. /// @@ -3133,7 +3133,7 @@ public struct Client: APIProtocol { /// List discussion comments (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. /// /// List all comments on a team discussion. /// @@ -3233,7 +3233,7 @@ public struct Client: APIProtocol { /// Create a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. /// /// Creates a new comment on a team discussion. /// @@ -3315,7 +3315,7 @@ public struct Client: APIProtocol { /// Get a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. /// /// Get a specific comment on a team discussion. /// @@ -3387,7 +3387,7 @@ public struct Client: APIProtocol { /// Update a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. /// /// Edits the body text of a discussion comment. /// @@ -3468,7 +3468,7 @@ public struct Client: APIProtocol { /// Delete a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. /// /// Deletes a comment on a team discussion. /// @@ -3516,7 +3516,7 @@ public struct Client: APIProtocol { /// List pending team invitations (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. /// @@ -3606,7 +3606,7 @@ public struct Client: APIProtocol { /// List team members (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. /// /// Team members will include the members of child teams. /// @@ -3724,7 +3724,7 @@ public struct Client: APIProtocol { } /// Get team member (Legacy) /// - /// The "Get team member" endpoint (described below) is deprecated. + /// The "Get team member" endpoint (described below) is closing down. /// /// We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. /// @@ -3772,7 +3772,7 @@ public struct Client: APIProtocol { } /// Add team member (Legacy) /// - /// The "Add team member" endpoint (described below) is deprecated. + /// The "Add team member" endpoint (described below) is closing down. /// /// We recommend using the [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams. /// @@ -3855,7 +3855,7 @@ public struct Client: APIProtocol { } /// Remove team member (Legacy) /// - /// The "Remove team member" endpoint (described below) is deprecated. + /// The "Remove team member" endpoint (described below) is closing down. /// /// We recommend using the [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships. /// @@ -3909,7 +3909,7 @@ public struct Client: APIProtocol { /// Get team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. /// /// Team members will include the members of child teams. /// @@ -4007,7 +4007,7 @@ public struct Client: APIProtocol { /// Add or update team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -4122,7 +4122,7 @@ public struct Client: APIProtocol { /// Remove team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -4174,7 +4174,7 @@ public struct Client: APIProtocol { /// List team projects (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. /// /// Lists the organization projects for a team. /// @@ -4286,7 +4286,7 @@ public struct Client: APIProtocol { /// Check team permissions for a project (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. /// /// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// @@ -4357,7 +4357,7 @@ public struct Client: APIProtocol { /// Add or update team project permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. /// /// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// @@ -4483,7 +4483,7 @@ public struct Client: APIProtocol { /// Remove a project from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. /// /// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// @@ -4576,7 +4576,7 @@ public struct Client: APIProtocol { /// List team repositories (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @@ -4686,7 +4686,7 @@ public struct Client: APIProtocol { /// Check team permissions for a repository (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. /// /// > [!NOTE] /// > Repositories inherited through a parent team will also be checked. @@ -4763,7 +4763,7 @@ public struct Client: APIProtocol { /// Add or update team repository permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. /// @@ -4870,7 +4870,7 @@ public struct Client: APIProtocol { /// Remove a repository from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. /// /// If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// @@ -4916,7 +4916,7 @@ public struct Client: APIProtocol { /// List child teams (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. diff --git a/Sources/teams/Types.swift b/Sources/teams/Types.swift index 9b55f8ce3fb..3daad2d0994 100644 --- a/Sources/teams/Types.swift +++ b/Sources/teams/Types.swift @@ -354,7 +354,7 @@ public protocol APIProtocol: Sendable { /// Get a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @@ -363,7 +363,7 @@ public protocol APIProtocol: Sendable { /// Update a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer. /// @@ -377,7 +377,7 @@ public protocol APIProtocol: Sendable { /// Delete a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. /// @@ -390,7 +390,7 @@ public protocol APIProtocol: Sendable { /// List discussions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. /// /// List all discussions on a team's page. /// @@ -403,7 +403,7 @@ public protocol APIProtocol: Sendable { /// Create a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. /// /// Creates a new discussion post on a team's page. /// @@ -418,7 +418,7 @@ public protocol APIProtocol: Sendable { /// Get a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. /// /// Get a specific discussion on a team's page. /// @@ -431,7 +431,7 @@ public protocol APIProtocol: Sendable { /// Update a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated. /// @@ -444,7 +444,7 @@ public protocol APIProtocol: Sendable { /// Delete a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. /// /// Delete a discussion from a team's page. /// @@ -457,7 +457,7 @@ public protocol APIProtocol: Sendable { /// List discussion comments (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. /// /// List all comments on a team discussion. /// @@ -470,7 +470,7 @@ public protocol APIProtocol: Sendable { /// Create a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. /// /// Creates a new comment on a team discussion. /// @@ -485,7 +485,7 @@ public protocol APIProtocol: Sendable { /// Get a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. /// /// Get a specific comment on a team discussion. /// @@ -498,7 +498,7 @@ public protocol APIProtocol: Sendable { /// Update a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. /// /// Edits the body text of a discussion comment. /// @@ -511,7 +511,7 @@ public protocol APIProtocol: Sendable { /// Delete a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. /// /// Deletes a comment on a team discussion. /// @@ -524,7 +524,7 @@ public protocol APIProtocol: Sendable { /// List pending team invitations (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. /// @@ -535,7 +535,7 @@ public protocol APIProtocol: Sendable { /// List team members (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. /// /// Team members will include the members of child teams. /// @@ -545,7 +545,7 @@ public protocol APIProtocol: Sendable { func teams_sol_list_hyphen_members_hyphen_legacy(_ input: Operations.teams_sol_list_hyphen_members_hyphen_legacy.Input) async throws -> Operations.teams_sol_list_hyphen_members_hyphen_legacy.Output /// Get team member (Legacy) /// - /// The "Get team member" endpoint (described below) is deprecated. + /// The "Get team member" endpoint (described below) is closing down. /// /// We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. /// @@ -557,7 +557,7 @@ public protocol APIProtocol: Sendable { func teams_sol_get_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_get_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_get_hyphen_member_hyphen_legacy.Output /// Add team member (Legacy) /// - /// The "Add team member" endpoint (described below) is deprecated. + /// The "Add team member" endpoint (described below) is closing down. /// /// We recommend using the [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams. /// @@ -576,7 +576,7 @@ public protocol APIProtocol: Sendable { func teams_sol_add_hyphen_member_hyphen_legacy(_ input: Operations.teams_sol_add_hyphen_member_hyphen_legacy.Input) async throws -> Operations.teams_sol_add_hyphen_member_hyphen_legacy.Output /// Remove team member (Legacy) /// - /// The "Remove team member" endpoint (described below) is deprecated. + /// The "Remove team member" endpoint (described below) is closing down. /// /// We recommend using the [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships. /// @@ -594,7 +594,7 @@ public protocol APIProtocol: Sendable { /// Get team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. /// /// Team members will include the members of child teams. /// @@ -612,7 +612,7 @@ public protocol APIProtocol: Sendable { /// Add or update team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -632,7 +632,7 @@ public protocol APIProtocol: Sendable { /// Remove team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -648,7 +648,7 @@ public protocol APIProtocol: Sendable { /// List team projects (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. /// /// Lists the organization projects for a team. /// @@ -659,7 +659,7 @@ public protocol APIProtocol: Sendable { /// Check team permissions for a project (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. /// /// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// @@ -670,7 +670,7 @@ public protocol APIProtocol: Sendable { /// Add or update team project permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. /// /// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// @@ -681,7 +681,7 @@ public protocol APIProtocol: Sendable { /// Remove a project from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. /// /// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// @@ -692,7 +692,7 @@ public protocol APIProtocol: Sendable { /// List team repositories (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @@ -701,7 +701,7 @@ public protocol APIProtocol: Sendable { /// Check team permissions for a repository (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. /// /// > [!NOTE] /// > Repositories inherited through a parent team will also be checked. @@ -715,7 +715,7 @@ public protocol APIProtocol: Sendable { /// Add or update team repository permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. /// @@ -728,7 +728,7 @@ public protocol APIProtocol: Sendable { /// Remove a repository from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. /// /// If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// @@ -739,7 +739,7 @@ public protocol APIProtocol: Sendable { /// List child teams (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. @@ -1332,7 +1332,7 @@ extension APIProtocol { /// Get a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @@ -1349,7 +1349,7 @@ extension APIProtocol { /// Update a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer. /// @@ -1373,7 +1373,7 @@ extension APIProtocol { /// Delete a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. /// @@ -1394,7 +1394,7 @@ extension APIProtocol { /// List discussions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. /// /// List all discussions on a team's page. /// @@ -1417,7 +1417,7 @@ extension APIProtocol { /// Create a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. /// /// Creates a new discussion post on a team's page. /// @@ -1442,7 +1442,7 @@ extension APIProtocol { /// Get a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. /// /// Get a specific discussion on a team's page. /// @@ -1463,7 +1463,7 @@ extension APIProtocol { /// Update a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated. /// @@ -1486,7 +1486,7 @@ extension APIProtocol { /// Delete a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. /// /// Delete a discussion from a team's page. /// @@ -1501,7 +1501,7 @@ extension APIProtocol { /// List discussion comments (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. /// /// List all comments on a team discussion. /// @@ -1524,7 +1524,7 @@ extension APIProtocol { /// Create a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. /// /// Creates a new comment on a team discussion. /// @@ -1549,7 +1549,7 @@ extension APIProtocol { /// Get a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. /// /// Get a specific comment on a team discussion. /// @@ -1570,7 +1570,7 @@ extension APIProtocol { /// Update a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. /// /// Edits the body text of a discussion comment. /// @@ -1593,7 +1593,7 @@ extension APIProtocol { /// Delete a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. /// /// Deletes a comment on a team discussion. /// @@ -1608,7 +1608,7 @@ extension APIProtocol { /// List pending team invitations (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. /// @@ -1629,7 +1629,7 @@ extension APIProtocol { /// List team members (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. /// /// Team members will include the members of child teams. /// @@ -1649,7 +1649,7 @@ extension APIProtocol { } /// Get team member (Legacy) /// - /// The "Get team member" endpoint (described below) is deprecated. + /// The "Get team member" endpoint (described below) is closing down. /// /// We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. /// @@ -1663,7 +1663,7 @@ extension APIProtocol { } /// Add team member (Legacy) /// - /// The "Add team member" endpoint (described below) is deprecated. + /// The "Add team member" endpoint (described below) is closing down. /// /// We recommend using the [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams. /// @@ -1690,7 +1690,7 @@ extension APIProtocol { } /// Remove team member (Legacy) /// - /// The "Remove team member" endpoint (described below) is deprecated. + /// The "Remove team member" endpoint (described below) is closing down. /// /// We recommend using the [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships. /// @@ -1710,7 +1710,7 @@ extension APIProtocol { /// Get team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. /// /// Team members will include the members of child teams. /// @@ -1736,7 +1736,7 @@ extension APIProtocol { /// Add or update team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -1766,7 +1766,7 @@ extension APIProtocol { /// Remove team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -1784,7 +1784,7 @@ extension APIProtocol { /// List team projects (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. /// /// Lists the organization projects for a team. /// @@ -1805,7 +1805,7 @@ extension APIProtocol { /// Check team permissions for a project (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. /// /// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// @@ -1824,7 +1824,7 @@ extension APIProtocol { /// Add or update team project permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. /// /// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// @@ -1845,7 +1845,7 @@ extension APIProtocol { /// Remove a project from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. /// /// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// @@ -1864,7 +1864,7 @@ extension APIProtocol { /// List team repositories (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @@ -1883,7 +1883,7 @@ extension APIProtocol { /// Check team permissions for a repository (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. /// /// > [!NOTE] /// > Repositories inherited through a parent team will also be checked. @@ -1905,7 +1905,7 @@ extension APIProtocol { /// Add or update team repository permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. /// @@ -1928,7 +1928,7 @@ extension APIProtocol { /// Remove a repository from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. /// /// If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// @@ -1941,7 +1941,7 @@ extension APIProtocol { /// List child teams (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. @@ -2039,6 +2039,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -2063,6 +2065,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -2084,7 +2087,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -2107,6 +2111,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -2130,6 +2135,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -2215,6 +2221,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/nullable-simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/nullable-simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `nullable_hyphen_simple_hyphen_user`. /// /// - Parameters: @@ -2239,6 +2247,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -2260,7 +2269,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -2283,6 +2293,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -2306,6 +2317,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Validation Error @@ -2961,6 +2973,28 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_non_provider_patterns`. public var secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public struct secret_scanning_ai_detectionPayload: Codable, Hashable, Sendable { + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + @frozen public enum statusPayload: String, Codable, Hashable, Sendable { + case enabled = "enabled" + case disabled = "disabled" + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection/status`. + public var status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? + /// Creates a new `secret_scanning_ai_detectionPayload`. + /// + /// - Parameters: + /// - status: + public init(status: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload.statusPayload? = nil) { + self.status = status + } + public enum CodingKeys: String, CodingKey { + case status + } + } + /// - Remark: Generated from `#/components/schemas/security-and-analysis/secret_scanning_ai_detection`. + public var secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? /// Creates a new `security_hyphen_and_hyphen_analysis`. /// /// - Parameters: @@ -2969,18 +3003,21 @@ public enum Components { /// - secret_scanning: /// - secret_scanning_push_protection: /// - secret_scanning_non_provider_patterns: + /// - secret_scanning_ai_detection: public init( advanced_security: Components.Schemas.security_hyphen_and_hyphen_analysis.advanced_securityPayload? = nil, dependabot_security_updates: Components.Schemas.security_hyphen_and_hyphen_analysis.dependabot_security_updatesPayload? = nil, secret_scanning: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanningPayload? = nil, secret_scanning_push_protection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_push_protectionPayload? = nil, - secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil + secret_scanning_non_provider_patterns: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_non_provider_patternsPayload? = nil, + secret_scanning_ai_detection: Components.Schemas.security_hyphen_and_hyphen_analysis.secret_scanning_ai_detectionPayload? = nil ) { self.advanced_security = advanced_security self.dependabot_security_updates = dependabot_security_updates self.secret_scanning = secret_scanning self.secret_scanning_push_protection = secret_scanning_push_protection self.secret_scanning_non_provider_patterns = secret_scanning_non_provider_patterns + self.secret_scanning_ai_detection = secret_scanning_ai_detection } public enum CodingKeys: String, CodingKey { case advanced_security @@ -2988,6 +3025,7 @@ public enum Components { case secret_scanning case secret_scanning_push_protection case secret_scanning_non_provider_patterns + case secret_scanning_ai_detection } } /// Minimal Repository @@ -5702,14 +5740,14 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/notification_setting`. public var notification_setting: Operations.teams_sol_create.Input.Body.jsonPayload.notification_settingPayload? - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/permission`. @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { case pull = "pull" case push = "push" } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/POST/requestBody/json/permission`. public var permission: Operations.teams_sol_create.Input.Body.jsonPayload.permissionPayload? @@ -5726,7 +5764,7 @@ public enum Operations { /// - repo_names: The full name (e.g., "organization-name/repository-name") of repositories to add the team to. /// - privacy: The level of privacy this team should have. The options are: /// - notification_setting: The notification setting the team has chosen. The options are: - /// - permission: **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// - parent_team_id: The ID of a team to set as the parent team. public init( name: Swift.String, @@ -6170,7 +6208,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/notification_setting`. public var notification_setting: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.notification_settingPayload? - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/permission`. @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { @@ -6178,7 +6216,7 @@ public enum Operations { case push = "push" case admin = "admin" } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/orgs/{org}/teams/{team_slug}/PATCH/requestBody/json/permission`. public var permission: Operations.teams_sol_update_hyphen_in_hyphen_org.Input.Body.jsonPayload.permissionPayload? @@ -6193,7 +6231,7 @@ public enum Operations { /// - description: The description of the team. /// - privacy: The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. When a team is nested, the `privacy` for parent teams cannot be `secret`. The options are: /// - notification_setting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: - /// - permission: **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// - parent_team_id: The ID of a team to set as the parent team. public init( name: Swift.String? = nil, @@ -10630,7 +10668,7 @@ public enum Operations { /// Get a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the [Get a team by name](https://docs.github.com/rest/teams/teams#get-a-team-by-name) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}`. /// - Remark: Generated from `#/paths//teams/{team_id}/get(teams/get-legacy)`. @@ -10786,7 +10824,7 @@ public enum Operations { /// Update a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a team](https://docs.github.com/rest/teams/teams#update-a-team) endpoint. /// /// To edit a team, the authenticated user must either be an organization owner or a team maintainer. /// @@ -10873,7 +10911,7 @@ public enum Operations { /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/notification_setting`. public var notification_setting: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.notification_settingPayload? - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/permission`. @frozen public enum permissionPayload: String, Codable, Hashable, Sendable { @@ -10881,7 +10919,7 @@ public enum Operations { case push = "push" case admin = "admin" } - /// **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// /// - Remark: Generated from `#/paths/teams/{team_id}/PATCH/requestBody/json/permission`. public var permission: Operations.teams_sol_update_hyphen_legacy.Input.Body.jsonPayload.permissionPayload? @@ -10896,7 +10934,7 @@ public enum Operations { /// - description: The description of the team. /// - privacy: The level of privacy this team should have. Editing teams without specifying this parameter leaves `privacy` intact. The options are: /// - notification_setting: The notification setting the team has chosen. Editing teams without specifying this parameter leaves `notification_setting` intact. The options are: - /// - permission: **Deprecated**. The permission that new repositories will be added to the team with when none is specified. + /// - permission: **Closing down notice**. The permission that new repositories will be added to the team with when none is specified. /// - parent_team_id: The ID of a team to set as the parent team. public init( name: Swift.String, @@ -11148,7 +11186,7 @@ public enum Operations { /// Delete a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a team](https://docs.github.com/rest/teams/teams#delete-a-team) endpoint. /// /// To delete a team, the authenticated user must be an organization owner or team maintainer. /// @@ -11307,7 +11345,7 @@ public enum Operations { /// List discussions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List discussions`](https://docs.github.com/rest/teams/discussions#list-discussions) endpoint. /// /// List all discussions on a team's page. /// @@ -11502,7 +11540,7 @@ public enum Operations { /// Create a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Create a discussion`](https://docs.github.com/rest/teams/discussions#create-a-discussion) endpoint. /// /// Creates a new discussion post on a team's page. /// @@ -11685,7 +11723,7 @@ public enum Operations { /// Get a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion](https://docs.github.com/rest/teams/discussions#get-a-discussion) endpoint. /// /// Get a specific discussion on a team's page. /// @@ -11831,7 +11869,7 @@ public enum Operations { /// Update a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion](https://docs.github.com/rest/teams/discussions#update-a-discussion) endpoint. /// /// Edits the title and body text of a discussion post. Only the parameters you provide are updated. /// @@ -12013,7 +12051,7 @@ public enum Operations { /// Delete a discussion (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`Delete a discussion`](https://docs.github.com/rest/teams/discussions#delete-a-discussion) endpoint. /// /// Delete a discussion from a team's page. /// @@ -12093,7 +12131,7 @@ public enum Operations { /// List discussion comments (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List discussion comments](https://docs.github.com/rest/teams/discussion-comments#list-discussion-comments) endpoint. /// /// List all comments on a team discussion. /// @@ -12297,7 +12335,7 @@ public enum Operations { /// Create a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Create a discussion comment](https://docs.github.com/rest/teams/discussion-comments#create-a-discussion-comment) endpoint. /// /// Creates a new comment on a team discussion. /// @@ -12471,7 +12509,7 @@ public enum Operations { /// Get a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get a discussion comment](https://docs.github.com/rest/teams/discussion-comments#get-a-discussion-comment) endpoint. /// /// Get a specific comment on a team discussion. /// @@ -12624,7 +12662,7 @@ public enum Operations { /// Update a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Update a discussion comment](https://docs.github.com/rest/teams/discussion-comments#update-a-discussion-comment) endpoint. /// /// Edits the body text of a discussion comment. /// @@ -12803,7 +12841,7 @@ public enum Operations { /// Delete a discussion comment (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Delete a discussion comment](https://docs.github.com/rest/teams/discussion-comments#delete-a-discussion-comment) endpoint. /// /// Deletes a comment on a team discussion. /// @@ -12890,7 +12928,7 @@ public enum Operations { /// List pending team invitations (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List pending team invitations`](https://docs.github.com/rest/teams/members#list-pending-team-invitations) endpoint. /// /// The return hash contains a `role` field which refers to the Organization Invitation role and will be one of the following values: `direct_member`, `admin`, `billing_manager`, `hiring_manager`, or `reinstate`. If the invitee is not a GitHub member, the `login` field in the return hash will be `null`. /// @@ -13071,7 +13109,7 @@ public enum Operations { /// List team members (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team members`](https://docs.github.com/rest/teams/members#list-team-members) endpoint. /// /// Team members will include the members of child teams. /// @@ -13287,7 +13325,7 @@ public enum Operations { } /// Get team member (Legacy) /// - /// The "Get team member" endpoint (described below) is deprecated. + /// The "Get team member" endpoint (described below) is closing down. /// /// We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. /// @@ -13393,7 +13431,7 @@ public enum Operations { } /// Add team member (Legacy) /// - /// The "Add team member" endpoint (described below) is deprecated. + /// The "Add team member" endpoint (described below) is closing down. /// /// We recommend using the [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint instead. It allows you to invite new organization members to your teams. /// @@ -13598,7 +13636,7 @@ public enum Operations { } /// Remove team member (Legacy) /// - /// The "Remove team member" endpoint (described below) is deprecated. + /// The "Remove team member" endpoint (described below) is closing down. /// /// We recommend using the [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint instead. It allows you to remove both active and pending memberships. /// @@ -13710,7 +13748,7 @@ public enum Operations { /// Get team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint. /// /// Team members will include the members of child teams. /// @@ -13884,7 +13922,7 @@ public enum Operations { /// Add or update team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team membership for a user](https://docs.github.com/rest/teams/members#add-or-update-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -14147,7 +14185,7 @@ public enum Operations { /// Remove team membership for a user (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove team membership for a user](https://docs.github.com/rest/teams/members#remove-team-membership-for-a-user) endpoint. /// /// Team synchronization is available for organizations using GitHub Enterprise Cloud. For more information, see [GitHub's products](https://docs.github.com/github/getting-started-with-github/githubs-products) in the GitHub Help documentation. /// @@ -14257,7 +14295,7 @@ public enum Operations { /// List team projects (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List team projects`](https://docs.github.com/rest/teams/teams#list-team-projects) endpoint. /// /// Lists the organization projects for a team. /// @@ -14461,7 +14499,7 @@ public enum Operations { /// Check team permissions for a project (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a project](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-project) endpoint. /// /// Checks whether a team has `read`, `write`, or `admin` permissions for an organization project. The response includes projects inherited from a parent team. /// @@ -14632,7 +14670,7 @@ public enum Operations { /// Add or update team project permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Add or update team project permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-project-permissions) endpoint. /// /// Adds an organization project to a team. To add a project to a team or update the team's permission on a project, the authenticated user must have `admin` permissions for the project. The project and team must be part of the same organization. /// @@ -14906,7 +14944,7 @@ public enum Operations { /// Remove a project from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a project from a team](https://docs.github.com/rest/teams/teams#remove-a-project-from-a-team) endpoint. /// /// Removes an organization project from a team. An organization owner or a team maintainer can remove any project from the team. To remove a project from a team as an organization member, the authenticated user must have `read` access to both the team and project, or `admin` access to the team or project. **Note:** This endpoint removes the project from the team, but does not delete it. /// @@ -15072,7 +15110,7 @@ public enum Operations { /// List team repositories (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [List team repositories](https://docs.github.com/rest/teams/teams#list-team-repositories) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/repos`. /// - Remark: Generated from `#/paths//teams/{team_id}/repos/get(teams/list-repos-legacy)`. @@ -15274,7 +15312,7 @@ public enum Operations { /// Check team permissions for a repository (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Check team permissions for a repository](https://docs.github.com/rest/teams/teams#check-team-permissions-for-a-repository) endpoint. /// /// > [!NOTE] /// > Repositories inherited through a parent team will also be checked. @@ -15482,7 +15520,7 @@ public enum Operations { /// Add or update team repository permissions (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new "[Add or update team repository permissions](https://docs.github.com/rest/teams/teams#add-or-update-team-repository-permissions)" endpoint. /// /// To add a repository to a team or update the team's permission on a repository, the authenticated user must have admin access to the repository, and must be able to see the team. The repository must be owned by the organization, or a direct fork of a repository owned by the organization. You will get a `422 Unprocessable Entity` status if you attempt to add a repository to a team that is not owned by the organization. /// @@ -15691,7 +15729,7 @@ public enum Operations { /// Remove a repository from a team (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [Remove a repository from a team](https://docs.github.com/rest/teams/teams#remove-a-repository-from-a-team) endpoint. /// /// If the authenticated user is an organization owner or a team maintainer, they can remove any repositories from the team. To remove a repository from a team as an organization member, the authenticated user must have admin access to the repository and must be able to see the team. NOTE: This does not delete the repository, it just removes it from the team. /// @@ -15776,7 +15814,7 @@ public enum Operations { /// List child teams (Legacy) /// /// > [!WARNING] - /// > **Deprecation notice:** This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. + /// > **Endpoint closing down notice:** This endpoint route is closing down and will be removed from the Teams API. We recommend migrating your existing code to use the new [`List child teams`](https://docs.github.com/rest/teams/teams#list-child-teams) endpoint. /// /// - Remark: HTTP `GET /teams/{team_id}/teams`. /// - Remark: Generated from `#/paths//teams/{team_id}/teams/get(teams/list-child-legacy)`. diff --git a/Sources/users/Types.swift b/Sources/users/Types.swift index 2cb9a226f61..1c5f2066824 100644 --- a/Sources/users/Types.swift +++ b/Sources/users/Types.swift @@ -1137,6 +1137,8 @@ public enum Components { public var site_admin: Swift.Bool /// - Remark: Generated from `#/components/schemas/simple-user/starred_at`. public var starred_at: Swift.String? + /// - Remark: Generated from `#/components/schemas/simple-user/user_view_type`. + public var user_view_type: Swift.String? /// Creates a new `simple_hyphen_user`. /// /// - Parameters: @@ -1161,6 +1163,7 @@ public enum Components { /// - _type: /// - site_admin: /// - starred_at: + /// - user_view_type: public init( name: Swift.String? = nil, email: Swift.String? = nil, @@ -1182,7 +1185,8 @@ public enum Components { received_events_url: Swift.String, _type: Swift.String, site_admin: Swift.Bool, - starred_at: Swift.String? = nil + starred_at: Swift.String? = nil, + user_view_type: Swift.String? = nil ) { self.name = name self.email = email @@ -1205,6 +1209,7 @@ public enum Components { self._type = _type self.site_admin = site_admin self.starred_at = starred_at + self.user_view_type = user_view_type } public enum CodingKeys: String, CodingKey { case name @@ -1228,6 +1233,7 @@ public enum Components { case _type = "type" case site_admin case starred_at + case user_view_type } } /// Basic Error @@ -1400,6 +1406,8 @@ public enum Components { public var login: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/id`. public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/public-user/user_view_type`. + public var user_view_type: Swift.String? /// - Remark: Generated from `#/components/schemas/public-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/public-user/avatar_url`. @@ -1499,8 +1507,6 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/public-user/plan`. public var plan: Components.Schemas.public_hyphen_user.planPayload? - /// - Remark: Generated from `#/components/schemas/public-user/suspended_at`. - public var suspended_at: Foundation.Date? /// - Remark: Generated from `#/components/schemas/public-user/private_gists`. public var private_gists: Swift.Int? /// - Remark: Generated from `#/components/schemas/public-user/total_private_repos`. @@ -1516,6 +1522,7 @@ public enum Components { /// - Parameters: /// - login: /// - id: + /// - user_view_type: /// - node_id: /// - avatar_url: /// - gravatar_id: @@ -1548,7 +1555,6 @@ public enum Components { /// - created_at: /// - updated_at: /// - plan: - /// - suspended_at: /// - private_gists: /// - total_private_repos: /// - owned_private_repos: @@ -1557,6 +1563,7 @@ public enum Components { public init( login: Swift.String, id: Swift.Int64, + user_view_type: Swift.String? = nil, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -1589,7 +1596,6 @@ public enum Components { created_at: Foundation.Date, updated_at: Foundation.Date, plan: Components.Schemas.public_hyphen_user.planPayload? = nil, - suspended_at: Foundation.Date? = nil, private_gists: Swift.Int? = nil, total_private_repos: Swift.Int? = nil, owned_private_repos: Swift.Int? = nil, @@ -1598,6 +1604,7 @@ public enum Components { ) { self.login = login self.id = id + self.user_view_type = user_view_type self.node_id = node_id self.avatar_url = avatar_url self.gravatar_id = gravatar_id @@ -1630,7 +1637,6 @@ public enum Components { self.created_at = created_at self.updated_at = updated_at self.plan = plan - self.suspended_at = suspended_at self.private_gists = private_gists self.total_private_repos = total_private_repos self.owned_private_repos = owned_private_repos @@ -1640,6 +1646,7 @@ public enum Components { public enum CodingKeys: String, CodingKey { case login case id + case user_view_type case node_id case avatar_url case gravatar_id @@ -1672,7 +1679,6 @@ public enum Components { case created_at case updated_at case plan - case suspended_at case private_gists case total_private_repos case owned_private_repos @@ -1689,6 +1695,10 @@ public enum Components { Swift.Int64.self, forKey: .id ) + user_view_type = try container.decodeIfPresent( + Swift.String.self, + forKey: .user_view_type + ) node_id = try container.decode( Swift.String.self, forKey: .node_id @@ -1817,10 +1827,6 @@ public enum Components { Components.Schemas.public_hyphen_user.planPayload.self, forKey: .plan ) - suspended_at = try container.decodeIfPresent( - Foundation.Date.self, - forKey: .suspended_at - ) private_gists = try container.decodeIfPresent( Swift.Int.self, forKey: .private_gists @@ -1844,6 +1850,7 @@ public enum Components { try decoder.ensureNoAdditionalProperties(knownKeys: [ "login", "id", + "user_view_type", "node_id", "avatar_url", "gravatar_id", @@ -1876,7 +1883,6 @@ public enum Components { "created_at", "updated_at", "plan", - "suspended_at", "private_gists", "total_private_repos", "owned_private_repos", @@ -1903,6 +1909,8 @@ public enum Components { public var login: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/id`. public var id: Swift.Int64 + /// - Remark: Generated from `#/components/schemas/private-user/user_view_type`. + public var user_view_type: Swift.String? /// - Remark: Generated from `#/components/schemas/private-user/node_id`. public var node_id: Swift.String /// - Remark: Generated from `#/components/schemas/private-user/avatar_url`. @@ -2014,8 +2022,6 @@ public enum Components { } /// - Remark: Generated from `#/components/schemas/private-user/plan`. public var plan: Components.Schemas.private_hyphen_user.planPayload? - /// - Remark: Generated from `#/components/schemas/private-user/suspended_at`. - public var suspended_at: Foundation.Date? /// - Remark: Generated from `#/components/schemas/private-user/business_plus`. public var business_plus: Swift.Bool? /// - Remark: Generated from `#/components/schemas/private-user/ldap_dn`. @@ -2025,6 +2031,7 @@ public enum Components { /// - Parameters: /// - login: /// - id: + /// - user_view_type: /// - node_id: /// - avatar_url: /// - gravatar_id: @@ -2063,12 +2070,12 @@ public enum Components { /// - collaborators: /// - two_factor_authentication: /// - plan: - /// - suspended_at: /// - business_plus: /// - ldap_dn: public init( login: Swift.String, id: Swift.Int64, + user_view_type: Swift.String? = nil, node_id: Swift.String, avatar_url: Swift.String, gravatar_id: Swift.String? = nil, @@ -2107,12 +2114,12 @@ public enum Components { collaborators: Swift.Int, two_factor_authentication: Swift.Bool, plan: Components.Schemas.private_hyphen_user.planPayload? = nil, - suspended_at: Foundation.Date? = nil, business_plus: Swift.Bool? = nil, ldap_dn: Swift.String? = nil ) { self.login = login self.id = id + self.user_view_type = user_view_type self.node_id = node_id self.avatar_url = avatar_url self.gravatar_id = gravatar_id @@ -2151,13 +2158,13 @@ public enum Components { self.collaborators = collaborators self.two_factor_authentication = two_factor_authentication self.plan = plan - self.suspended_at = suspended_at self.business_plus = business_plus self.ldap_dn = ldap_dn } public enum CodingKeys: String, CodingKey { case login case id + case user_view_type case node_id case avatar_url case gravatar_id @@ -2196,7 +2203,6 @@ public enum Components { case collaborators case two_factor_authentication case plan - case suspended_at case business_plus case ldap_dn } @@ -3135,35 +3141,37 @@ public enum Operations { @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json`. @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/case1`. - case private_hyphen_user(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/case2`. - case public_hyphen_user(Components.Schemas.public_hyphen_user) + /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/private_hyphen_user`. + case _private(Components.Schemas.private_hyphen_user) + /// - Remark: Generated from `#/paths/user/GET/responses/200/content/json/public_hyphen_user`. + case _public(Components.Schemas.public_hyphen_user) + public enum CodingKeys: String, CodingKey { + case user_view_type + } public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self = .private_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - do { - self = .public_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - throw Swift.DecodingError.failedToDecodeOneOfSchema( - type: Self.self, - codingPath: decoder.codingPath, - errors: errors + let container = try decoder.container(keyedBy: CodingKeys.self) + let discriminator = try container.decode( + Swift.String.self, + forKey: .user_view_type ) + switch discriminator { + case "private": + self = ._private(try .init(from: decoder)) + case "public": + self = ._public(try .init(from: decoder)) + default: + throw Swift.DecodingError.unknownOneOfDiscriminator( + discriminatorKey: CodingKeys.user_view_type, + discriminatorValue: discriminator, + codingPath: decoder.codingPath + ) + } } public func encode(to encoder: any Encoder) throws { switch self { - case let .private_hyphen_user(value): + case let ._private(value): try value.encode(to: encoder) - case let .public_hyphen_user(value): + case let ._public(value): try value.encode(to: encoder) } } @@ -10625,35 +10633,37 @@ public enum Operations { @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json`. @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/case1`. - case private_hyphen_user(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/case2`. - case public_hyphen_user(Components.Schemas.public_hyphen_user) + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/private_hyphen_user`. + case _private(Components.Schemas.private_hyphen_user) + /// - Remark: Generated from `#/paths/user/{account_id}/GET/responses/200/content/json/public_hyphen_user`. + case _public(Components.Schemas.public_hyphen_user) + public enum CodingKeys: String, CodingKey { + case user_view_type + } public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self = .private_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - do { - self = .public_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - throw Swift.DecodingError.failedToDecodeOneOfSchema( - type: Self.self, - codingPath: decoder.codingPath, - errors: errors + let container = try decoder.container(keyedBy: CodingKeys.self) + let discriminator = try container.decode( + Swift.String.self, + forKey: .user_view_type ) + switch discriminator { + case "private": + self = ._private(try .init(from: decoder)) + case "public": + self = ._public(try .init(from: decoder)) + default: + throw Swift.DecodingError.unknownOneOfDiscriminator( + discriminatorKey: CodingKeys.user_view_type, + discriminatorValue: discriminator, + codingPath: decoder.codingPath + ) + } } public func encode(to encoder: any Encoder) throws { switch self { - case let .private_hyphen_user(value): + case let ._private(value): try value.encode(to: encoder) - case let .public_hyphen_user(value): + case let ._public(value): try value.encode(to: encoder) } } @@ -11004,35 +11014,37 @@ public enum Operations { @frozen public enum Body: Sendable, Hashable { /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json`. @frozen public enum jsonPayload: Codable, Hashable, Sendable { - /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/case1`. - case private_hyphen_user(Components.Schemas.private_hyphen_user) - /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/case2`. - case public_hyphen_user(Components.Schemas.public_hyphen_user) + /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/private_hyphen_user`. + case _private(Components.Schemas.private_hyphen_user) + /// - Remark: Generated from `#/paths/users/{username}/GET/responses/200/content/json/public_hyphen_user`. + case _public(Components.Schemas.public_hyphen_user) + public enum CodingKeys: String, CodingKey { + case user_view_type + } public init(from decoder: any Decoder) throws { - var errors: [any Error] = [] - do { - self = .private_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - do { - self = .public_hyphen_user(try .init(from: decoder)) - return - } catch { - errors.append(error) - } - throw Swift.DecodingError.failedToDecodeOneOfSchema( - type: Self.self, - codingPath: decoder.codingPath, - errors: errors + let container = try decoder.container(keyedBy: CodingKeys.self) + let discriminator = try container.decode( + Swift.String.self, + forKey: .user_view_type ) + switch discriminator { + case "private": + self = ._private(try .init(from: decoder)) + case "public": + self = ._public(try .init(from: decoder)) + default: + throw Swift.DecodingError.unknownOneOfDiscriminator( + discriminatorKey: CodingKeys.user_view_type, + discriminatorValue: discriminator, + codingPath: decoder.codingPath + ) + } } public func encode(to encoder: any Encoder) throws { switch self { - case let .private_hyphen_user(value): + case let ._private(value): try value.encode(to: encoder) - case let .public_hyphen_user(value): + case let ._public(value): try value.encode(to: encoder) } } diff --git a/Submodule/github/rest-api-description b/Submodule/github/rest-api-description index 5b32856c2a9..cf0948fb6fe 160000 --- a/Submodule/github/rest-api-description +++ b/Submodule/github/rest-api-description @@ -1 +1 @@ -Subproject commit 5b32856c2a9e0b8bf9ec957b5a7d46afa6e6d8f4 +Subproject commit cf0948fb6fe2d210da0d003466c82c3aea8783a7