Modern Apps git

← xtool.git

Add overlay

Commit
d335091cdce917d77f259d30aa6dace25a321b82
Author
Kabir Oberai <[email protected]>
When
2024-12-23 14:12 UTC (1 year ago)
Parents
68cb7bd

Diff

.gitignore
diff --git a/.gitignore b/.gitignoreindex 1031bca..81d9103 100644--- a/.gitignore+++ b/.gitignore@@ -10,4 +10,4 @@ DerivedData/ .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata .netrc -/openapi.json+/openapi
Makefile
diff --git a/Makefile b/Makefileindex b746444..1b4c0bd 100644--- a/Makefile+++ b/Makefile@@ -2,9 +2,9 @@ SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-c  .PHONY: api update-api -api: openapi.json+api: openapi/openapi.json 	swift run swift-openapi-generator generate \-		openapi.json \+		openapi/openapi.json \ 		--config Sources/DeveloperAPI/openapi-generator-config.yaml \ 		--output-directory Sources/DeveloperAPI/Generated 	for file in Sources/DeveloperAPI/Generated/*.swift; do \@@ -14,5 +14,9 @@ api: openapi.json update-api: 	@+$(MAKE) -B api -openapi.json:-	curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi.json+openapi/openapi.json: openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml+	npx bump-cli overlay openapi/base.json Sources/DeveloperAPI/openapi-overlay.yaml > openapi/openapi.json++openapi/base.json:+	@mkdir -p openapi+	curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi/base.json
Sources/DeveloperAPI/Generated/Client.swift
diff --git a/Sources/DeveloperAPI/Generated/Client.swift b/Sources/DeveloperAPI/Generated/Client.swiftindex babbb48..00cb9a1 100644--- a/Sources/DeveloperAPI/Generated/Client.swift+++ b/Sources/DeveloperAPI/Generated/Client.swift@@ -70,9 +70,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 201:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -82,7 +82,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdCapabilityResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -91,10 +91,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .created(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -113,10 +113,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -135,10 +135,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 422:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -157,10 +157,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 201:+                    return .forbidden(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Created.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -170,7 +170,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdCapabilityResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -179,10 +179,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .created(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.Conflict.Body+                    let body: Operations.BundleIdCapabilitiesCreateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -201,7 +201,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -249,9 +249,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -261,7 +261,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdCapabilityResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -270,10 +270,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -292,10 +292,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -314,10 +314,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -336,10 +336,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 422:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -358,10 +358,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 200:+                    return .notFound(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Ok.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -371,7 +371,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdCapabilityResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -380,10 +380,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.Conflict.Body+                    let body: Operations.BundleIdCapabilitiesUpdateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -402,7 +402,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -441,6 +441,8 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {+                case 204:+                    return .noContent(.init())                 case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)                     let body: Operations.BundleIdCapabilitiesDeleteInstance.Output.BadRequest.Body@@ -551,8 +553,6 @@ public struct DeveloperAPIClient: APIProtocol {                         preconditionFailure("bestContentType chose an invalid content type.")                     }                     return .conflict(.init(body: body))-                case 204:-                    return .noContent(.init())                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -687,9 +687,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetCollection.Output.BadRequest.Body+                    let body: Operations.BundleIdsGetCollection.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -699,7 +699,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdsResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -708,10 +708,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body+                    let body: Operations.BundleIdsGetCollection.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -730,10 +730,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetCollection.Output.Forbidden.Body+                    let body: Operations.BundleIdsGetCollection.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -752,10 +752,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 200:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetCollection.Output.Ok.Body+                    let body: Operations.BundleIdsGetCollection.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -765,7 +765,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdsResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -774,7 +774,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .forbidden(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -820,9 +820,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 201:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body+                    let body: Operations.BundleIdsCreateInstance.Output.Created.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -832,7 +832,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -841,10 +841,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .created(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body+                    let body: Operations.BundleIdsCreateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -863,10 +863,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body+                    let body: Operations.BundleIdsCreateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -885,10 +885,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 422:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body+                    let body: Operations.BundleIdsCreateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -907,10 +907,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 201:+                    return .forbidden(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.Created.Body+                    let body: Operations.BundleIdsCreateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -920,7 +920,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -929,10 +929,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .created(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsCreateInstance.Output.Conflict.Body+                    let body: Operations.BundleIdsCreateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -951,7 +951,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1039,9 +1039,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetInstance.Output.BadRequest.Body+                    let body: Operations.BundleIdsGetInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1051,7 +1051,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1060,10 +1060,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetInstance.Output.Unauthorized.Body+                    let body: Operations.BundleIdsGetInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1082,10 +1082,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetInstance.Output.Forbidden.Body+                    let body: Operations.BundleIdsGetInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1104,10 +1104,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetInstance.Output.NotFound.Body+                    let body: Operations.BundleIdsGetInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1126,10 +1126,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsGetInstance.Output.Ok.Body+                    let body: Operations.BundleIdsGetInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1139,7 +1139,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1148,7 +1148,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1196,9 +1196,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.BadRequest.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1208,7 +1208,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1217,10 +1217,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.Unauthorized.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1239,10 +1239,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.Forbidden.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1261,10 +1261,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.NotFound.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1283,10 +1283,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 422:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1305,10 +1305,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 200:+                    return .notFound(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.Ok.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1318,7 +1318,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1327,10 +1327,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsUpdateInstance.Output.Conflict.Body+                    let body: Operations.BundleIdsUpdateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1349,7 +1349,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1388,6 +1388,8 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {+                case 204:+                    return .noContent(.init())                 case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)                     let body: Operations.BundleIdsDeleteInstance.Output.BadRequest.Body@@ -1498,8 +1500,6 @@ public struct DeveloperAPIClient: APIProtocol {                         preconditionFailure("bestContentType chose an invalid content type.")                     }                     return .conflict(.init(body: body))-                case 204:-                    return .noContent(.init())                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1585,9 +1585,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetCollection.Output.BadRequest.Body+                    let body: Operations.CertificatesGetCollection.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1597,7 +1597,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.CertificatesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1606,10 +1606,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetCollection.Output.Unauthorized.Body+                    let body: Operations.CertificatesGetCollection.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1628,10 +1628,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetCollection.Output.Forbidden.Body+                    let body: Operations.CertificatesGetCollection.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1650,10 +1650,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 200:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetCollection.Output.Ok.Body+                    let body: Operations.CertificatesGetCollection.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1663,7 +1663,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.CertificatesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1672,7 +1672,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .forbidden(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1718,9 +1718,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 201:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.BadRequest.Body+                    let body: Operations.CertificatesCreateInstance.Output.Created.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1730,7 +1730,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.CertificateResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1739,10 +1739,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .created(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.Unauthorized.Body+                    let body: Operations.CertificatesCreateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1761,10 +1761,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.Forbidden.Body+                    let body: Operations.CertificatesCreateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1783,10 +1783,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 422:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body+                    let body: Operations.CertificatesCreateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1805,10 +1805,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 201:+                    return .forbidden(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.Created.Body+                    let body: Operations.CertificatesCreateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1818,7 +1818,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.CertificateResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1827,10 +1827,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .created(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesCreateInstance.Output.Conflict.Body+                    let body: Operations.CertificatesCreateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1849,7 +1849,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -1895,9 +1895,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetInstance.Output.BadRequest.Body+                    let body: Operations.CertificatesGetInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1907,7 +1907,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.CertificateResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -1916,10 +1916,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetInstance.Output.Unauthorized.Body+                    let body: Operations.CertificatesGetInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1938,10 +1938,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetInstance.Output.Forbidden.Body+                    let body: Operations.CertificatesGetInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1960,10 +1960,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetInstance.Output.NotFound.Body+                    let body: Operations.CertificatesGetInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1982,10 +1982,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.CertificatesGetInstance.Output.Ok.Body+                    let body: Operations.CertificatesGetInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -1995,7 +1995,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.CertificateResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2004,7 +2004,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2043,6 +2043,8 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {+                case 204:+                    return .noContent(.init())                 case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)                     let body: Operations.CertificatesDeleteInstance.Output.BadRequest.Body@@ -2153,8 +2155,6 @@ public struct DeveloperAPIClient: APIProtocol {                         preconditionFailure("bestContentType chose an invalid content type.")                     }                     return .conflict(.init(body: body))-                case 204:-                    return .noContent(.init())                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2247,9 +2247,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetCollection.Output.BadRequest.Body+                    let body: Operations.DevicesGetCollection.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2259,7 +2259,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.DevicesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2268,10 +2268,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetCollection.Output.Unauthorized.Body+                    let body: Operations.DevicesGetCollection.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2290,10 +2290,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetCollection.Output.Forbidden.Body+                    let body: Operations.DevicesGetCollection.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2312,10 +2312,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 200:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetCollection.Output.Ok.Body+                    let body: Operations.DevicesGetCollection.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2325,7 +2325,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.DevicesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2334,7 +2334,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .forbidden(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2380,9 +2380,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 201:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.BadRequest.Body+                    let body: Operations.DevicesCreateInstance.Output.Created.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2392,7 +2392,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.DeviceResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2401,10 +2401,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .created(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.Unauthorized.Body+                    let body: Operations.DevicesCreateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2423,10 +2423,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.Forbidden.Body+                    let body: Operations.DevicesCreateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2445,10 +2445,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 422:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body+                    let body: Operations.DevicesCreateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2467,10 +2467,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 201:+                    return .forbidden(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.Created.Body+                    let body: Operations.DevicesCreateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2480,7 +2480,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.DeviceResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2489,10 +2489,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .created(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesCreateInstance.Output.Conflict.Body+                    let body: Operations.DevicesCreateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2511,7 +2511,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2557,9 +2557,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetInstance.Output.BadRequest.Body+                    let body: Operations.DevicesGetInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2569,7 +2569,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.DeviceResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2578,10 +2578,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetInstance.Output.Unauthorized.Body+                    let body: Operations.DevicesGetInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2600,10 +2600,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetInstance.Output.Forbidden.Body+                    let body: Operations.DevicesGetInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2622,10 +2622,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetInstance.Output.NotFound.Body+                    let body: Operations.DevicesGetInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2644,10 +2644,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesGetInstance.Output.Ok.Body+                    let body: Operations.DevicesGetInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2657,7 +2657,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.DeviceResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2666,7 +2666,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2714,9 +2714,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.BadRequest.Body+                    let body: Operations.DevicesUpdateInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2726,7 +2726,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.DeviceResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2735,10 +2735,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.Unauthorized.Body+                    let body: Operations.DevicesUpdateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2757,10 +2757,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.Forbidden.Body+                    let body: Operations.DevicesUpdateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2779,10 +2779,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.NotFound.Body+                    let body: Operations.DevicesUpdateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2801,10 +2801,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 422:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body+                    let body: Operations.DevicesUpdateInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2823,10 +2823,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 200:+                    return .notFound(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.Ok.Body+                    let body: Operations.DevicesUpdateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2836,7 +2836,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.DeviceResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -2845,10 +2845,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.DevicesUpdateInstance.Output.Conflict.Body+                    let body: Operations.DevicesUpdateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -2867,7 +2867,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -2995,9 +2995,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetCollection.Output.BadRequest.Body+                    let body: Operations.ProfilesGetCollection.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3007,7 +3007,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.ProfilesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3016,10 +3016,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetCollection.Output.Unauthorized.Body+                    let body: Operations.ProfilesGetCollection.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3038,10 +3038,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetCollection.Output.Forbidden.Body+                    let body: Operations.ProfilesGetCollection.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3060,10 +3060,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 200:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetCollection.Output.Ok.Body+                    let body: Operations.ProfilesGetCollection.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3073,7 +3073,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ProfilesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3082,7 +3082,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .forbidden(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3128,9 +3128,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 201:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.BadRequest.Body+                    let body: Operations.ProfilesCreateInstance.Output.Created.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3140,7 +3140,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.ProfileResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3149,10 +3149,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .created(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.Unauthorized.Body+                    let body: Operations.ProfilesCreateInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3171,10 +3171,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.Forbidden.Body+                    let body: Operations.ProfilesCreateInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3193,10 +3193,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 422:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body+                    let body: Operations.ProfilesCreateInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3215,10 +3215,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unprocessableContent(.init(body: body))-                case 201:+                    return .forbidden(.init(body: body))+                case 409:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.Created.Body+                    let body: Operations.ProfilesCreateInstance.Output.Conflict.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3228,7 +3228,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ProfileResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3237,10 +3237,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .created(.init(body: body))-                case 409:+                    return .conflict(.init(body: body))+                case 422:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCreateInstance.Output.Conflict.Body+                    let body: Operations.ProfilesCreateInstance.Output.UnprocessableContent.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3259,7 +3259,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .conflict(.init(body: body))+                    return .unprocessableContent(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3347,9 +3347,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetInstance.Output.BadRequest.Body+                    let body: Operations.ProfilesGetInstance.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3359,7 +3359,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.ProfileResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3368,10 +3368,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetInstance.Output.Unauthorized.Body+                    let body: Operations.ProfilesGetInstance.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3390,10 +3390,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetInstance.Output.Forbidden.Body+                    let body: Operations.ProfilesGetInstance.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3412,10 +3412,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetInstance.Output.NotFound.Body+                    let body: Operations.ProfilesGetInstance.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3434,10 +3434,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesGetInstance.Output.Ok.Body+                    let body: Operations.ProfilesGetInstance.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3447,7 +3447,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ProfileResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3456,7 +3456,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3495,6 +3495,8 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {+                case 204:+                    return .noContent(.init())                 case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)                     let body: Operations.ProfilesDeleteInstance.Output.BadRequest.Body@@ -3605,8 +3607,6 @@ public struct DeveloperAPIClient: APIProtocol {                         preconditionFailure("bestContentType chose an invalid content type.")                     }                     return .conflict(.init(body: body))-                case 204:-                    return .noContent(.init())                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3652,9 +3652,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsAppGetToOneRelated.Output.BadRequest.Body+                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3664,7 +3664,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.AppWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3673,10 +3673,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Unauthorized.Body+                    let body: Operations.BundleIdsAppGetToOneRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3695,10 +3695,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Forbidden.Body+                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3717,10 +3717,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsAppGetToOneRelated.Output.NotFound.Body+                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3739,10 +3739,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsAppGetToOneRelated.Output.Ok.Body+                    let body: Operations.BundleIdsAppGetToOneRelated.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3752,7 +3752,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.AppWithoutIncludesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3761,7 +3761,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3814,9 +3814,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.BadRequest.Body+                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3826,7 +3826,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3835,10 +3835,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Unauthorized.Body+                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3857,10 +3857,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Forbidden.Body+                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3879,10 +3879,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.NotFound.Body+                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3901,10 +3901,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.Ok.Body+                    let body: Operations.BundleIdsBundleIdCapabilitiesGetToManyRelated.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3914,7 +3914,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3923,7 +3923,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -3976,9 +3976,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.BadRequest.Body+                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -3988,7 +3988,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.ProfilesWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -3997,10 +3997,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Unauthorized.Body+                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4019,10 +4019,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Forbidden.Body+                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4041,10 +4041,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.NotFound.Body+                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4063,10 +4063,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.Ok.Body+                    let body: Operations.BundleIdsProfilesGetToManyRelated.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4076,7 +4076,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ProfilesWithoutIncludesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4085,7 +4085,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -4131,9 +4131,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.BadRequest.Body+                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4143,7 +4143,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.BundleIdWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4152,10 +4152,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Unauthorized.Body+                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4174,10 +4174,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Forbidden.Body+                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4196,10 +4196,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.NotFound.Body+                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4218,10 +4218,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.Ok.Body+                    let body: Operations.ProfilesBundleIdGetToOneRelated.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4231,7 +4231,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.BundleIdWithoutIncludesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4240,7 +4240,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -4293,9 +4293,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.BadRequest.Body+                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4305,7 +4305,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.CertificatesWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4314,10 +4314,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Unauthorized.Body+                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4336,10 +4336,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Forbidden.Body+                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4358,10 +4358,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body: body))+                case 403:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.NotFound.Body+                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Forbidden.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4380,10 +4380,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .notFound(.init(body: body))-                case 200:+                    return .forbidden(.init(body: body))+                case 404:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.Ok.Body+                    let body: Operations.ProfilesCertificatesGetToManyRelated.Output.NotFound.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4393,7 +4393,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.CertificatesWithoutIncludesResponse.self,+                            Components.Schemas.ErrorResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4402,7 +4402,7 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .ok(.init(body: body))+                    return .notFound(.init(body: body))                 default:                     return .undocumented(                         statusCode: response.status.code,@@ -4455,9 +4455,9 @@ public struct DeveloperAPIClient: APIProtocol {             },             deserializer: { response, responseBody in                 switch response.status.code {-                case 400:+                case 200:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.BadRequest.Body+                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.Ok.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4467,7 +4467,7 @@ public struct DeveloperAPIClient: APIProtocol {                     switch chosenContentType {                     case "application/json":                         body = try await converter.getResponseBodyAsJSON(-                            Components.Schemas.ErrorResponse.self,+                            Components.Schemas.DevicesWithoutIncludesResponse.self,                             from: responseBody,                             transforming: { value in                                 .json(value)@@ -4476,10 +4476,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .badRequest(.init(body: body))-                case 401:+                    return .ok(.init(body: body))+                case 400:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.Unauthorized.Body+                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.BadRequest.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4498,10 +4498,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .unauthorized(.init(body: body))-                case 403:+                    return .badRequest(.init(body: body))+                case 401:                     let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)-                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.Forbidden.Body+                    let body: Operations.ProfilesDevicesGetToManyRelated.Output.Unauthorized.Body                     let chosenContentType = try converter.bestContentType(                         received: contentType,                         options: [@@ -4520,10 +4520,10 @@ public struct DeveloperAPIClient: APIProtocol {                     default:                         preconditionFailure("bestContentType chose an invalid content type.")                     }-                    return .forbidden(.init(body: body))-                case 404:+                    return .unauthorized(.init(body

Diff truncated.