@@ -601,6 +601,13 @@ public struct Client: APIProtocol {
601601 name: "rule_suite_result",
602602 value: input.query.ruleSuiteResult
603603 )
604+ try converter.setQueryItemAsURI(
605+ in: &request,
606+ style: .form,
607+ explode: true,
608+ name: "evaluate_status",
609+ value: input.query.evaluateStatus
610+ )
604611 try converter.setQueryItemAsURI(
605612 in: &request,
606613 style: .form,
@@ -11149,6 +11156,115 @@ public struct Client: APIProtocol {
1114911156 }
1115011157 )
1115111158 }
11159+ /// Get the hash algorithm for a repository
11160+ ///
11161+ /// Returns the hash algorithm used to store repository objects.
11162+ ///
11163+ /// - Remark: HTTP `GET /repos/{owner}/{repo}/hash-algorithm`.
11164+ /// - Remark: Generated from `#/paths//repos/{owner}/{repo}/hash-algorithm/get(repos/get-hash-algorithm)`.
11165+ public func reposGetHashAlgorithm(_ input: Operations.ReposGetHashAlgorithm.Input) async throws -> Operations.ReposGetHashAlgorithm.Output {
11166+ try await client.send(
11167+ input: input,
11168+ forOperation: Operations.ReposGetHashAlgorithm.id,
11169+ serializer: { input in
11170+ let path = try converter.renderedPath(
11171+ template: "/repos/{}/{}/hash-algorithm",
11172+ parameters: [
11173+ input.path.owner,
11174+ input.path.repo
11175+ ]
11176+ )
11177+ var request: HTTPTypes.HTTPRequest = .init(
11178+ soar_path: path,
11179+ method: .get
11180+ )
11181+ suppressMutabilityWarning(&request)
11182+ converter.setAcceptHeader(
11183+ in: &request.headerFields,
11184+ contentTypes: input.headers.accept
11185+ )
11186+ return (request, nil)
11187+ },
11188+ deserializer: { response, responseBody in
11189+ switch response.status.code {
11190+ case 200:
11191+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
11192+ let body: Operations.ReposGetHashAlgorithm.Output.Ok.Body
11193+ let chosenContentType = try converter.bestContentType(
11194+ received: contentType,
11195+ options: [
11196+ "application/json"
11197+ ]
11198+ )
11199+ switch chosenContentType {
11200+ case "application/json":
11201+ body = try await converter.getResponseBodyAsJSON(
11202+ Components.Schemas.RepositoryHashAlgorithm.self,
11203+ from: responseBody,
11204+ transforming: { value in
11205+ .json(value)
11206+ }
11207+ )
11208+ default:
11209+ preconditionFailure("bestContentType chose an invalid content type.")
11210+ }
11211+ return .ok(.init(body: body))
11212+ case 403:
11213+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
11214+ let body: Components.Responses.Forbidden.Body
11215+ let chosenContentType = try converter.bestContentType(
11216+ received: contentType,
11217+ options: [
11218+ "application/json"
11219+ ]
11220+ )
11221+ switch chosenContentType {
11222+ case "application/json":
11223+ body = try await converter.getResponseBodyAsJSON(
11224+ Components.Schemas.BasicError.self,
11225+ from: responseBody,
11226+ transforming: { value in
11227+ .json(value)
11228+ }
11229+ )
11230+ default:
11231+ preconditionFailure("bestContentType chose an invalid content type.")
11232+ }
11233+ return .forbidden(.init(body: body))
11234+ case 404:
11235+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)
11236+ let body: Components.Responses.NotFound.Body
11237+ let chosenContentType = try converter.bestContentType(
11238+ received: contentType,
11239+ options: [
11240+ "application/json"
11241+ ]
11242+ )
11243+ switch chosenContentType {
11244+ case "application/json":
11245+ body = try await converter.getResponseBodyAsJSON(
11246+ Components.Schemas.BasicError.self,
11247+ from: responseBody,
11248+ transforming: { value in
11249+ .json(value)
11250+ }
11251+ )
11252+ default:
11253+ preconditionFailure("bestContentType chose an invalid content type.")
11254+ }
11255+ return .notFound(.init(body: body))
11256+ default:
11257+ return .undocumented(
11258+ statusCode: response.status.code,
11259+ .init(
11260+ headerFields: response.headerFields,
11261+ body: responseBody
11262+ )
11263+ )
11264+ }
11265+ }
11266+ )
11267+ }
1115211268 /// List repository webhooks
1115311269 ///
1115411270 /// Lists webhooks for a repository. `last response` may return null if there have not been any deliveries within 30 days.
@@ -16856,6 +16972,13 @@ public struct Client: APIProtocol {
1685616972 name: "rule_suite_result",
1685716973 value: input.query.ruleSuiteResult
1685816974 )
16975+ try converter.setQueryItemAsURI(
16976+ in: &request,
16977+ style: .form,
16978+ explode: true,
16979+ name: "evaluate_status",
16980+ value: input.query.evaluateStatus
16981+ )
1685916982 try converter.setQueryItemAsURI(
1686016983 in: &request,
1686116984 style: .form,
0 commit comments