Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.
Use ASC OpenAPI spec
Kabir Oberai7672b611f56a
diff --git a/.gitignore b/.gitignoreindex fcf478c..1031bca 100644--- a/.gitignore+++ b/.gitignore@@ -9,3 +9,5 @@ DerivedData/.swiftpm/configuration/registries.json.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata.netrc++/openapi.jsondiff --git a/Makefile b/Makefilenew file mode 100644index 0000000..b746444--- /dev/null+++ b/Makefile@@ -0,0 +1,18 @@+SPEC_URL = https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip++.PHONY: api update-api++api: openapi.json+ swift run swift-openapi-generator generate \+ openapi.json \+ --config Sources/DeveloperAPI/openapi-generator-config.yaml \+ --output-directory Sources/DeveloperAPI/Generated+ for file in Sources/DeveloperAPI/Generated/*.swift; do \+ sed -i '' -e 's/[[:<:]]Client[[:>:]]/DeveloperAPIClient/g' $$file; \+ done++update-api:+ @+$(MAKE) -B api++openapi.json:+ curl -fsSL "$(SPEC_URL)" | bsdtar -xOf- > openapi.jsondiff --git a/Package.resolved b/Package.resolvedindex 37f39e5..03127a3 100644--- a/Package.resolved+++ b/Package.resolved@@ -1,5 +1,5 @@{- "originHash" : "3ecc8ef518ebe5b230ad4f24ebf6cc8d0ac4194ce4281a4b596f65355978fe83",+ "originHash" : "093c707d9a59dbc3862fcc4682cd2a725695bec85446dcc453245f6ec0363481","pins" : [{"identity" : "aexml",@@ -37,6 +37,15 @@"version" : "4.2.0"}},+ {+ "identity" : "openapikit",+ "kind" : "remoteSourceControl",+ "location" : "https://github.com/mattpolzin/OpenAPIKit",+ "state" : {+ "revision" : "5b5ee49624dda5b3e3b85aff184f44a007862fb7",+ "version" : "3.3.0"+ }+ },{"identity" : "pathkit","kind" : "remoteSourceControl",@@ -217,6 +226,42 @@"version" : "1.0.2"}},+ {+ "identity" : "swift-openapi-async-http-client",+ "kind" : "remoteSourceControl",+ "location" : "https://github.com/swift-server/swift-openapi-async-http-client",+ "state" : {+ "revision" : "abfe558a66992ef1e896a577010f957915f30591",+ "version" : "1.0.0"+ }+ },+ {+ "identity" : "swift-openapi-generator",+ "kind" : "remoteSourceControl",+ "location" : "https://github.com/apple/swift-openapi-generator",+ "state" : {+ "revision" : "e971af5c5374e4ea83c20d0ad0a0df2cc84d39ad",+ "version" : "1.5.0"+ }+ },+ {+ "identity" : "swift-openapi-runtime",+ "kind" : "remoteSourceControl",+ "location" : "https://github.com/apple/swift-openapi-runtime",+ "state" : {+ "revision" : "5e119a3d52dde0229312ed586be99c666c6b6f64",+ "version" : "1.7.0"+ }+ },+ {+ "identity" : "swift-openapi-urlsession",+ "kind" : "remoteSourceControl",+ "location" : "https://github.com/apple/swift-openapi-urlsession",+ "state" : {+ "revision" : "9bf4c712ad7989d6a91dbe68748b8829a50837e4",+ "version" : "1.0.2"+ }+ },{"identity" : "swift-system","kind" : "remoteSourceControl",diff --git a/Package.swift b/Package.swiftindex f17e27e..743292a 100644--- a/Package.swift+++ b/Package.swift@@ -38,6 +38,11 @@ let package = Package(.package(url: "https://github.com/apple/swift-argument-parser", from: "1.5.0"),.package(url: "https://github.com/attaswift/BigInt", from: "5.5.0"),.package(url: "https://github.com/pointfreeco/swift-concurrency-extras", from: "1.3.0"),++ .package(url: "https://github.com/apple/swift-openapi-generator", from: "1.0.0"),+ .package(url: "https://github.com/apple/swift-openapi-runtime", from: "1.0.0"),+ .package(url: "https://github.com/apple/swift-openapi-urlsession", from: "1.0.0"),+ .package(url: "https://github.com/swift-server/swift-openapi-async-http-client", from: "1.0.0"),],targets: [.systemLibrary(name: "CSupersette"),@@ -48,9 +53,17 @@ let package = Package(],cSettings: cSettings),+ .target(+ name: "DeveloperAPI",+ dependencies: [+ .product(name: "OpenAPIRuntime", package: "swift-openapi-runtime"),+ ],+ exclude: ["openapi-generator-config.yaml"]+ ),.target(name: "Supersign",dependencies: [+ "DeveloperAPI","CSupersign",.byName(name: "CSupersette", condition: .when(platforms: [.linux])),.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),@@ -63,6 +76,12 @@ let package = Package(.product(name: "_CryptoExtras", package: "swift-crypto"),.product(name: "X509", package: "swift-certificates"),.product(name: "BigInt", package: "BigInt"),+ .product(name: "OpenAPIURLSession", package: "swift-openapi-urlsession"),+ .product(+ name: "OpenAPIAsyncHTTPClient",+ package: "swift-openapi-async-http-client",+ condition: .when(platforms: [.linux])+ ),.product(name: "AsyncHTTPClient",package: "async-http-client",diff --git a/Sources/DeveloperAPI/Generated/Client.swift b/Sources/DeveloperAPI/Generated/Client.swiftnew file mode 100644index 0000000..fa22b88--- /dev/null+++ b/Sources/DeveloperAPI/Generated/Client.swift@@ -0,0 +1,4580 @@+// Generated by swift-openapi-generator, do not modify.+@_spi(Generated) import OpenAPIRuntime+#if os(Linux)+@preconcurrency import struct Foundation.URL+@preconcurrency import struct Foundation.Data+@preconcurrency import struct Foundation.Date+#else+import struct Foundation.URL+import struct Foundation.Data+import struct Foundation.Date+#endif+import HTTPTypes+public struct DeveloperAPIClient: APIProtocol {+ /// The underlying HTTP client.+ private let client: UniversalClient+ /// Creates a new client.+ /// - Parameters:+ /// - serverURL: The server URL that the client connects to. Any server+ /// URLs defined in the OpenAPI document are available as static methods+ /// on the ``Servers`` type.+ /// - configuration: A set of configuration values for the client.+ /// - transport: A transport that performs HTTP operations.+ /// - middlewares: A list of middlewares to call before the transport.+ public init(+ serverURL: Foundation.URL,+ configuration: Configuration = .init(),+ transport: any ClientTransport,+ middlewares: [any ClientMiddleware] = []+ ) {+ self.client = .init(+ serverURL: serverURL,+ configuration: configuration,+ transport: transport,+ middlewares: middlewares+ )+ }+ private var converter: Converter {+ client.converter+ }+ /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.+ public func bundleIdCapabilities_createInstance(_ input: Operations.bundleIdCapabilities_createInstance.Input) async throws -> Operations.bundleIdCapabilities_createInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIdCapabilities_createInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIdCapabilities",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .post+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 201:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.Created.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdCapabilityResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .created(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_createInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.+ public func bundleIdCapabilities_updateInstance(_ input: Operations.bundleIdCapabilities_updateInstance.Input) async throws -> Operations.bundleIdCapabilities_updateInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIdCapabilities_updateInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIdCapabilities/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .patch+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdCapabilityResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_updateInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.+ public func bundleIdCapabilities_deleteInstance(_ input: Operations.bundleIdCapabilities_deleteInstance.Input) async throws -> Operations.bundleIdCapabilities_deleteInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIdCapabilities_deleteInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIdCapabilities/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .delete+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_deleteInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_deleteInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_deleteInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_deleteInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIdCapabilities_deleteInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ case 204:+ return .noContent(.init())+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.+ public func bundleIds_getCollection(_ input: Operations.bundleIds_getCollection.Input) async throws -> Operations.bundleIds_getCollection.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_getCollection.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[name]",+ value: input.query.filter_lbrack_name_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[platform]",+ value: input.query.filter_lbrack_platform_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[identifier]",+ value: input.query.filter_lbrack_identifier_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[seedId]",+ value: input.query.filter_lbrack_seedId_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[id]",+ value: input.query.filter_lbrack_id_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "sort",+ value: input.query.sort+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIds]",+ value: input.query.fields_lbrack_bundleIds_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[profiles]",+ value: input.query.fields_lbrack_profiles_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIdCapabilities]",+ value: input.query.fields_lbrack_bundleIdCapabilities_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[apps]",+ value: input.query.fields_lbrack_apps_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "include",+ value: input.query.include+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[bundleIdCapabilities]",+ value: input.query.limit_lbrack_bundleIdCapabilities_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[profiles]",+ value: input.query.limit_lbrack_profiles_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getCollection.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getCollection.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getCollection.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getCollection.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdsResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `POST /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.+ public func bundleIds_createInstance(_ input: Operations.bundleIds_createInstance.Input) async throws -> Operations.bundleIds_createInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_createInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .post+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 201:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.Created.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .created(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_createInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.+ public func bundleIds_getInstance(_ input: Operations.bundleIds_getInstance.Input) async throws -> Operations.bundleIds_getInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_getInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIds]",+ value: input.query.fields_lbrack_bundleIds_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[profiles]",+ value: input.query.fields_lbrack_profiles_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIdCapabilities]",+ value: input.query.fields_lbrack_bundleIdCapabilities_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[apps]",+ value: input.query.fields_lbrack_apps_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "include",+ value: input.query.include+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[bundleIdCapabilities]",+ value: input.query.limit_lbrack_bundleIdCapabilities_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[profiles]",+ value: input.query.limit_lbrack_profiles_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_getInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.+ public func bundleIds_updateInstance(_ input: Operations.bundleIds_updateInstance.Input) async throws -> Operations.bundleIds_updateInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_updateInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .patch+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_updateInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.+ public func bundleIds_deleteInstance(_ input: Operations.bundleIds_deleteInstance.Input) async throws -> Operations.bundleIds_deleteInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_deleteInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .delete+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_deleteInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_deleteInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_deleteInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_deleteInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_deleteInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ case 204:+ return .noContent(.init())+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.+ public func certificates_getCollection(_ input: Operations.certificates_getCollection.Input) async throws -> Operations.certificates_getCollection.Output {+ try await client.send(+ input: input,+ forOperation: Operations.certificates_getCollection.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/certificates",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[displayName]",+ value: input.query.filter_lbrack_displayName_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[certificateType]",+ value: input.query.filter_lbrack_certificateType_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[serialNumber]",+ value: input.query.filter_lbrack_serialNumber_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[id]",+ value: input.query.filter_lbrack_id_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "sort",+ value: input.query.sort+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[certificates]",+ value: input.query.fields_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getCollection.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getCollection.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getCollection.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getCollection.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.CertificatesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `POST /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.+ public func certificates_createInstance(_ input: Operations.certificates_createInstance.Input) async throws -> Operations.certificates_createInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.certificates_createInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/certificates",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .post+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 201:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.Created.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.CertificateResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .created(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_createInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.+ public func certificates_getInstance(_ input: Operations.certificates_getInstance.Input) async throws -> Operations.certificates_getInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.certificates_getInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/certificates/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[certificates]",+ value: input.query.fields_lbrack_certificates_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_getInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.CertificateResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `DELETE /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.+ public func certificates_deleteInstance(_ input: Operations.certificates_deleteInstance.Input) async throws -> Operations.certificates_deleteInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.certificates_deleteInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/certificates/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .delete+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_deleteInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_deleteInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_deleteInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_deleteInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.certificates_deleteInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ case 204:+ return .noContent(.init())+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.+ public func devices_getCollection(_ input: Operations.devices_getCollection.Input) async throws -> Operations.devices_getCollection.Output {+ try await client.send(+ input: input,+ forOperation: Operations.devices_getCollection.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/devices",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[name]",+ value: input.query.filter_lbrack_name_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[platform]",+ value: input.query.filter_lbrack_platform_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[udid]",+ value: input.query.filter_lbrack_udid_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[status]",+ value: input.query.filter_lbrack_status_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[id]",+ value: input.query.filter_lbrack_id_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "sort",+ value: input.query.sort+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[devices]",+ value: input.query.fields_lbrack_devices_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getCollection.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getCollection.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getCollection.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getCollection.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.DevicesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `POST /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.+ public func devices_createInstance(_ input: Operations.devices_createInstance.Input) async throws -> Operations.devices_createInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.devices_createInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/devices",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .post+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 201:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.Created.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.DeviceResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .created(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_createInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.+ public func devices_getInstance(_ input: Operations.devices_getInstance.Input) async throws -> Operations.devices_getInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.devices_getInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/devices/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[devices]",+ value: input.query.fields_lbrack_devices_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_getInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.DeviceResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `PATCH /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.+ public func devices_updateInstance(_ input: Operations.devices_updateInstance.Input) async throws -> Operations.devices_updateInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.devices_updateInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/devices/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .patch+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.DeviceResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.devices_updateInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.+ public func profiles_getCollection(_ input: Operations.profiles_getCollection.Input) async throws -> Operations.profiles_getCollection.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_getCollection.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[name]",+ value: input.query.filter_lbrack_name_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[profileType]",+ value: input.query.filter_lbrack_profileType_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[profileState]",+ value: input.query.filter_lbrack_profileState_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "filter[id]",+ value: input.query.filter_lbrack_id_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "sort",+ value: input.query.sort+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[profiles]",+ value: input.query.fields_lbrack_profiles_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIds]",+ value: input.query.fields_lbrack_bundleIds_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[devices]",+ value: input.query.fields_lbrack_devices_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[certificates]",+ value: input.query.fields_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "include",+ value: input.query.include+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[certificates]",+ value: input.query.limit_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[devices]",+ value: input.query.limit_lbrack_devices_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getCollection.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getCollection.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getCollection.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getCollection.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ProfilesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `POST /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.+ public func profiles_createInstance(_ input: Operations.profiles_createInstance.Input) async throws -> Operations.profiles_createInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_createInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles",+ parameters: []+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .post+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ let body: OpenAPIRuntime.HTTPBody?+ switch input.body {+ case let .json(value):+ body = try converter.setRequiredRequestBodyAsJSON(+ value,+ headerFields: &request.headerFields,+ contentType: "application/json; charset=utf-8"+ )+ }+ return (request, body)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 422:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.UnprocessableContent.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unprocessableContent(.init(body: body))+ case 201:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.Created.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ProfileResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .created(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_createInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.+ public func profiles_getInstance(_ input: Operations.profiles_getInstance.Input) async throws -> Operations.profiles_getInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_getInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[profiles]",+ value: input.query.fields_lbrack_profiles_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIds]",+ value: input.query.fields_lbrack_bundleIds_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[devices]",+ value: input.query.fields_lbrack_devices_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[certificates]",+ value: input.query.fields_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "include",+ value: input.query.include+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[certificates]",+ value: input.query.limit_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit[devices]",+ value: input.query.limit_lbrack_devices_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_getInstance.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ProfileResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `DELETE /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.+ public func profiles_deleteInstance(_ input: Operations.profiles_deleteInstance.Input) async throws -> Operations.profiles_deleteInstance.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_deleteInstance.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles/{}",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .delete+ )+ suppressMutabilityWarning(&request)+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_deleteInstance.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_deleteInstance.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_deleteInstance.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_deleteInstance.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 409:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_deleteInstance.Output.Conflict.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .conflict(.init(body: body))+ case 204:+ return .noContent(.init())+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.+ public func bundleIds_app_getToOneRelated(_ input: Operations.bundleIds_app_getToOneRelated.Input) async throws -> Operations.bundleIds_app_getToOneRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_app_getToOneRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}/app",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[apps]",+ value: input.query.fields_lbrack_apps_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_app_getToOneRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_app_getToOneRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_app_getToOneRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_app_getToOneRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_app_getToOneRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.AppWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.+ public func bundleIds_bundleIdCapabilities_getToManyRelated(_ input: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input) async throws -> Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}/bundleIdCapabilities",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIdCapabilities]",+ value: input.query.fields_lbrack_bundleIdCapabilities_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.+ public func bundleIds_profiles_getToManyRelated(_ input: Operations.bundleIds_profiles_getToManyRelated.Input) async throws -> Operations.bundleIds_profiles_getToManyRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.bundleIds_profiles_getToManyRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/bundleIds/{}/profiles",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[profiles]",+ value: input.query.fields_lbrack_profiles_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_profiles_getToManyRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_profiles_getToManyRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_profiles_getToManyRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_profiles_getToManyRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.bundleIds_profiles_getToManyRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ProfilesWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.+ public func profiles_bundleId_getToOneRelated(_ input: Operations.profiles_bundleId_getToOneRelated.Input) async throws -> Operations.profiles_bundleId_getToOneRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_bundleId_getToOneRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles/{}/bundleId",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[bundleIds]",+ value: input.query.fields_lbrack_bundleIds_rbrack_+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_bundleId_getToOneRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_bundleId_getToOneRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_bundleId_getToOneRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_bundleId_getToOneRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_bundleId_getToOneRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.BundleIdWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.+ public func profiles_certificates_getToManyRelated(_ input: Operations.profiles_certificates_getToManyRelated.Input) async throws -> Operations.profiles_certificates_getToManyRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_certificates_getToManyRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles/{}/certificates",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[certificates]",+ value: input.query.fields_lbrack_certificates_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_certificates_getToManyRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_certificates_getToManyRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_certificates_getToManyRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_certificates_getToManyRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_certificates_getToManyRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.CertificatesWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.+ public func profiles_devices_getToManyRelated(_ input: Operations.profiles_devices_getToManyRelated.Input) async throws -> Operations.profiles_devices_getToManyRelated.Output {+ try await client.send(+ input: input,+ forOperation: Operations.profiles_devices_getToManyRelated.id,+ serializer: { input in+ let path = try converter.renderedPath(+ template: "/v1/profiles/{}/devices",+ parameters: [+ input.path.id+ ]+ )+ var request: HTTPTypes.HTTPRequest = .init(+ soar_path: path,+ method: .get+ )+ suppressMutabilityWarning(&request)+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: false,+ name: "fields[devices]",+ value: input.query.fields_lbrack_devices_rbrack_+ )+ try converter.setQueryItemAsURI(+ in: &request,+ style: .form,+ explode: true,+ name: "limit",+ value: input.query.limit+ )+ converter.setAcceptHeader(+ in: &request.headerFields,+ contentTypes: input.headers.accept+ )+ return (request, nil)+ },+ deserializer: { response, responseBody in+ switch response.status.code {+ case 400:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_devices_getToManyRelated.Output.BadRequest.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .badRequest(.init(body: body))+ case 401:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_devices_getToManyRelated.Output.Unauthorized.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .unauthorized(.init(body: body))+ case 403:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_devices_getToManyRelated.Output.Forbidden.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .forbidden(.init(body: body))+ case 404:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_devices_getToManyRelated.Output.NotFound.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.ErrorResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .notFound(.init(body: body))+ case 200:+ let contentType = converter.extractContentTypeIfPresent(in: response.headerFields)+ let body: Operations.profiles_devices_getToManyRelated.Output.Ok.Body+ let chosenContentType = try converter.bestContentType(+ received: contentType,+ options: [+ "application/json"+ ]+ )+ switch chosenContentType {+ case "application/json":+ body = try await converter.getResponseBodyAsJSON(+ Components.Schemas.DevicesWithoutIncludesResponse.self,+ from: responseBody,+ transforming: { value in+ .json(value)+ }+ )+ default:+ preconditionFailure("bestContentType chose an invalid content type.")+ }+ return .ok(.init(body: body))+ default:+ return .undocumented(+ statusCode: response.status.code,+ .init(+ headerFields: response.headerFields,+ body: responseBody+ )+ )+ }+ }+ )+ }+}diff --git a/Sources/DeveloperAPI/Generated/Types.swift b/Sources/DeveloperAPI/Generated/Types.swiftnew file mode 100644index 0000000..8684647--- /dev/null+++ b/Sources/DeveloperAPI/Generated/Types.swift@@ -0,0 +1,15287 @@+// Generated by swift-openapi-generator, do not modify.+@_spi(Generated) import OpenAPIRuntime+#if os(Linux)+@preconcurrency import struct Foundation.URL+@preconcurrency import struct Foundation.Data+@preconcurrency import struct Foundation.Date+#else+import struct Foundation.URL+import struct Foundation.Data+import struct Foundation.Date+#endif+/// A type that performs HTTP operations defined by the OpenAPI document.+public protocol APIProtocol: Sendable {+ /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.+ func bundleIdCapabilities_createInstance(_ input: Operations.bundleIdCapabilities_createInstance.Input) async throws -> Operations.bundleIdCapabilities_createInstance.Output+ /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.+ func bundleIdCapabilities_updateInstance(_ input: Operations.bundleIdCapabilities_updateInstance.Input) async throws -> Operations.bundleIdCapabilities_updateInstance.Output+ /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.+ func bundleIdCapabilities_deleteInstance(_ input: Operations.bundleIdCapabilities_deleteInstance.Input) async throws -> Operations.bundleIdCapabilities_deleteInstance.Output+ /// - Remark: HTTP `GET /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.+ func bundleIds_getCollection(_ input: Operations.bundleIds_getCollection.Input) async throws -> Operations.bundleIds_getCollection.Output+ /// - Remark: HTTP `POST /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.+ func bundleIds_createInstance(_ input: Operations.bundleIds_createInstance.Input) async throws -> Operations.bundleIds_createInstance.Output+ /// - Remark: HTTP `GET /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.+ func bundleIds_getInstance(_ input: Operations.bundleIds_getInstance.Input) async throws -> Operations.bundleIds_getInstance.Output+ /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.+ func bundleIds_updateInstance(_ input: Operations.bundleIds_updateInstance.Input) async throws -> Operations.bundleIds_updateInstance.Output+ /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.+ func bundleIds_deleteInstance(_ input: Operations.bundleIds_deleteInstance.Input) async throws -> Operations.bundleIds_deleteInstance.Output+ /// - Remark: HTTP `GET /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.+ func certificates_getCollection(_ input: Operations.certificates_getCollection.Input) async throws -> Operations.certificates_getCollection.Output+ /// - Remark: HTTP `POST /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.+ func certificates_createInstance(_ input: Operations.certificates_createInstance.Input) async throws -> Operations.certificates_createInstance.Output+ /// - Remark: HTTP `GET /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.+ func certificates_getInstance(_ input: Operations.certificates_getInstance.Input) async throws -> Operations.certificates_getInstance.Output+ /// - Remark: HTTP `DELETE /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.+ func certificates_deleteInstance(_ input: Operations.certificates_deleteInstance.Input) async throws -> Operations.certificates_deleteInstance.Output+ /// - Remark: HTTP `GET /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.+ func devices_getCollection(_ input: Operations.devices_getCollection.Input) async throws -> Operations.devices_getCollection.Output+ /// - Remark: HTTP `POST /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.+ func devices_createInstance(_ input: Operations.devices_createInstance.Input) async throws -> Operations.devices_createInstance.Output+ /// - Remark: HTTP `GET /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.+ func devices_getInstance(_ input: Operations.devices_getInstance.Input) async throws -> Operations.devices_getInstance.Output+ /// - Remark: HTTP `PATCH /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.+ func devices_updateInstance(_ input: Operations.devices_updateInstance.Input) async throws -> Operations.devices_updateInstance.Output+ /// - Remark: HTTP `GET /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.+ func profiles_getCollection(_ input: Operations.profiles_getCollection.Input) async throws -> Operations.profiles_getCollection.Output+ /// - Remark: HTTP `POST /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.+ func profiles_createInstance(_ input: Operations.profiles_createInstance.Input) async throws -> Operations.profiles_createInstance.Output+ /// - Remark: HTTP `GET /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.+ func profiles_getInstance(_ input: Operations.profiles_getInstance.Input) async throws -> Operations.profiles_getInstance.Output+ /// - Remark: HTTP `DELETE /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.+ func profiles_deleteInstance(_ input: Operations.profiles_deleteInstance.Input) async throws -> Operations.profiles_deleteInstance.Output+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.+ func bundleIds_app_getToOneRelated(_ input: Operations.bundleIds_app_getToOneRelated.Input) async throws -> Operations.bundleIds_app_getToOneRelated.Output+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.+ func bundleIds_bundleIdCapabilities_getToManyRelated(_ input: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input) async throws -> Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.+ func bundleIds_profiles_getToManyRelated(_ input: Operations.bundleIds_profiles_getToManyRelated.Input) async throws -> Operations.bundleIds_profiles_getToManyRelated.Output+ /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.+ func profiles_bundleId_getToOneRelated(_ input: Operations.profiles_bundleId_getToOneRelated.Input) async throws -> Operations.profiles_bundleId_getToOneRelated.Output+ /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.+ func profiles_certificates_getToManyRelated(_ input: Operations.profiles_certificates_getToManyRelated.Input) async throws -> Operations.profiles_certificates_getToManyRelated.Output+ /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.+ func profiles_devices_getToManyRelated(_ input: Operations.profiles_devices_getToManyRelated.Input) async throws -> Operations.profiles_devices_getToManyRelated.Output+}++/// Convenience overloads for operation inputs.+extension APIProtocol {+ /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.+ public func bundleIdCapabilities_createInstance(+ headers: Operations.bundleIdCapabilities_createInstance.Input.Headers = .init(),+ body: Operations.bundleIdCapabilities_createInstance.Input.Body+ ) async throws -> Operations.bundleIdCapabilities_createInstance.Output {+ try await bundleIdCapabilities_createInstance(Operations.bundleIdCapabilities_createInstance.Input(+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.+ public func bundleIdCapabilities_updateInstance(+ path: Operations.bundleIdCapabilities_updateInstance.Input.Path,+ headers: Operations.bundleIdCapabilities_updateInstance.Input.Headers = .init(),+ body: Operations.bundleIdCapabilities_updateInstance.Input.Body+ ) async throws -> Operations.bundleIdCapabilities_updateInstance.Output {+ try await bundleIdCapabilities_updateInstance(Operations.bundleIdCapabilities_updateInstance.Input(+ path: path,+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.+ public func bundleIdCapabilities_deleteInstance(+ path: Operations.bundleIdCapabilities_deleteInstance.Input.Path,+ headers: Operations.bundleIdCapabilities_deleteInstance.Input.Headers = .init()+ ) async throws -> Operations.bundleIdCapabilities_deleteInstance.Output {+ try await bundleIdCapabilities_deleteInstance(Operations.bundleIdCapabilities_deleteInstance.Input(+ path: path,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.+ public func bundleIds_getCollection(+ query: Operations.bundleIds_getCollection.Input.Query = .init(),+ headers: Operations.bundleIds_getCollection.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_getCollection.Output {+ try await bundleIds_getCollection(Operations.bundleIds_getCollection.Input(+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `POST /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.+ public func bundleIds_createInstance(+ headers: Operations.bundleIds_createInstance.Input.Headers = .init(),+ body: Operations.bundleIds_createInstance.Input.Body+ ) async throws -> Operations.bundleIds_createInstance.Output {+ try await bundleIds_createInstance(Operations.bundleIds_createInstance.Input(+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.+ public func bundleIds_getInstance(+ path: Operations.bundleIds_getInstance.Input.Path,+ query: Operations.bundleIds_getInstance.Input.Query = .init(),+ headers: Operations.bundleIds_getInstance.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_getInstance.Output {+ try await bundleIds_getInstance(Operations.bundleIds_getInstance.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.+ public func bundleIds_updateInstance(+ path: Operations.bundleIds_updateInstance.Input.Path,+ headers: Operations.bundleIds_updateInstance.Input.Headers = .init(),+ body: Operations.bundleIds_updateInstance.Input.Body+ ) async throws -> Operations.bundleIds_updateInstance.Output {+ try await bundleIds_updateInstance(Operations.bundleIds_updateInstance.Input(+ path: path,+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.+ public func bundleIds_deleteInstance(+ path: Operations.bundleIds_deleteInstance.Input.Path,+ headers: Operations.bundleIds_deleteInstance.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_deleteInstance.Output {+ try await bundleIds_deleteInstance(Operations.bundleIds_deleteInstance.Input(+ path: path,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.+ public func certificates_getCollection(+ query: Operations.certificates_getCollection.Input.Query = .init(),+ headers: Operations.certificates_getCollection.Input.Headers = .init()+ ) async throws -> Operations.certificates_getCollection.Output {+ try await certificates_getCollection(Operations.certificates_getCollection.Input(+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `POST /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.+ public func certificates_createInstance(+ headers: Operations.certificates_createInstance.Input.Headers = .init(),+ body: Operations.certificates_createInstance.Input.Body+ ) async throws -> Operations.certificates_createInstance.Output {+ try await certificates_createInstance(Operations.certificates_createInstance.Input(+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `GET /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.+ public func certificates_getInstance(+ path: Operations.certificates_getInstance.Input.Path,+ query: Operations.certificates_getInstance.Input.Query = .init(),+ headers: Operations.certificates_getInstance.Input.Headers = .init()+ ) async throws -> Operations.certificates_getInstance.Output {+ try await certificates_getInstance(Operations.certificates_getInstance.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `DELETE /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.+ public func certificates_deleteInstance(+ path: Operations.certificates_deleteInstance.Input.Path,+ headers: Operations.certificates_deleteInstance.Input.Headers = .init()+ ) async throws -> Operations.certificates_deleteInstance.Output {+ try await certificates_deleteInstance(Operations.certificates_deleteInstance.Input(+ path: path,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.+ public func devices_getCollection(+ query: Operations.devices_getCollection.Input.Query = .init(),+ headers: Operations.devices_getCollection.Input.Headers = .init()+ ) async throws -> Operations.devices_getCollection.Output {+ try await devices_getCollection(Operations.devices_getCollection.Input(+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `POST /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.+ public func devices_createInstance(+ headers: Operations.devices_createInstance.Input.Headers = .init(),+ body: Operations.devices_createInstance.Input.Body+ ) async throws -> Operations.devices_createInstance.Output {+ try await devices_createInstance(Operations.devices_createInstance.Input(+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `GET /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.+ public func devices_getInstance(+ path: Operations.devices_getInstance.Input.Path,+ query: Operations.devices_getInstance.Input.Query = .init(),+ headers: Operations.devices_getInstance.Input.Headers = .init()+ ) async throws -> Operations.devices_getInstance.Output {+ try await devices_getInstance(Operations.devices_getInstance.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `PATCH /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.+ public func devices_updateInstance(+ path: Operations.devices_updateInstance.Input.Path,+ headers: Operations.devices_updateInstance.Input.Headers = .init(),+ body: Operations.devices_updateInstance.Input.Body+ ) async throws -> Operations.devices_updateInstance.Output {+ try await devices_updateInstance(Operations.devices_updateInstance.Input(+ path: path,+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `GET /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.+ public func profiles_getCollection(+ query: Operations.profiles_getCollection.Input.Query = .init(),+ headers: Operations.profiles_getCollection.Input.Headers = .init()+ ) async throws -> Operations.profiles_getCollection.Output {+ try await profiles_getCollection(Operations.profiles_getCollection.Input(+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `POST /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.+ public func profiles_createInstance(+ headers: Operations.profiles_createInstance.Input.Headers = .init(),+ body: Operations.profiles_createInstance.Input.Body+ ) async throws -> Operations.profiles_createInstance.Output {+ try await profiles_createInstance(Operations.profiles_createInstance.Input(+ headers: headers,+ body: body+ ))+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.+ public func profiles_getInstance(+ path: Operations.profiles_getInstance.Input.Path,+ query: Operations.profiles_getInstance.Input.Query = .init(),+ headers: Operations.profiles_getInstance.Input.Headers = .init()+ ) async throws -> Operations.profiles_getInstance.Output {+ try await profiles_getInstance(Operations.profiles_getInstance.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `DELETE /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.+ public func profiles_deleteInstance(+ path: Operations.profiles_deleteInstance.Input.Path,+ headers: Operations.profiles_deleteInstance.Input.Headers = .init()+ ) async throws -> Operations.profiles_deleteInstance.Output {+ try await profiles_deleteInstance(Operations.profiles_deleteInstance.Input(+ path: path,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.+ public func bundleIds_app_getToOneRelated(+ path: Operations.bundleIds_app_getToOneRelated.Input.Path,+ query: Operations.bundleIds_app_getToOneRelated.Input.Query = .init(),+ headers: Operations.bundleIds_app_getToOneRelated.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_app_getToOneRelated.Output {+ try await bundleIds_app_getToOneRelated(Operations.bundleIds_app_getToOneRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.+ public func bundleIds_bundleIdCapabilities_getToManyRelated(+ path: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Path,+ query: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query = .init(),+ headers: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output {+ try await bundleIds_bundleIdCapabilities_getToManyRelated(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.+ public func bundleIds_profiles_getToManyRelated(+ path: Operations.bundleIds_profiles_getToManyRelated.Input.Path,+ query: Operations.bundleIds_profiles_getToManyRelated.Input.Query = .init(),+ headers: Operations.bundleIds_profiles_getToManyRelated.Input.Headers = .init()+ ) async throws -> Operations.bundleIds_profiles_getToManyRelated.Output {+ try await bundleIds_profiles_getToManyRelated(Operations.bundleIds_profiles_getToManyRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.+ public func profiles_bundleId_getToOneRelated(+ path: Operations.profiles_bundleId_getToOneRelated.Input.Path,+ query: Operations.profiles_bundleId_getToOneRelated.Input.Query = .init(),+ headers: Operations.profiles_bundleId_getToOneRelated.Input.Headers = .init()+ ) async throws -> Operations.profiles_bundleId_getToOneRelated.Output {+ try await profiles_bundleId_getToOneRelated(Operations.profiles_bundleId_getToOneRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.+ public func profiles_certificates_getToManyRelated(+ path: Operations.profiles_certificates_getToManyRelated.Input.Path,+ query: Operations.profiles_certificates_getToManyRelated.Input.Query = .init(),+ headers: Operations.profiles_certificates_getToManyRelated.Input.Headers = .init()+ ) async throws -> Operations.profiles_certificates_getToManyRelated.Output {+ try await profiles_certificates_getToManyRelated(Operations.profiles_certificates_getToManyRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.+ public func profiles_devices_getToManyRelated(+ path: Operations.profiles_devices_getToManyRelated.Input.Path,+ query: Operations.profiles_devices_getToManyRelated.Input.Query = .init(),+ headers: Operations.profiles_devices_getToManyRelated.Input.Headers = .init()+ ) async throws -> Operations.profiles_devices_getToManyRelated.Output {+ try await profiles_devices_getToManyRelated(Operations.profiles_devices_getToManyRelated.Input(+ path: path,+ query: query,+ headers: headers+ ))+ }+}++/// Server URLs defined in the OpenAPI document.+public enum Servers {+ public enum Server1 {+ public static func url() throws -> Foundation.URL {+ try Foundation.URL(+ validatingOpenAPIServerURL: "https://api.appstoreconnect.apple.com/",+ variables: []+ )+ }+ }+ @available(*, deprecated, renamed: "Servers.Server1.url")+ public static func server1() throws -> Foundation.URL {+ try Foundation.URL(+ validatingOpenAPIServerURL: "https://api.appstoreconnect.apple.com/",+ variables: []+ )+ }+}++/// Types generated from the components section of the OpenAPI document.+public enum Components {+ /// Types generated from the `#/components/schemas` section of the OpenAPI document.+ public enum Schemas {+ /// - Remark: Generated from `#/components/schemas/App`.+ public struct App: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case apps = "apps"+ }+ /// - Remark: Generated from `#/components/schemas/App/type`.+ public var _type: Components.Schemas.App._typePayload+ /// - Remark: Generated from `#/components/schemas/App/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/App/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/bundleId`.+ public var bundleId: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/sku`.+ public var sku: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/primaryLocale`.+ public var primaryLocale: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/isOrEverWasMadeForKids`.+ public var isOrEverWasMadeForKids: Swift.Bool?+ /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrl`.+ public var subscriptionStatusUrl: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlVersion`.+ public var subscriptionStatusUrlVersion: Components.Schemas.SubscriptionStatusUrlVersion?+ /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlForSandbox`.+ public var subscriptionStatusUrlForSandbox: Swift.String?+ /// - Remark: Generated from `#/components/schemas/App/attributes/subscriptionStatusUrlVersionForSandbox`.+ public var subscriptionStatusUrlVersionForSandbox: Components.Schemas.SubscriptionStatusUrlVersion?+ /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration`.+ @frozen public enum contentRightsDeclarationPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case DOES_NOT_USE_THIRD_PARTY_CONTENT = "DOES_NOT_USE_THIRD_PARTY_CONTENT"+ case USES_THIRD_PARTY_CONTENT = "USES_THIRD_PARTY_CONTENT"+ }+ /// - Remark: Generated from `#/components/schemas/App/attributes/contentRightsDeclaration`.+ public var contentRightsDeclaration: Components.Schemas.App.attributesPayload.contentRightsDeclarationPayload?+ /// - Remark: Generated from `#/components/schemas/App/attributes/streamlinedPurchasingEnabled`.+ public var streamlinedPurchasingEnabled: Swift.Bool?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - bundleId:+ /// - sku:+ /// - primaryLocale:+ /// - isOrEverWasMadeForKids:+ /// - subscriptionStatusUrl:+ /// - subscriptionStatusUrlVersion:+ /// - subscriptionStatusUrlForSandbox:+ /// - subscriptionStatusUrlVersionForSandbox:+ /// - contentRightsDeclaration:+ /// - streamlinedPurchasingEnabled:+ public init(+ name: Swift.String? = nil,+ bundleId: Swift.String? = nil,+ sku: Swift.String? = nil,+ primaryLocale: Swift.String? = nil,+ isOrEverWasMadeForKids: Swift.Bool? = nil,+ subscriptionStatusUrl: Swift.String? = nil,+ subscriptionStatusUrlVersion: Components.Schemas.SubscriptionStatusUrlVersion? = nil,+ subscriptionStatusUrlForSandbox: Swift.String? = nil,+ subscriptionStatusUrlVersionForSandbox: Components.Schemas.SubscriptionStatusUrlVersion? = nil,+ contentRightsDeclaration: Components.Schemas.App.attributesPayload.contentRightsDeclarationPayload? = nil,+ streamlinedPurchasingEnabled: Swift.Bool? = nil+ ) {+ self.name = name+ self.bundleId = bundleId+ self.sku = sku+ self.primaryLocale = primaryLocale+ self.isOrEverWasMadeForKids = isOrEverWasMadeForKids+ self.subscriptionStatusUrl = subscriptionStatusUrl+ self.subscriptionStatusUrlVersion = subscriptionStatusUrlVersion+ self.subscriptionStatusUrlForSandbox = subscriptionStatusUrlForSandbox+ self.subscriptionStatusUrlVersionForSandbox = subscriptionStatusUrlVersionForSandbox+ self.contentRightsDeclaration = contentRightsDeclaration+ self.streamlinedPurchasingEnabled = streamlinedPurchasingEnabled+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case bundleId+ case sku+ case primaryLocale+ case isOrEverWasMadeForKids+ case subscriptionStatusUrl+ case subscriptionStatusUrlVersion+ case subscriptionStatusUrlForSandbox+ case subscriptionStatusUrlVersionForSandbox+ case contentRightsDeclaration+ case streamlinedPurchasingEnabled+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/attributes`.+ public var attributes: Components.Schemas.App.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships`.+ public struct relationshipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations`.+ public struct appEncryptionDeclarationsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appEncryptionDeclarations = "appEncryptionDeclarations"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload.dataPayload?+ /// Creates a new `appEncryptionDeclarationsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEncryptionDeclarations`.+ public var appEncryptionDeclarations: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct`.+ public struct ciProductPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ciProducts = "ciProducts"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.ciProductPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.ciProductPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct/data`.+ public var data: Components.Schemas.App.relationshipsPayload.ciProductPayload.dataPayload?+ /// Creates a new `ciProductPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.ciProductPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/ciProduct`.+ public var ciProduct: Components.Schemas.App.relationshipsPayload.ciProductPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters`.+ public struct betaTestersPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `betaTestersPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaTesters`.+ public var betaTesters: Components.Schemas.App.relationshipsPayload.betaTestersPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups`.+ public struct betaGroupsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case betaGroups = "betaGroups"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.betaGroupsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.betaGroupsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.betaGroupsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups/data`.+ public var data: Components.Schemas.App.relationshipsPayload.betaGroupsPayload.dataPayload?+ /// Creates a new `betaGroupsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.betaGroupsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaGroups`.+ public var betaGroups: Components.Schemas.App.relationshipsPayload.betaGroupsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions`.+ public struct appStoreVersionsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appStoreVersions = "appStoreVersions"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload.dataPayload?+ /// Creates a new `appStoreVersionsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersions`.+ public var appStoreVersions: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions`.+ public struct preReleaseVersionsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case preReleaseVersions = "preReleaseVersions"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions/data`.+ public var data: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload.dataPayload?+ /// Creates a new `preReleaseVersionsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/preReleaseVersions`.+ public var preReleaseVersions: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations`.+ public struct betaAppLocalizationsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case betaAppLocalizations = "betaAppLocalizations"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations/data`.+ public var data: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload.dataPayload?+ /// Creates a new `betaAppLocalizationsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppLocalizations`.+ public var betaAppLocalizations: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds`.+ public struct buildsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case builds = "builds"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.buildsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.buildsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.buildsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds/data`.+ public var data: Components.Schemas.App.relationshipsPayload.buildsPayload.dataPayload?+ /// Creates a new `buildsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.buildsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/builds`.+ public var builds: Components.Schemas.App.relationshipsPayload.buildsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement`.+ public struct betaLicenseAgreementPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case betaLicenseAgreements = "betaLicenseAgreements"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement/data`.+ public var data: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload.dataPayload?+ /// Creates a new `betaLicenseAgreementPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaLicenseAgreement`.+ public var betaLicenseAgreement: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail`.+ public struct betaAppReviewDetailPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case betaAppReviewDetails = "betaAppReviewDetails"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail/data`.+ public var data: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload.dataPayload?+ /// Creates a new `betaAppReviewDetailPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/betaAppReviewDetail`.+ public var betaAppReviewDetail: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos`.+ public struct appInfosPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appInfos = "appInfos"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appInfosPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appInfosPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appInfosPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appInfosPayload.dataPayload?+ /// Creates a new `appInfosPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appInfosPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appInfos`.+ public var appInfos: Components.Schemas.App.relationshipsPayload.appInfosPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips`.+ public struct appClipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appClips = "appClips"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appClipsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appClipsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appClipsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appClipsPayload.dataPayload?+ /// Creates a new `appClipsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appClipsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appClips`.+ public var appClips: Components.Schemas.App.relationshipsPayload.appClipsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints`.+ public struct appPricePointsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `appPricePointsPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPricePoints`.+ public var appPricePoints: Components.Schemas.App.relationshipsPayload.appPricePointsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement`.+ public struct endUserLicenseAgreementPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case endUserLicenseAgreements = "endUserLicenseAgreements"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement/data`.+ public var data: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload.dataPayload?+ /// Creates a new `endUserLicenseAgreementPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/endUserLicenseAgreement`.+ public var endUserLicenseAgreement: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule`.+ public struct appPriceSchedulePayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `appPriceSchedulePayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appPriceSchedule`.+ public var appPriceSchedule: Components.Schemas.App.relationshipsPayload.appPriceSchedulePayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2`.+ public struct appAvailabilityV2Payload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `appAvailabilityV2Payload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appAvailabilityV2`.+ public var appAvailabilityV2: Components.Schemas.App.relationshipsPayload.appAvailabilityV2Payload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`.+ @available(*, deprecated)+ public struct inAppPurchasesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case inAppPurchases = "inAppPurchases"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases/data`.+ public var data: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload.dataPayload?+ /// Creates a new `inAppPurchasesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchases`.+ @available(*, deprecated)+ public var inAppPurchases: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups`.+ public struct subscriptionGroupsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case subscriptionGroups = "subscriptionGroups"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups/data`.+ public var data: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload.dataPayload?+ /// Creates a new `subscriptionGroupsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGroups`.+ public var subscriptionGroups: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions`.+ public struct gameCenterEnabledVersionsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case gameCenterEnabledVersions = "gameCenterEnabledVersions"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions/data`.+ public var data: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload.dataPayload?+ /// Creates a new `gameCenterEnabledVersionsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterEnabledVersions`.+ public var gameCenterEnabledVersions: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics`.+ public struct perfPowerMetricsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `perfPowerMetricsPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/perfPowerMetrics`.+ public var perfPowerMetrics: Components.Schemas.App.relationshipsPayload.perfPowerMetricsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages`.+ public struct appCustomProductPagesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appCustomProductPages = "appCustomProductPages"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload.dataPayload?+ /// Creates a new `appCustomProductPagesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appCustomProductPages`.+ public var appCustomProductPages: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2`.+ public struct inAppPurchasesV2Payload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case inAppPurchases = "inAppPurchases"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2/data`.+ public var data: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload.dataPayload?+ /// Creates a new `inAppPurchasesV2Payload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/inAppPurchasesV2`.+ public var inAppPurchasesV2: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases`.+ public struct promotedPurchasesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case promotedPurchases = "promotedPurchases"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases/data`.+ public var data: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload.dataPayload?+ /// Creates a new `promotedPurchasesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/promotedPurchases`.+ public var promotedPurchases: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents`.+ public struct appEventsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appEvents = "appEvents"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appEventsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appEventsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appEventsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appEventsPayload.dataPayload?+ /// Creates a new `appEventsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appEventsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appEvents`.+ public var appEvents: Components.Schemas.App.relationshipsPayload.appEventsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions`.+ public struct reviewSubmissionsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case reviewSubmissions = "reviewSubmissions"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions/data`.+ public var data: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload.dataPayload?+ /// Creates a new `reviewSubmissionsPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/reviewSubmissions`.+ public var reviewSubmissions: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod`.+ public struct subscriptionGracePeriodPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case subscriptionGracePeriods = "subscriptionGracePeriods"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod/data`.+ public var data: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload.dataPayload?+ /// Creates a new `subscriptionGracePeriodPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/subscriptionGracePeriod`.+ public var subscriptionGracePeriod: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews`.+ public struct customerReviewsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `customerReviewsPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/customerReviews`.+ public var customerReviews: Components.Schemas.App.relationshipsPayload.customerReviewsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail`.+ public struct gameCenterDetailPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case gameCenterDetails = "gameCenterDetails"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail/data`.+ public var data: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload.dataPayload?+ /// Creates a new `gameCenterDetailPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/gameCenterDetail`.+ public var gameCenterDetail: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2`.+ public struct appStoreVersionExperimentsV2Payload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case appStoreVersionExperiments = "appStoreVersionExperiments"+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/dataPayload/type`.+ public var _type: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/data`.+ public typealias dataPayload = [Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2/data`.+ public var data: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload.dataPayload?+ /// Creates a new `appStoreVersionExperimentsV2Payload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/appStoreVersionExperimentsV2`.+ public var appStoreVersionExperimentsV2: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey`.+ public struct alternativeDistributionKeyPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `alternativeDistributionKeyPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/alternativeDistributionKey`.+ public var alternativeDistributionKey: Components.Schemas.App.relationshipsPayload.alternativeDistributionKeyPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests`.+ public struct analyticsReportRequestsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `analyticsReportRequestsPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/analyticsReportRequests`.+ public var analyticsReportRequests: Components.Schemas.App.relationshipsPayload.analyticsReportRequestsPayload?+ /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail`.+ public struct marketplaceSearchDetailPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// Creates a new `marketplaceSearchDetailPayload`.+ ///+ /// - Parameters:+ /// - links:+ public init(links: Components.Schemas.RelationshipLinks? = nil) {+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships/marketplaceSearchDetail`.+ public var marketplaceSearchDetail: Components.Schemas.App.relationshipsPayload.marketplaceSearchDetailPayload?+ /// Creates a new `relationshipsPayload`.+ ///+ /// - Parameters:+ /// - appEncryptionDeclarations:+ /// - ciProduct:+ /// - betaTesters:+ /// - betaGroups:+ /// - appStoreVersions:+ /// - preReleaseVersions:+ /// - betaAppLocalizations:+ /// - builds:+ /// - betaLicenseAgreement:+ /// - betaAppReviewDetail:+ /// - appInfos:+ /// - appClips:+ /// - appPricePoints:+ /// - endUserLicenseAgreement:+ /// - appPriceSchedule:+ /// - appAvailabilityV2:+ /// - inAppPurchases:+ /// - subscriptionGroups:+ /// - gameCenterEnabledVersions:+ /// - perfPowerMetrics:+ /// - appCustomProductPages:+ /// - inAppPurchasesV2:+ /// - promotedPurchases:+ /// - appEvents:+ /// - reviewSubmissions:+ /// - subscriptionGracePeriod:+ /// - customerReviews:+ /// - gameCenterDetail:+ /// - appStoreVersionExperimentsV2:+ /// - alternativeDistributionKey:+ /// - analyticsReportRequests:+ /// - marketplaceSearchDetail:+ public init(+ appEncryptionDeclarations: Components.Schemas.App.relationshipsPayload.appEncryptionDeclarationsPayload? = nil,+ ciProduct: Components.Schemas.App.relationshipsPayload.ciProductPayload? = nil,+ betaTesters: Components.Schemas.App.relationshipsPayload.betaTestersPayload? = nil,+ betaGroups: Components.Schemas.App.relationshipsPayload.betaGroupsPayload? = nil,+ appStoreVersions: Components.Schemas.App.relationshipsPayload.appStoreVersionsPayload? = nil,+ preReleaseVersions: Components.Schemas.App.relationshipsPayload.preReleaseVersionsPayload? = nil,+ betaAppLocalizations: Components.Schemas.App.relationshipsPayload.betaAppLocalizationsPayload? = nil,+ builds: Components.Schemas.App.relationshipsPayload.buildsPayload? = nil,+ betaLicenseAgreement: Components.Schemas.App.relationshipsPayload.betaLicenseAgreementPayload? = nil,+ betaAppReviewDetail: Components.Schemas.App.relationshipsPayload.betaAppReviewDetailPayload? = nil,+ appInfos: Components.Schemas.App.relationshipsPayload.appInfosPayload? = nil,+ appClips: Components.Schemas.App.relationshipsPayload.appClipsPayload? = nil,+ appPricePoints: Components.Schemas.App.relationshipsPayload.appPricePointsPayload? = nil,+ endUserLicenseAgreement: Components.Schemas.App.relationshipsPayload.endUserLicenseAgreementPayload? = nil,+ appPriceSchedule: Components.Schemas.App.relationshipsPayload.appPriceSchedulePayload? = nil,+ appAvailabilityV2: Components.Schemas.App.relationshipsPayload.appAvailabilityV2Payload? = nil,+ inAppPurchases: Components.Schemas.App.relationshipsPayload.inAppPurchasesPayload? = nil,+ subscriptionGroups: Components.Schemas.App.relationshipsPayload.subscriptionGroupsPayload? = nil,+ gameCenterEnabledVersions: Components.Schemas.App.relationshipsPayload.gameCenterEnabledVersionsPayload? = nil,+ perfPowerMetrics: Components.Schemas.App.relationshipsPayload.perfPowerMetricsPayload? = nil,+ appCustomProductPages: Components.Schemas.App.relationshipsPayload.appCustomProductPagesPayload? = nil,+ inAppPurchasesV2: Components.Schemas.App.relationshipsPayload.inAppPurchasesV2Payload? = nil,+ promotedPurchases: Components.Schemas.App.relationshipsPayload.promotedPurchasesPayload? = nil,+ appEvents: Components.Schemas.App.relationshipsPayload.appEventsPayload? = nil,+ reviewSubmissions: Components.Schemas.App.relationshipsPayload.reviewSubmissionsPayload? = nil,+ subscriptionGracePeriod: Components.Schemas.App.relationshipsPayload.subscriptionGracePeriodPayload? = nil,+ customerReviews: Components.Schemas.App.relationshipsPayload.customerReviewsPayload? = nil,+ gameCenterDetail: Components.Schemas.App.relationshipsPayload.gameCenterDetailPayload? = nil,+ appStoreVersionExperimentsV2: Components.Schemas.App.relationshipsPayload.appStoreVersionExperimentsV2Payload? = nil,+ alternativeDistributionKey: Components.Schemas.App.relationshipsPayload.alternativeDistributionKeyPayload? = nil,+ analyticsReportRequests: Components.Schemas.App.relationshipsPayload.analyticsReportRequestsPayload? = nil,+ marketplaceSearchDetail: Components.Schemas.App.relationshipsPayload.marketplaceSearchDetailPayload? = nil+ ) {+ self.appEncryptionDeclarations = appEncryptionDeclarations+ self.ciProduct = ciProduct+ self.betaTesters = betaTesters+ self.betaGroups = betaGroups+ self.appStoreVersions = appStoreVersions+ self.preReleaseVersions = preReleaseVersions+ self.betaAppLocalizations = betaAppLocalizations+ self.builds = builds+ self.betaLicenseAgreement = betaLicenseAgreement+ self.betaAppReviewDetail = betaAppReviewDetail+ self.appInfos = appInfos+ self.appClips = appClips+ self.appPricePoints = appPricePoints+ self.endUserLicenseAgreement = endUserLicenseAgreement+ self.appPriceSchedule = appPriceSchedule+ self.appAvailabilityV2 = appAvailabilityV2+ self.inAppPurchases = inAppPurchases+ self.subscriptionGroups = subscriptionGroups+ self.gameCenterEnabledVersions = gameCenterEnabledVersions+ self.perfPowerMetrics = perfPowerMetrics+ self.appCustomProductPages = appCustomProductPages+ self.inAppPurchasesV2 = inAppPurchasesV2+ self.promotedPurchases = promotedPurchases+ self.appEvents = appEvents+ self.reviewSubmissions = reviewSubmissions+ self.subscriptionGracePeriod = subscriptionGracePeriod+ self.customerReviews = customerReviews+ self.gameCenterDetail = gameCenterDetail+ self.appStoreVersionExperimentsV2 = appStoreVersionExperimentsV2+ self.alternativeDistributionKey = alternativeDistributionKey+ self.analyticsReportRequests = analyticsReportRequests+ self.marketplaceSearchDetail = marketplaceSearchDetail+ }+ public enum CodingKeys: String, CodingKey {+ case appEncryptionDeclarations+ case ciProduct+ case betaTesters+ case betaGroups+ case appStoreVersions+ case preReleaseVersions+ case betaAppLocalizations+ case builds+ case betaLicenseAgreement+ case betaAppReviewDetail+ case appInfos+ case appClips+ case appPricePoints+ case endUserLicenseAgreement+ case appPriceSchedule+ case appAvailabilityV2+ case inAppPurchases+ case subscriptionGroups+ case gameCenterEnabledVersions+ case perfPowerMetrics+ case appCustomProductPages+ case inAppPurchasesV2+ case promotedPurchases+ case appEvents+ case reviewSubmissions+ case subscriptionGracePeriod+ case customerReviews+ case gameCenterDetail+ case appStoreVersionExperimentsV2+ case alternativeDistributionKey+ case analyticsReportRequests+ case marketplaceSearchDetail+ }+ }+ /// - Remark: Generated from `#/components/schemas/App/relationships`.+ public var relationships: Components.Schemas.App.relationshipsPayload?+ /// - Remark: Generated from `#/components/schemas/App/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `App`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - relationships:+ /// - links:+ public init(+ _type: Components.Schemas.App._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.App.attributesPayload? = nil,+ relationships: Components.Schemas.App.relationshipsPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.relationships = relationships+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case relationships+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability`.+ public struct BundleIdCapability: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIdCapabilities = "bundleIdCapabilities"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/type`.+ public var _type: Components.Schemas.BundleIdCapability._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes/capabilityType`.+ public var capabilityType: Components.Schemas.CapabilityType?+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes/settings`.+ public var settings: [Components.Schemas.CapabilitySetting]?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - capabilityType:+ /// - settings:+ public init(+ capabilityType: Components.Schemas.CapabilityType? = nil,+ settings: [Components.Schemas.CapabilitySetting]? = nil+ ) {+ self.capabilityType = capabilityType+ self.settings = settings+ }+ public enum CodingKeys: String, CodingKey {+ case capabilityType+ case settings+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/attributes`.+ public var attributes: Components.Schemas.BundleIdCapability.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/BundleIdCapability/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `BundleIdCapability`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - links:+ public init(+ _type: Components.Schemas.BundleIdCapability._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.BundleIdCapability.attributesPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse`.+ public struct BundleIdCapabilityResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse/data`.+ public var data: Components.Schemas.BundleIdCapability+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `BundleIdCapabilityResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ public init(+ data: Components.Schemas.BundleIdCapability,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest`.+ public struct BundleIdCapabilityCreateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIdCapabilities = "bundleIdCapabilities"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/type`.+ public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes/capabilityType`.+ public var capabilityType: Components.Schemas.CapabilityType+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes/settings`.+ public var settings: [Components.Schemas.CapabilitySetting]?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - capabilityType:+ /// - settings:+ public init(+ capabilityType: Components.Schemas.CapabilityType,+ settings: [Components.Schemas.CapabilitySetting]? = nil+ ) {+ self.capabilityType = capabilityType+ self.settings = settings+ }+ public enum CodingKeys: String, CodingKey {+ case capabilityType+ case settings+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/attributes`.+ public var attributes: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.attributesPayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships`.+ public struct relationshipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId`.+ public struct bundleIdPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/type`.+ public var _type: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId/data`.+ public var data: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload+ /// Creates a new `bundleIdPayload`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships/bundleId`.+ public var bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload+ /// Creates a new `relationshipsPayload`.+ ///+ /// - Parameters:+ /// - bundleId:+ public init(bundleId: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload) {+ self.bundleId = bundleId+ }+ public enum CodingKeys: String, CodingKey {+ case bundleId+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data/relationships`.+ public var relationships: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - attributes:+ /// - relationships:+ public init(+ _type: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload._typePayload,+ attributes: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.attributesPayload,+ relationships: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload.relationshipsPayload+ ) {+ self._type = _type+ self.attributes = attributes+ self.relationships = relationships+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case attributes+ case relationships+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityCreateRequest/data`.+ public var data: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload+ /// Creates a new `BundleIdCapabilityCreateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.BundleIdCapabilityCreateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest`.+ public struct BundleIdCapabilityUpdateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIdCapabilities = "bundleIdCapabilities"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/type`.+ public var _type: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes/capabilityType`.+ public var capabilityType: Components.Schemas.CapabilityType?+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes/settings`.+ public var settings: [Components.Schemas.CapabilitySetting]?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - capabilityType:+ /// - settings:+ public init(+ capabilityType: Components.Schemas.CapabilityType? = nil,+ settings: [Components.Schemas.CapabilitySetting]? = nil+ ) {+ self.capabilityType = capabilityType+ self.settings = settings+ }+ public enum CodingKeys: String, CodingKey {+ case capabilityType+ case settings+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data/attributes`.+ public var attributes: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload.attributesPayload?+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ public init(+ _type: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload.attributesPayload? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilityUpdateRequest/data`.+ public var data: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload+ /// Creates a new `BundleIdCapabilityUpdateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.BundleIdCapabilityUpdateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId`.+ public struct BundleId: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/type`.+ public var _type: Components.Schemas.BundleId._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleId/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform?+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes/identifier`.+ public var identifier: Swift.String?+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes/seedId`.+ public var seedId: Swift.String?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - platform:+ /// - identifier:+ /// - seedId:+ public init(+ name: Swift.String? = nil,+ platform: Components.Schemas.BundleIdPlatform? = nil,+ identifier: Swift.String? = nil,+ seedId: Swift.String? = nil+ ) {+ self.name = name+ self.platform = platform+ self.identifier = identifier+ self.seedId = seedId+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case platform+ case identifier+ case seedId+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/attributes`.+ public var attributes: Components.Schemas.BundleId.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships`.+ public struct relationshipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles`.+ public struct profilesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case profiles = "profiles"+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/dataPayload/type`.+ public var _type: Components.Schemas.BundleId.relationshipsPayload.profilesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.BundleId.relationshipsPayload.profilesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/data`.+ public typealias dataPayload = [Components.Schemas.BundleId.relationshipsPayload.profilesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles/data`.+ public var data: Components.Schemas.BundleId.relationshipsPayload.profilesPayload.dataPayload?+ /// Creates a new `profilesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.BundleId.relationshipsPayload.profilesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/profiles`.+ public var profiles: Components.Schemas.BundleId.relationshipsPayload.profilesPayload?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities`.+ public struct bundleIdCapabilitiesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIdCapabilities = "bundleIdCapabilities"+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/dataPayload/type`.+ public var _type: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/data`.+ public typealias dataPayload = [Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities/data`.+ public var data: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload.dataPayload?+ /// Creates a new `bundleIdCapabilitiesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/bundleIdCapabilities`.+ public var bundleIdCapabilities: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app`.+ public struct appPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case apps = "apps"+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/type`.+ public var _type: Components.Schemas.BundleId.relationshipsPayload.appPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.BundleId.relationshipsPayload.appPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app/data`.+ public var data: Components.Schemas.BundleId.relationshipsPayload.appPayload.dataPayload?+ /// Creates a new `appPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.BundleId.relationshipsPayload.appPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships/app`.+ public var app: Components.Schemas.BundleId.relationshipsPayload.appPayload?+ /// Creates a new `relationshipsPayload`.+ ///+ /// - Parameters:+ /// - profiles:+ /// - bundleIdCapabilities:+ /// - app:+ public init(+ profiles: Components.Schemas.BundleId.relationshipsPayload.profilesPayload? = nil,+ bundleIdCapabilities: Components.Schemas.BundleId.relationshipsPayload.bundleIdCapabilitiesPayload? = nil,+ app: Components.Schemas.BundleId.relationshipsPayload.appPayload? = nil+ ) {+ self.profiles = profiles+ self.bundleIdCapabilities = bundleIdCapabilities+ self.app = app+ }+ public enum CodingKeys: String, CodingKey {+ case profiles+ case bundleIdCapabilities+ case app+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleId/relationships`.+ public var relationships: Components.Schemas.BundleId.relationshipsPayload?+ /// - Remark: Generated from `#/components/schemas/BundleId/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `BundleId`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - relationships:+ /// - links:+ public init(+ _type: Components.Schemas.BundleId._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.BundleId.attributesPayload? = nil,+ relationships: Components.Schemas.BundleId.relationshipsPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.relationships = relationships+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case relationships+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse`.+ public struct BundleIdsResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/data`.+ public var data: [Components.Schemas.BundleId]+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/includedPayload`.+ @frozen public enum includedPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/includedPayload/case1`.+ case Profile(Components.Schemas.Profile)+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/includedPayload/case2`.+ case BundleIdCapability(Components.Schemas.BundleIdCapability)+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/includedPayload/case3`.+ case App(Components.Schemas.App)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .Profile(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .BundleIdCapability(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .App(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .Profile(value):+ try value.encode(to: encoder)+ case let .BundleIdCapability(value):+ try value.encode(to: encoder)+ case let .App(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/included`.+ public typealias includedPayload = [Components.Schemas.BundleIdsResponse.includedPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/included`.+ public var included: Components.Schemas.BundleIdsResponse.includedPayload?+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/BundleIdsResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `BundleIdsResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - included:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.BundleId],+ included: Components.Schemas.BundleIdsResponse.includedPayload? = nil,+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.included = included+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case included+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse`.+ public struct BundleIdResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/data`.+ public var data: Components.Schemas.BundleId+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/includedPayload`.+ @frozen public enum includedPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/includedPayload/case1`.+ case Profile(Components.Schemas.Profile)+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/includedPayload/case2`.+ case BundleIdCapability(Components.Schemas.BundleIdCapability)+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/includedPayload/case3`.+ case App(Components.Schemas.App)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .Profile(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .BundleIdCapability(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .App(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .Profile(value):+ try value.encode(to: encoder)+ case let .BundleIdCapability(value):+ try value.encode(to: encoder)+ case let .App(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/included`.+ public typealias includedPayload = [Components.Schemas.BundleIdResponse.includedPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/included`.+ public var included: Components.Schemas.BundleIdResponse.includedPayload?+ /// - Remark: Generated from `#/components/schemas/BundleIdResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `BundleIdResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - included:+ /// - links:+ public init(+ data: Components.Schemas.BundleId,+ included: Components.Schemas.BundleIdResponse.includedPayload? = nil,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.included = included+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case included+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest`.+ public struct BundleIdCreateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/type`.+ public var _type: Components.Schemas.BundleIdCreateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/name`.+ public var name: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/identifier`.+ public var identifier: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes/seedId`.+ public var seedId: Swift.String?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - platform:+ /// - identifier:+ /// - seedId:+ public init(+ name: Swift.String,+ platform: Components.Schemas.BundleIdPlatform,+ identifier: Swift.String,+ seedId: Swift.String? = nil+ ) {+ self.name = name+ self.platform = platform+ self.identifier = identifier+ self.seedId = seedId+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case platform+ case identifier+ case seedId+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data/attributes`.+ public var attributes: Components.Schemas.BundleIdCreateRequest.dataPayload.attributesPayload+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - attributes:+ public init(+ _type: Components.Schemas.BundleIdCreateRequest.dataPayload._typePayload,+ attributes: Components.Schemas.BundleIdCreateRequest.dataPayload.attributesPayload+ ) {+ self._type = _type+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCreateRequest/data`.+ public var data: Components.Schemas.BundleIdCreateRequest.dataPayload+ /// Creates a new `BundleIdCreateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.BundleIdCreateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest`.+ public struct BundleIdUpdateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/type`.+ public var _type: Components.Schemas.BundleIdUpdateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes/name`.+ public var name: Swift.String?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ public init(name: Swift.String? = nil) {+ self.name = name+ }+ public enum CodingKeys: String, CodingKey {+ case name+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data/attributes`.+ public var attributes: Components.Schemas.BundleIdUpdateRequest.dataPayload.attributesPayload?+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ public init(+ _type: Components.Schemas.BundleIdUpdateRequest.dataPayload._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.BundleIdUpdateRequest.dataPayload.attributesPayload? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdUpdateRequest/data`.+ public var data: Components.Schemas.BundleIdUpdateRequest.dataPayload+ /// Creates a new `BundleIdUpdateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.BundleIdUpdateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Certificate`.+ public struct Certificate: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Certificate/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/components/schemas/Certificate/type`.+ public var _type: Components.Schemas.Certificate._typePayload+ /// - Remark: Generated from `#/components/schemas/Certificate/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/certificateType`.+ public var certificateType: Components.Schemas.CertificateType?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/displayName`.+ public var displayName: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/serialNumber`.+ public var serialNumber: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/expirationDate`.+ public var expirationDate: Foundation.Date?+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes/certificateContent`.+ public var certificateContent: Swift.String?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - certificateType:+ /// - displayName:+ /// - serialNumber:+ /// - platform:+ /// - expirationDate:+ /// - certificateContent:+ public init(+ name: Swift.String? = nil,+ certificateType: Components.Schemas.CertificateType? = nil,+ displayName: Swift.String? = nil,+ serialNumber: Swift.String? = nil,+ platform: Components.Schemas.BundleIdPlatform? = nil,+ expirationDate: Foundation.Date? = nil,+ certificateContent: Swift.String? = nil+ ) {+ self.name = name+ self.certificateType = certificateType+ self.displayName = displayName+ self.serialNumber = serialNumber+ self.platform = platform+ self.expirationDate = expirationDate+ self.certificateContent = certificateContent+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case certificateType+ case displayName+ case serialNumber+ case platform+ case expirationDate+ case certificateContent+ }+ }+ /// - Remark: Generated from `#/components/schemas/Certificate/attributes`.+ public var attributes: Components.Schemas.Certificate.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/Certificate/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `Certificate`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - links:+ public init(+ _type: Components.Schemas.Certificate._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.Certificate.attributesPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificatesResponse`.+ public struct CertificatesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificatesResponse/data`.+ public var data: [Components.Schemas.Certificate]+ /// - Remark: Generated from `#/components/schemas/CertificatesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/CertificatesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `CertificatesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Certificate],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificateResponse`.+ public struct CertificateResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificateResponse/data`.+ public var data: Components.Schemas.Certificate+ /// - Remark: Generated from `#/components/schemas/CertificateResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `CertificateResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ public init(+ data: Components.Schemas.Certificate,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest`.+ public struct CertificateCreateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/type`.+ public var _type: Components.Schemas.CertificateCreateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes/csrContent`.+ public var csrContent: Swift.String+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes/certificateType`.+ public var certificateType: Components.Schemas.CertificateType+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - csrContent:+ /// - certificateType:+ public init(+ csrContent: Swift.String,+ certificateType: Components.Schemas.CertificateType+ ) {+ self.csrContent = csrContent+ self.certificateType = certificateType+ }+ public enum CodingKeys: String, CodingKey {+ case csrContent+ case certificateType+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data/attributes`.+ public var attributes: Components.Schemas.CertificateCreateRequest.dataPayload.attributesPayload+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - attributes:+ public init(+ _type: Components.Schemas.CertificateCreateRequest.dataPayload._typePayload,+ attributes: Components.Schemas.CertificateCreateRequest.dataPayload.attributesPayload+ ) {+ self._type = _type+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificateCreateRequest/data`.+ public var data: Components.Schemas.CertificateCreateRequest.dataPayload+ /// Creates a new `CertificateCreateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.CertificateCreateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Device`.+ public struct Device: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Device/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case devices = "devices"+ }+ /// - Remark: Generated from `#/components/schemas/Device/type`.+ public var _type: Components.Schemas.Device._typePayload+ /// - Remark: Generated from `#/components/schemas/Device/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/Device/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Device/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/udid`.+ public var udid: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass`.+ @frozen public enum deviceClassPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case APPLE_WATCH = "APPLE_WATCH"+ case IPAD = "IPAD"+ case IPHONE = "IPHONE"+ case IPOD = "IPOD"+ case APPLE_TV = "APPLE_TV"+ case MAC = "MAC"+ }+ /// - Remark: Generated from `#/components/schemas/Device/attributes/deviceClass`.+ public var deviceClass: Components.Schemas.Device.attributesPayload.deviceClassPayload?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/status`.+ @frozen public enum statusPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ENABLED = "ENABLED"+ case DISABLED = "DISABLED"+ }+ /// - Remark: Generated from `#/components/schemas/Device/attributes/status`.+ public var status: Components.Schemas.Device.attributesPayload.statusPayload?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/model`.+ public var model: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Device/attributes/addedDate`.+ public var addedDate: Foundation.Date?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - platform:+ /// - udid:+ /// - deviceClass:+ /// - status:+ /// - model:+ /// - addedDate:+ public init(+ name: Swift.String? = nil,+ platform: Components.Schemas.BundleIdPlatform? = nil,+ udid: Swift.String? = nil,+ deviceClass: Components.Schemas.Device.attributesPayload.deviceClassPayload? = nil,+ status: Components.Schemas.Device.attributesPayload.statusPayload? = nil,+ model: Swift.String? = nil,+ addedDate: Foundation.Date? = nil+ ) {+ self.name = name+ self.platform = platform+ self.udid = udid+ self.deviceClass = deviceClass+ self.status = status+ self.model = model+ self.addedDate = addedDate+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case platform+ case udid+ case deviceClass+ case status+ case model+ case addedDate+ }+ }+ /// - Remark: Generated from `#/components/schemas/Device/attributes`.+ public var attributes: Components.Schemas.Device.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/Device/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `Device`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - links:+ public init(+ _type: Components.Schemas.Device._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.Device.attributesPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/DevicesResponse`.+ public struct DevicesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DevicesResponse/data`.+ public var data: [Components.Schemas.Device]+ /// - Remark: Generated from `#/components/schemas/DevicesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/DevicesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `DevicesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Device],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceResponse`.+ public struct DeviceResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceResponse/data`.+ public var data: Components.Schemas.Device+ /// - Remark: Generated from `#/components/schemas/DeviceResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `DeviceResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ public init(+ data: Components.Schemas.Device,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest`.+ public struct DeviceCreateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case devices = "devices"+ }+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/type`.+ public var _type: Components.Schemas.DeviceCreateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/name`.+ public var name: Swift.String+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes/udid`.+ public var udid: Swift.String+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - platform:+ /// - udid:+ public init(+ name: Swift.String,+ platform: Components.Schemas.BundleIdPlatform,+ udid: Swift.String+ ) {+ self.name = name+ self.platform = platform+ self.udid = udid+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case platform+ case udid+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data/attributes`.+ public var attributes: Components.Schemas.DeviceCreateRequest.dataPayload.attributesPayload+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - attributes:+ public init(+ _type: Components.Schemas.DeviceCreateRequest.dataPayload._typePayload,+ attributes: Components.Schemas.DeviceCreateRequest.dataPayload.attributesPayload+ ) {+ self._type = _type+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceCreateRequest/data`.+ public var data: Components.Schemas.DeviceCreateRequest.dataPayload+ /// Creates a new `DeviceCreateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.DeviceCreateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest`.+ public struct DeviceUpdateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case devices = "devices"+ }+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/type`.+ public var _type: Components.Schemas.DeviceUpdateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/status`.+ @frozen public enum statusPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ENABLED = "ENABLED"+ case DISABLED = "DISABLED"+ }+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes/status`.+ public var status: Components.Schemas.DeviceUpdateRequest.dataPayload.attributesPayload.statusPayload?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - status:+ public init(+ name: Swift.String? = nil,+ status: Components.Schemas.DeviceUpdateRequest.dataPayload.attributesPayload.statusPayload? = nil+ ) {+ self.name = name+ self.status = status+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case status+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data/attributes`.+ public var attributes: Components.Schemas.DeviceUpdateRequest.dataPayload.attributesPayload?+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ public init(+ _type: Components.Schemas.DeviceUpdateRequest.dataPayload._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.DeviceUpdateRequest.dataPayload.attributesPayload? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ }+ }+ /// - Remark: Generated from `#/components/schemas/DeviceUpdateRequest/data`.+ public var data: Components.Schemas.DeviceUpdateRequest.dataPayload+ /// Creates a new `DeviceUpdateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.DeviceUpdateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile`.+ public struct Profile: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case profiles = "profiles"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/type`.+ public var _type: Components.Schemas.Profile._typePayload+ /// - Remark: Generated from `#/components/schemas/Profile/id`.+ public var id: Swift.String+ /// - Remark: Generated from `#/components/schemas/Profile/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/platform`.+ public var platform: Components.Schemas.BundleIdPlatform?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType`.+ @frozen public enum profileTypePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT"+ case IOS_APP_STORE = "IOS_APP_STORE"+ case IOS_APP_ADHOC = "IOS_APP_ADHOC"+ case IOS_APP_INHOUSE = "IOS_APP_INHOUSE"+ case MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"+ case MAC_APP_STORE = "MAC_APP_STORE"+ case MAC_APP_DIRECT = "MAC_APP_DIRECT"+ case TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT"+ case TVOS_APP_STORE = "TVOS_APP_STORE"+ case TVOS_APP_ADHOC = "TVOS_APP_ADHOC"+ case TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE"+ case MAC_CATALYST_APP_DEVELOPMENT = "MAC_CATALYST_APP_DEVELOPMENT"+ case MAC_CATALYST_APP_STORE = "MAC_CATALYST_APP_STORE"+ case MAC_CATALYST_APP_DIRECT = "MAC_CATALYST_APP_DIRECT"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileType`.+ public var profileType: Components.Schemas.Profile.attributesPayload.profileTypePayload?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState`.+ @frozen public enum profileStatePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ACTIVE = "ACTIVE"+ case INVALID = "INVALID"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileState`.+ public var profileState: Components.Schemas.Profile.attributesPayload.profileStatePayload?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/profileContent`.+ public var profileContent: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/uuid`.+ public var uuid: Swift.String?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/createdDate`.+ public var createdDate: Foundation.Date?+ /// - Remark: Generated from `#/components/schemas/Profile/attributes/expirationDate`.+ public var expirationDate: Foundation.Date?+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - platform:+ /// - profileType:+ /// - profileState:+ /// - profileContent:+ /// - uuid:+ /// - createdDate:+ /// - expirationDate:+ public init(+ name: Swift.String? = nil,+ platform: Components.Schemas.BundleIdPlatform? = nil,+ profileType: Components.Schemas.Profile.attributesPayload.profileTypePayload? = nil,+ profileState: Components.Schemas.Profile.attributesPayload.profileStatePayload? = nil,+ profileContent: Swift.String? = nil,+ uuid: Swift.String? = nil,+ createdDate: Foundation.Date? = nil,+ expirationDate: Foundation.Date? = nil+ ) {+ self.name = name+ self.platform = platform+ self.profileType = profileType+ self.profileState = profileState+ self.profileContent = profileContent+ self.uuid = uuid+ self.createdDate = createdDate+ self.expirationDate = expirationDate+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case platform+ case profileType+ case profileState+ case profileContent+ case uuid+ case createdDate+ case expirationDate+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/attributes`.+ public var attributes: Components.Schemas.Profile.attributesPayload?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships`.+ public struct relationshipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId`.+ public struct bundleIdPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/type`.+ public var _type: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId/data`.+ public var data: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload.dataPayload?+ /// Creates a new `bundleIdPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ data: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload.dataPayload? = nil+ ) {+ self.links = links+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/bundleId`.+ public var bundleId: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices`.+ public struct devicesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case devices = "devices"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/dataPayload/type`.+ public var _type: Components.Schemas.Profile.relationshipsPayload.devicesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.Profile.relationshipsPayload.devicesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/data`.+ public typealias dataPayload = [Components.Schemas.Profile.relationshipsPayload.devicesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices/data`.+ public var data: Components.Schemas.Profile.relationshipsPayload.devicesPayload.dataPayload?+ /// Creates a new `devicesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.Profile.relationshipsPayload.devicesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/devices`.+ public var devices: Components.Schemas.Profile.relationshipsPayload.devicesPayload?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates`.+ public struct certificatesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/links`.+ public var links: Components.Schemas.RelationshipLinks?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/dataPayload/type`.+ public var _type: Components.Schemas.Profile.relationshipsPayload.certificatesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.Profile.relationshipsPayload.certificatesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/data`.+ public typealias dataPayload = [Components.Schemas.Profile.relationshipsPayload.certificatesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates/data`.+ public var data: Components.Schemas.Profile.relationshipsPayload.certificatesPayload.dataPayload?+ /// Creates a new `certificatesPayload`.+ ///+ /// - Parameters:+ /// - links:+ /// - meta:+ /// - data:+ public init(+ links: Components.Schemas.RelationshipLinks? = nil,+ meta: Components.Schemas.PagingInformation? = nil,+ data: Components.Schemas.Profile.relationshipsPayload.certificatesPayload.dataPayload? = nil+ ) {+ self.links = links+ self.meta = meta+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case links+ case meta+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships/certificates`.+ public var certificates: Components.Schemas.Profile.relationshipsPayload.certificatesPayload?+ /// Creates a new `relationshipsPayload`.+ ///+ /// - Parameters:+ /// - bundleId:+ /// - devices:+ /// - certificates:+ public init(+ bundleId: Components.Schemas.Profile.relationshipsPayload.bundleIdPayload? = nil,+ devices: Components.Schemas.Profile.relationshipsPayload.devicesPayload? = nil,+ certificates: Components.Schemas.Profile.relationshipsPayload.certificatesPayload? = nil+ ) {+ self.bundleId = bundleId+ self.devices = devices+ self.certificates = certificates+ }+ public enum CodingKeys: String, CodingKey {+ case bundleId+ case devices+ case certificates+ }+ }+ /// - Remark: Generated from `#/components/schemas/Profile/relationships`.+ public var relationships: Components.Schemas.Profile.relationshipsPayload?+ /// - Remark: Generated from `#/components/schemas/Profile/links`.+ public var links: Components.Schemas.ResourceLinks?+ /// Creates a new `Profile`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ /// - attributes:+ /// - relationships:+ /// - links:+ public init(+ _type: Components.Schemas.Profile._typePayload,+ id: Swift.String,+ attributes: Components.Schemas.Profile.attributesPayload? = nil,+ relationships: Components.Schemas.Profile.relationshipsPayload? = nil,+ links: Components.Schemas.ResourceLinks? = nil+ ) {+ self._type = _type+ self.id = id+ self.attributes = attributes+ self.relationships = relationships+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ case attributes+ case relationships+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse`.+ public struct ProfilesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/data`.+ public var data: [Components.Schemas.Profile]+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/includedPayload`.+ @frozen public enum includedPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/includedPayload/case1`.+ case BundleId(Components.Schemas.BundleId)+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/includedPayload/case2`.+ case Device(Components.Schemas.Device)+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/includedPayload/case3`.+ case Certificate(Components.Schemas.Certificate)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .BundleId(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .Device(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .Certificate(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .BundleId(value):+ try value.encode(to: encoder)+ case let .Device(value):+ try value.encode(to: encoder)+ case let .Certificate(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/included`.+ public typealias includedPayload = [Components.Schemas.ProfilesResponse.includedPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/included`.+ public var included: Components.Schemas.ProfilesResponse.includedPayload?+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/ProfilesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `ProfilesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - included:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Profile],+ included: Components.Schemas.ProfilesResponse.includedPayload? = nil,+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.included = included+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case included+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileResponse`.+ public struct ProfileResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/data`.+ public var data: Components.Schemas.Profile+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/includedPayload`.+ @frozen public enum includedPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/includedPayload/case1`.+ case BundleId(Components.Schemas.BundleId)+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/includedPayload/case2`.+ case Device(Components.Schemas.Device)+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/includedPayload/case3`.+ case Certificate(Components.Schemas.Certificate)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .BundleId(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .Device(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .Certificate(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .BundleId(value):+ try value.encode(to: encoder)+ case let .Device(value):+ try value.encode(to: encoder)+ case let .Certificate(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/included`.+ public typealias includedPayload = [Components.Schemas.ProfileResponse.includedPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/included`.+ public var included: Components.Schemas.ProfileResponse.includedPayload?+ /// - Remark: Generated from `#/components/schemas/ProfileResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `ProfileResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - included:+ /// - links:+ public init(+ data: Components.Schemas.Profile,+ included: Components.Schemas.ProfileResponse.includedPayload? = nil,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.included = included+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case included+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest`.+ public struct ProfileCreateRequest: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case profiles = "profiles"+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/type`.+ public var _type: Components.Schemas.ProfileCreateRequest.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes`.+ public struct attributesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/name`.+ public var name: Swift.String+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType`.+ @frozen public enum profileTypePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT"+ case IOS_APP_STORE = "IOS_APP_STORE"+ case IOS_APP_ADHOC = "IOS_APP_ADHOC"+ case IOS_APP_INHOUSE = "IOS_APP_INHOUSE"+ case MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"+ case MAC_APP_STORE = "MAC_APP_STORE"+ case MAC_APP_DIRECT = "MAC_APP_DIRECT"+ case TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT"+ case TVOS_APP_STORE = "TVOS_APP_STORE"+ case TVOS_APP_ADHOC = "TVOS_APP_ADHOC"+ case TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE"+ case MAC_CATALYST_APP_DEVELOPMENT = "MAC_CATALYST_APP_DEVELOPMENT"+ case MAC_CATALYST_APP_STORE = "MAC_CATALYST_APP_STORE"+ case MAC_CATALYST_APP_DIRECT = "MAC_CATALYST_APP_DIRECT"+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes/profileType`.+ public var profileType: Components.Schemas.ProfileCreateRequest.dataPayload.attributesPayload.profileTypePayload+ /// Creates a new `attributesPayload`.+ ///+ /// - Parameters:+ /// - name:+ /// - profileType:+ public init(+ name: Swift.String,+ profileType: Components.Schemas.ProfileCreateRequest.dataPayload.attributesPayload.profileTypePayload+ ) {+ self.name = name+ self.profileType = profileType+ }+ public enum CodingKeys: String, CodingKey {+ case name+ case profileType+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/attributes`.+ public var attributes: Components.Schemas.ProfileCreateRequest.dataPayload.attributesPayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships`.+ public struct relationshipsPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId`.+ public struct bundleIdPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data`.+ public struct dataPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleIds = "bundleIds"+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/type`.+ public var _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data/id`.+ public var id: Swift.String+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId/data`.+ public var data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload+ /// Creates a new `bundleIdPayload`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/bundleId`.+ public var bundleId: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices`.+ public struct devicesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case devices = "devices"+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/dataPayload/type`.+ public var _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/data`.+ public typealias dataPayload = [Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices/data`.+ public var data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload.dataPayload?+ /// Creates a new `devicesPayload`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload.dataPayload? = nil) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/devices`.+ public var devices: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload?+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates`.+ public struct certificatesPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/dataPayload`.+ public struct dataPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/dataPayload/type`.+ @frozen public enum _typePayload: String, Codable, Hashable, Sendable, CaseIterable {+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/dataPayload/type`.+ public var _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload.dataPayloadPayload._typePayload+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/dataPayload/id`.+ public var id: Swift.String+ /// Creates a new `dataPayloadPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - id:+ public init(+ _type: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload.dataPayloadPayload._typePayload,+ id: Swift.String+ ) {+ self._type = _type+ self.id = id+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case id+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/data`.+ public typealias dataPayload = [Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload.dataPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates/data`.+ public var data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload.dataPayload+ /// Creates a new `certificatesPayload`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships/certificates`.+ public var certificates: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload+ /// Creates a new `relationshipsPayload`.+ ///+ /// - Parameters:+ /// - bundleId:+ /// - devices:+ /// - certificates:+ public init(+ bundleId: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.bundleIdPayload,+ devices: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.devicesPayload? = nil,+ certificates: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload.certificatesPayload+ ) {+ self.bundleId = bundleId+ self.devices = devices+ self.certificates = certificates+ }+ public enum CodingKeys: String, CodingKey {+ case bundleId+ case devices+ case certificates+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data/relationships`.+ public var relationships: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload+ /// Creates a new `dataPayload`.+ ///+ /// - Parameters:+ /// - _type:+ /// - attributes:+ /// - relationships:+ public init(+ _type: Components.Schemas.ProfileCreateRequest.dataPayload._typePayload,+ attributes: Components.Schemas.ProfileCreateRequest.dataPayload.attributesPayload,+ relationships: Components.Schemas.ProfileCreateRequest.dataPayload.relationshipsPayload+ ) {+ self._type = _type+ self.attributes = attributes+ self.relationships = relationships+ }+ public enum CodingKeys: String, CodingKey {+ case _type = "type"+ case attributes+ case relationships+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfileCreateRequest/data`.+ public var data: Components.Schemas.ProfileCreateRequest.dataPayload+ /// Creates a new `ProfileCreateRequest`.+ ///+ /// - Parameters:+ /// - data:+ public init(data: Components.Schemas.ProfileCreateRequest.dataPayload) {+ self.data = data+ }+ public enum CodingKeys: String, CodingKey {+ case data+ }+ }+ /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse`.+ public struct AppWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse/data`.+ public var data: Components.Schemas.App+ /// - Remark: Generated from `#/components/schemas/AppWithoutIncludesResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `AppWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ public init(+ data: Components.Schemas.App,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse`.+ public struct BundleIdCapabilitiesWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/data`.+ public var data: [Components.Schemas.BundleIdCapability]+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `BundleIdCapabilitiesWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.BundleIdCapability],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse`.+ public struct ProfilesWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/data`.+ public var data: [Components.Schemas.Profile]+ /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/ProfilesWithoutIncludesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `ProfilesWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Profile],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse`.+ public struct BundleIdWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse/data`.+ public var data: Components.Schemas.BundleId+ /// - Remark: Generated from `#/components/schemas/BundleIdWithoutIncludesResponse/links`.+ public var links: Components.Schemas.DocumentLinks+ /// Creates a new `BundleIdWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ public init(+ data: Components.Schemas.BundleId,+ links: Components.Schemas.DocumentLinks+ ) {+ self.data = data+ self.links = links+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ }+ }+ /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse`.+ public struct CertificatesWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/data`.+ public var data: [Components.Schemas.Certificate]+ /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/CertificatesWithoutIncludesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `CertificatesWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Certificate],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse`.+ public struct DevicesWithoutIncludesResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/data`.+ public var data: [Components.Schemas.Device]+ /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/links`.+ public var links: Components.Schemas.PagedDocumentLinks+ /// - Remark: Generated from `#/components/schemas/DevicesWithoutIncludesResponse/meta`.+ public var meta: Components.Schemas.PagingInformation?+ /// Creates a new `DevicesWithoutIncludesResponse`.+ ///+ /// - Parameters:+ /// - data:+ /// - links:+ /// - meta:+ public init(+ data: [Components.Schemas.Device],+ links: Components.Schemas.PagedDocumentLinks,+ meta: Components.Schemas.PagingInformation? = nil+ ) {+ self.data = data+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case data+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorResponse`.+ public struct ErrorResponse: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload`.+ public struct errorsPayloadPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/id`.+ public var id: Swift.String?+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/status`.+ public var status: Swift.String+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/code`.+ public var code: Swift.String+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/title`.+ public var title: Swift.String+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/detail`.+ public var detail: Swift.String+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/source`.+ @frozen public enum sourcePayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/source/case1`.+ case ErrorSourcePointer(Components.Schemas.ErrorSourcePointer)+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/source/case2`.+ case ErrorSourceParameter(Components.Schemas.ErrorSourceParameter)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .ErrorSourcePointer(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .ErrorSourceParameter(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .ErrorSourcePointer(value):+ try value.encode(to: encoder)+ case let .ErrorSourceParameter(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/source`.+ public var source: Components.Schemas.ErrorResponse.errorsPayloadPayload.sourcePayload?+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/links`.+ public var links: Components.Schemas.ErrorLinks?+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/meta`.+ public struct metaPayload: Codable, Hashable, Sendable {+ /// A container of undocumented properties.+ public var additionalProperties: [String: OpenAPIRuntime.OpenAPIValueContainer]+ /// Creates a new `metaPayload`.+ ///+ /// - Parameters:+ /// - additionalProperties: A container of undocumented properties.+ public init(additionalProperties: [String: OpenAPIRuntime.OpenAPIValueContainer] = .init()) {+ self.additionalProperties = additionalProperties+ }+ public init(from decoder: any Decoder) throws {+ additionalProperties = try decoder.decodeAdditionalProperties(knownKeys: [])+ }+ public func encode(to encoder: any Encoder) throws {+ try encoder.encodeAdditionalProperties(additionalProperties)+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errorsPayload/meta`.+ public var meta: Components.Schemas.ErrorResponse.errorsPayloadPayload.metaPayload?+ /// Creates a new `errorsPayloadPayload`.+ ///+ /// - Parameters:+ /// - id:+ /// - status:+ /// - code:+ /// - title:+ /// - detail:+ /// - source:+ /// - links:+ /// - meta:+ public init(+ id: Swift.String? = nil,+ status: Swift.String,+ code: Swift.String,+ title: Swift.String,+ detail: Swift.String,+ source: Components.Schemas.ErrorResponse.errorsPayloadPayload.sourcePayload? = nil,+ links: Components.Schemas.ErrorLinks? = nil,+ meta: Components.Schemas.ErrorResponse.errorsPayloadPayload.metaPayload? = nil+ ) {+ self.id = id+ self.status = status+ self.code = code+ self.title = title+ self.detail = detail+ self.source = source+ self.links = links+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case id+ case status+ case code+ case title+ case detail+ case source+ case links+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errors`.+ public typealias errorsPayload = [Components.Schemas.ErrorResponse.errorsPayloadPayload]+ /// - Remark: Generated from `#/components/schemas/ErrorResponse/errors`.+ public var errors: Components.Schemas.ErrorResponse.errorsPayload?+ /// Creates a new `ErrorResponse`.+ ///+ /// - Parameters:+ /// - errors:+ public init(errors: Components.Schemas.ErrorResponse.errorsPayload? = nil) {+ self.errors = errors+ }+ public enum CodingKeys: String, CodingKey {+ case errors+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorSourceParameter`.+ public struct ErrorSourceParameter: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorSourceParameter/parameter`.+ public var parameter: Swift.String+ /// Creates a new `ErrorSourceParameter`.+ ///+ /// - Parameters:+ /// - parameter:+ public init(parameter: Swift.String) {+ self.parameter = parameter+ }+ public enum CodingKeys: String, CodingKey {+ case parameter+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorSourcePointer`.+ public struct ErrorSourcePointer: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorSourcePointer/pointer`.+ public var pointer: Swift.String+ /// Creates a new `ErrorSourcePointer`.+ ///+ /// - Parameters:+ /// - pointer:+ public init(pointer: Swift.String) {+ self.pointer = pointer+ }+ public enum CodingKeys: String, CodingKey {+ case pointer+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorLinks`.+ public struct ErrorLinks: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/about`.+ public var about: Swift.String?+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated`.+ @frozen public enum associatedPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case1`.+ case case1(Swift.String)+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2`.+ public struct Case2Payload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/href`.+ public var href: Swift.String?+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta`.+ public struct metaPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta/source`.+ public var source: Swift.String?+ /// Creates a new `metaPayload`.+ ///+ /// - Parameters:+ /// - source:+ public init(source: Swift.String? = nil) {+ self.source = source+ }+ public enum CodingKeys: String, CodingKey {+ case source+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2/meta`.+ public var meta: Components.Schemas.ErrorLinks.associatedPayload.Case2Payload.metaPayload?+ /// Creates a new `Case2Payload`.+ ///+ /// - Parameters:+ /// - href:+ /// - meta:+ public init(+ href: Swift.String? = nil,+ meta: Components.Schemas.ErrorLinks.associatedPayload.Case2Payload.metaPayload? = nil+ ) {+ self.href = href+ self.meta = meta+ }+ public enum CodingKeys: String, CodingKey {+ case href+ case meta+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated/case2`.+ case case2(Components.Schemas.ErrorLinks.associatedPayload.Case2Payload)+ public init(from decoder: any Decoder) throws {+ var errors: [any Error] = []+ do {+ self = .case1(try decoder.decodeFromSingleValueContainer())+ return+ } catch {+ errors.append(error)+ }+ do {+ self = .case2(try .init(from: decoder))+ return+ } catch {+ errors.append(error)+ }+ throw Swift.DecodingError.failedToDecodeOneOfSchema(+ type: Self.self,+ codingPath: decoder.codingPath,+ errors: errors+ )+ }+ public func encode(to encoder: any Encoder) throws {+ switch self {+ case let .case1(value):+ try encoder.encodeToSingleValueContainer(value)+ case let .case2(value):+ try value.encode(to: encoder)+ }+ }+ }+ /// - Remark: Generated from `#/components/schemas/ErrorLinks/associated`.+ public var associated: Components.Schemas.ErrorLinks.associatedPayload?+ /// Creates a new `ErrorLinks`.+ ///+ /// - Parameters:+ /// - about:+ /// - associated:+ public init(+ about: Swift.String? = nil,+ associated: Components.Schemas.ErrorLinks.associatedPayload? = nil+ ) {+ self.about = about+ self.associated = associated+ }+ public enum CodingKeys: String, CodingKey {+ case about+ case associated+ }+ }+ /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks`.+ public struct PagedDocumentLinks: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/self`.+ public var _self: Swift.String+ /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/first`.+ public var first: Swift.String?+ /// - Remark: Generated from `#/components/schemas/PagedDocumentLinks/next`.+ public var next: Swift.String?+ /// Creates a new `PagedDocumentLinks`.+ ///+ /// - Parameters:+ /// - _self:+ /// - first:+ /// - next:+ public init(+ _self: Swift.String,+ first: Swift.String? = nil,+ next: Swift.String? = nil+ ) {+ self._self = _self+ self.first = first+ self.next = next+ }+ public enum CodingKeys: String, CodingKey {+ case _self = "self"+ case first+ case next+ }+ }+ /// - Remark: Generated from `#/components/schemas/PagingInformation`.+ public struct PagingInformation: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/PagingInformation/paging`.+ public struct pagingPayload: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/PagingInformation/paging/total`.+ public var total: Swift.Int?+ /// - Remark: Generated from `#/components/schemas/PagingInformation/paging/limit`.+ public var limit: Swift.Int+ /// Creates a new `pagingPayload`.+ ///+ /// - Parameters:+ /// - total:+ /// - limit:+ public init(+ total: Swift.Int? = nil,+ limit: Swift.Int+ ) {+ self.total = total+ self.limit = limit+ }+ public enum CodingKeys: String, CodingKey {+ case total+ case limit+ }+ }+ /// - Remark: Generated from `#/components/schemas/PagingInformation/paging`.+ public var paging: Components.Schemas.PagingInformation.pagingPayload+ /// Creates a new `PagingInformation`.+ ///+ /// - Parameters:+ /// - paging:+ public init(paging: Components.Schemas.PagingInformation.pagingPayload) {+ self.paging = paging+ }+ public enum CodingKeys: String, CodingKey {+ case paging+ }+ }+ /// - Remark: Generated from `#/components/schemas/DocumentLinks`.+ public struct DocumentLinks: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/DocumentLinks/self`.+ public var _self: Swift.String+ /// Creates a new `DocumentLinks`.+ ///+ /// - Parameters:+ /// - _self:+ public init(_self: Swift.String) {+ self._self = _self+ }+ public enum CodingKeys: String, CodingKey {+ case _self = "self"+ }+ }+ /// - Remark: Generated from `#/components/schemas/ResourceLinks`.+ public struct ResourceLinks: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/ResourceLinks/self`.+ public var _self: Swift.String?+ /// Creates a new `ResourceLinks`.+ ///+ /// - Parameters:+ /// - _self:+ public init(_self: Swift.String? = nil) {+ self._self = _self+ }+ public enum CodingKeys: String, CodingKey {+ case _self = "self"+ }+ }+ /// - Remark: Generated from `#/components/schemas/RelationshipLinks`.+ public struct RelationshipLinks: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/RelationshipLinks/self`.+ public var _self: Swift.String?+ /// - Remark: Generated from `#/components/schemas/RelationshipLinks/related`.+ public var related: Swift.String?+ /// Creates a new `RelationshipLinks`.+ ///+ /// - Parameters:+ /// - _self:+ /// - related:+ public init(+ _self: Swift.String? = nil,+ related: Swift.String? = nil+ ) {+ self._self = _self+ self.related = related+ }+ public enum CodingKeys: String, CodingKey {+ case _self = "self"+ case related+ }+ }+ /// - Remark: Generated from `#/components/schemas/BundleIdPlatform`.+ @frozen public enum BundleIdPlatform: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS = "IOS"+ case MAC_OS = "MAC_OS"+ case UNIVERSAL = "UNIVERSAL"+ }+ /// - Remark: Generated from `#/components/schemas/CapabilityOption`.+ public struct CapabilityOption: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/key`.+ @frozen public enum keyPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case XCODE_5 = "XCODE_5"+ case XCODE_6 = "XCODE_6"+ case COMPLETE_PROTECTION = "COMPLETE_PROTECTION"+ case PROTECTED_UNLESS_OPEN = "PROTECTED_UNLESS_OPEN"+ case PROTECTED_UNTIL_FIRST_USER_AUTH = "PROTECTED_UNTIL_FIRST_USER_AUTH"+ case PRIMARY_APP_CONSENT = "PRIMARY_APP_CONSENT"+ }+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/key`.+ public var key: Components.Schemas.CapabilityOption.keyPayload?+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/description`.+ public var description: Swift.String?+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/enabledByDefault`.+ public var enabledByDefault: Swift.Bool?+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/enabled`.+ public var enabled: Swift.Bool?+ /// - Remark: Generated from `#/components/schemas/CapabilityOption/supportsWildcard`.+ public var supportsWildcard: Swift.Bool?+ /// Creates a new `CapabilityOption`.+ ///+ /// - Parameters:+ /// - key:+ /// - name:+ /// - description:+ /// - enabledByDefault:+ /// - enabled:+ /// - supportsWildcard:+ public init(+ key: Components.Schemas.CapabilityOption.keyPayload? = nil,+ name: Swift.String? = nil,+ description: Swift.String? = nil,+ enabledByDefault: Swift.Bool? = nil,+ enabled: Swift.Bool? = nil,+ supportsWildcard: Swift.Bool? = nil+ ) {+ self.key = key+ self.name = name+ self.description = description+ self.enabledByDefault = enabledByDefault+ self.enabled = enabled+ self.supportsWildcard = supportsWildcard+ }+ public enum CodingKeys: String, CodingKey {+ case key+ case name+ case description+ case enabledByDefault+ case enabled+ case supportsWildcard+ }+ }+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting`.+ public struct CapabilitySetting: Codable, Hashable, Sendable {+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key`.+ @frozen public enum keyPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ICLOUD_VERSION = "ICLOUD_VERSION"+ case DATA_PROTECTION_PERMISSION_LEVEL = "DATA_PROTECTION_PERMISSION_LEVEL"+ case APPLE_ID_AUTH_APP_CONSENT = "APPLE_ID_AUTH_APP_CONSENT"+ }+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/key`.+ public var key: Components.Schemas.CapabilitySetting.keyPayload?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/name`.+ public var name: Swift.String?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/description`.+ public var description: Swift.String?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/enabledByDefault`.+ public var enabledByDefault: Swift.Bool?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/visible`.+ public var visible: Swift.Bool?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances`.+ @frozen public enum allowedInstancesPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ENTRY = "ENTRY"+ case SINGLE = "SINGLE"+ case MULTIPLE = "MULTIPLE"+ }+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/allowedInstances`.+ public var allowedInstances: Components.Schemas.CapabilitySetting.allowedInstancesPayload?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/minInstances`.+ public var minInstances: Swift.Int?+ /// - Remark: Generated from `#/components/schemas/CapabilitySetting/options`.+ public var options: [Components.Schemas.CapabilityOption]?+ /// Creates a new `CapabilitySetting`.+ ///+ /// - Parameters:+ /// - key:+ /// - name:+ /// - description:+ /// - enabledByDefault:+ /// - visible:+ /// - allowedInstances:+ /// - minInstances:+ /// - options:+ public init(+ key: Components.Schemas.CapabilitySetting.keyPayload? = nil,+ name: Swift.String? = nil,+ description: Swift.String? = nil,+ enabledByDefault: Swift.Bool? = nil,+ visible: Swift.Bool? = nil,+ allowedInstances: Components.Schemas.CapabilitySetting.allowedInstancesPayload? = nil,+ minInstances: Swift.Int? = nil,+ options: [Components.Schemas.CapabilityOption]? = nil+ ) {+ self.key = key+ self.name = name+ self.description = description+ self.enabledByDefault = enabledByDefault+ self.visible = visible+ self.allowedInstances = allowedInstances+ self.minInstances = minInstances+ self.options = options+ }+ public enum CodingKeys: String, CodingKey {+ case key+ case name+ case description+ case enabledByDefault+ case visible+ case allowedInstances+ case minInstances+ case options+ }+ }+ /// - Remark: Generated from `#/components/schemas/CapabilityType`.+ @frozen public enum CapabilityType: String, Codable, Hashable, Sendable, CaseIterable {+ case ICLOUD = "ICLOUD"+ case IN_APP_PURCHASE = "IN_APP_PURCHASE"+ case GAME_CENTER = "GAME_CENTER"+ case PUSH_NOTIFICATIONS = "PUSH_NOTIFICATIONS"+ case WALLET = "WALLET"+ case INTER_APP_AUDIO = "INTER_APP_AUDIO"+ case MAPS = "MAPS"+ case ASSOCIATED_DOMAINS = "ASSOCIATED_DOMAINS"+ case PERSONAL_VPN = "PERSONAL_VPN"+ case APP_GROUPS = "APP_GROUPS"+ case HEALTHKIT = "HEALTHKIT"+ case HOMEKIT = "HOMEKIT"+ case WIRELESS_ACCESSORY_CONFIGURATION = "WIRELESS_ACCESSORY_CONFIGURATION"+ case APPLE_PAY = "APPLE_PAY"+ case DATA_PROTECTION = "DATA_PROTECTION"+ case SIRIKIT = "SIRIKIT"+ case NETWORK_EXTENSIONS = "NETWORK_EXTENSIONS"+ case MULTIPATH = "MULTIPATH"+ case HOT_SPOT = "HOT_SPOT"+ case NFC_TAG_READING = "NFC_TAG_READING"+ case CLASSKIT = "CLASSKIT"+ case AUTOFILL_CREDENTIAL_PROVIDER = "AUTOFILL_CREDENTIAL_PROVIDER"+ case ACCESS_WIFI_INFORMATION = "ACCESS_WIFI_INFORMATION"+ case NETWORK_CUSTOM_PROTOCOL = "NETWORK_CUSTOM_PROTOCOL"+ case COREMEDIA_HLS_LOW_LATENCY = "COREMEDIA_HLS_LOW_LATENCY"+ case SYSTEM_EXTENSION_INSTALL = "SYSTEM_EXTENSION_INSTALL"+ case USER_MANAGEMENT = "USER_MANAGEMENT"+ case APPLE_ID_AUTH = "APPLE_ID_AUTH"+ }+ /// - Remark: Generated from `#/components/schemas/CertificateType`.+ @frozen public enum CertificateType: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS_DEVELOPMENT = "IOS_DEVELOPMENT"+ case IOS_DISTRIBUTION = "IOS_DISTRIBUTION"+ case MAC_APP_DISTRIBUTION = "MAC_APP_DISTRIBUTION"+ case MAC_INSTALLER_DISTRIBUTION = "MAC_INSTALLER_DISTRIBUTION"+ case MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"+ case DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT"+ case DEVELOPER_ID_KEXT_G2 = "DEVELOPER_ID_KEXT_G2"+ case DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION"+ case DEVELOPER_ID_APPLICATION_G2 = "DEVELOPER_ID_APPLICATION_G2"+ case DEVELOPMENT = "DEVELOPMENT"+ case DISTRIBUTION = "DISTRIBUTION"+ case PASS_TYPE_ID = "PASS_TYPE_ID"+ case PASS_TYPE_ID_WITH_NFC = "PASS_TYPE_ID_WITH_NFC"+ }+ /// - Remark: Generated from `#/components/schemas/SubscriptionStatusUrlVersion`.+ @frozen public enum SubscriptionStatusUrlVersion: String, Codable, Hashable, Sendable, CaseIterable {+ case V1 = "V1"+ case V2 = "V2"+ }+ }+ /// Types generated from the `#/components/parameters` section of the OpenAPI document.+ public enum Parameters {}+ /// Types generated from the `#/components/requestBodies` section of the OpenAPI document.+ public enum RequestBodies {}+ /// Types generated from the `#/components/responses` section of the OpenAPI document.+ public enum Responses {}+ /// Types generated from the `#/components/headers` section of the OpenAPI document.+ public enum Headers {}+}++/// API operations, with input and output types, generated from `#/paths` in the OpenAPI document.+public enum Operations {+ /// - Remark: HTTP `POST /v1/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)`.+ public enum bundleIdCapabilities_createInstance {+ public static let id: Swift.String = "bundleIdCapabilities_createInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_createInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_createInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIdCapabilities_createInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/requestBody/content/application\/json`.+ case json(Components.Schemas.BundleIdCapabilityCreateRequest)+ }+ public var body: Operations.bundleIdCapabilities_createInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - headers:+ /// - body:+ public init(+ headers: Operations.bundleIdCapabilities_createInstance.Input.Headers = .init(),+ body: Operations.bundleIdCapabilities_createInstance.Input.Body+ ) {+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIdCapabilities_createInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIdCapabilities_createInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIdCapabilities_createInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIdCapabilities_createInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIdCapabilities_createInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIdCapabilities_createInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.bundleIdCapabilities_createInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.bundleIdCapabilities_createInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Created: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/201/content/application\/json`.+ case json(Components.Schemas.BundleIdCapabilityResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdCapabilityResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.Created.Body+ /// Creates a new `Created`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.Created.Body) {+ self.body = body+ }+ }+ /// Single BundleIdCapability+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/201`.+ ///+ /// HTTP response code: `201 created`.+ case created(Operations.bundleIdCapabilities_createInstance.Output.Created)+ /// The associated value of the enum case if `self` is `.created`.+ ///+ /// - Throws: An error if `self` is not `.created`.+ /// - SeeAlso: `.created`.+ public var created: Operations.bundleIdCapabilities_createInstance.Output.Created {+ get throws {+ switch self {+ case let .created(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "created",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/POST/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_createInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_createInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/post(bundleIdCapabilities_createInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIdCapabilities_createInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIdCapabilities_createInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `PATCH /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)`.+ public enum bundleIdCapabilities_updateInstance {+ public static let id: Swift.String = "bundleIdCapabilities_updateInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIdCapabilities_updateInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_updateInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_updateInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIdCapabilities_updateInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/requestBody/content/application\/json`.+ case json(Components.Schemas.BundleIdCapabilityUpdateRequest)+ }+ public var body: Operations.bundleIdCapabilities_updateInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ /// - body:+ public init(+ path: Operations.bundleIdCapabilities_updateInstance.Input.Path,+ headers: Operations.bundleIdCapabilities_updateInstance.Input.Headers = .init(),+ body: Operations.bundleIdCapabilities_updateInstance.Input.Body+ ) {+ self.path = path+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIdCapabilities_updateInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIdCapabilities_updateInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIdCapabilities_updateInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIdCapabilities_updateInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIdCapabilities_updateInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIdCapabilities_updateInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIdCapabilities_updateInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIdCapabilities_updateInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.bundleIdCapabilities_updateInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.bundleIdCapabilities_updateInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdCapabilityResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdCapabilityResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single BundleIdCapability+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIdCapabilities_updateInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIdCapabilities_updateInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/PATCH/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_updateInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_updateInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/patch(bundleIdCapabilities_updateInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIdCapabilities_updateInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIdCapabilities_updateInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `DELETE /v1/bundleIdCapabilities/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)`.+ public enum bundleIdCapabilities_deleteInstance {+ public static let id: Swift.String = "bundleIdCapabilities_deleteInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIdCapabilities_deleteInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_deleteInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIdCapabilities_deleteInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIdCapabilities_deleteInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ public init(+ path: Operations.bundleIdCapabilities_deleteInstance.Input.Path,+ headers: Operations.bundleIdCapabilities_deleteInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_deleteInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_deleteInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIdCapabilities_deleteInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIdCapabilities_deleteInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_deleteInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_deleteInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIdCapabilities_deleteInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIdCapabilities_deleteInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_deleteInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_deleteInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIdCapabilities_deleteInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIdCapabilities_deleteInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_deleteInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_deleteInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIdCapabilities_deleteInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIdCapabilities_deleteInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIdCapabilities/{id}/DELETE/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIdCapabilities_deleteInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIdCapabilities_deleteInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIdCapabilities_deleteInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIdCapabilities_deleteInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ public struct NoContent: Sendable, Hashable {+ /// Creates a new `NoContent`.+ public init() {}+ }+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ case noContent(Operations.bundleIdCapabilities_deleteInstance.Output.NoContent)+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIdCapabilities/{id}/delete(bundleIdCapabilities_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ public static var noContent: Self {+ .noContent(.init())+ }+ /// The associated value of the enum case if `self` is `.noContent`.+ ///+ /// - Throws: An error if `self` is not `.noContent`.+ /// - SeeAlso: `.noContent`.+ public var noContent: Operations.bundleIdCapabilities_deleteInstance.Output.NoContent {+ get throws {+ switch self {+ case let .noContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "noContent",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)`.+ public enum bundleIds_getCollection {+ public static let id: Swift.String = "bundleIds_getCollection"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query`.+ public struct Query: Sendable, Hashable {+ /// filter by attribute 'name'+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[name]`.+ public var filter_lbrack_name_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter_lbrack_platform_rbrack_Payload`.+ @frozen public enum filter_lbrack_platform_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS = "IOS"+ case MAC_OS = "MAC_OS"+ case UNIVERSAL = "UNIVERSAL"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[platform]`.+ public typealias filter_lbrack_platform_rbrack_Payload = [Operations.bundleIds_getCollection.Input.Query.filter_lbrack_platform_rbrack_PayloadPayload]+ /// filter by attribute 'platform'+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[platform]`.+ public var filter_lbrack_platform_rbrack_: Operations.bundleIds_getCollection.Input.Query.filter_lbrack_platform_rbrack_Payload?+ /// filter by attribute 'identifier'+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[identifier]`.+ public var filter_lbrack_identifier_rbrack_: [Swift.String]?+ /// filter by attribute 'seedId'+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[seedId]`.+ public var filter_lbrack_seedId_rbrack_: [Swift.String]?+ /// filter by id(s)+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/filter[id]`.+ public var filter_lbrack_id_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/sortPayload`.+ @frozen public enum sortPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case _hyphen_name = "-name"+ case platform = "platform"+ case _hyphen_platform = "-platform"+ case identifier = "identifier"+ case _hyphen_identifier = "-identifier"+ case seedId = "seedId"+ case _hyphen_seedId = "-seedId"+ case id = "id"+ case _hyphen_id = "-id"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/sort`.+ public typealias sortPayload = [Operations.bundleIds_getCollection.Input.Query.sortPayloadPayload]+ /// comma-separated list of sort expressions; resources will be sorted as specified+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/sort`.+ public var sort: Operations.bundleIds_getCollection.Input.Query.sortPayload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields_lbrack_bundleIds_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIds_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case identifier = "identifier"+ case seedId = "seedId"+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIds]`.+ public typealias fields_lbrack_bundleIds_rbrack_Payload = [Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIds+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIds]`.+ public var fields_lbrack_bundleIds_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields_lbrack_profiles_rbrack_Payload`.+ @frozen public enum fields_lbrack_profiles_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case profileType = "profileType"+ case profileState = "profileState"+ case profileContent = "profileContent"+ case uuid = "uuid"+ case createdDate = "createdDate"+ case expirationDate = "expirationDate"+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[profiles]`.+ public typealias fields_lbrack_profiles_rbrack_Payload = [Operations.bundleIds_getCollection.Input.Query.fields_lbrack_profiles_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type profiles+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[profiles]`.+ public var fields_lbrack_profiles_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_profiles_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields_lbrack_bundleIdCapabilities_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case capabilityType = "capabilityType"+ case settings = "settings"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIdCapabilities]`.+ public typealias fields_lbrack_bundleIdCapabilities_rbrack_Payload = [Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIdCapabilities+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[bundleIdCapabilities]`.+ public var fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields_lbrack_apps_rbrack_Payload`.+ @frozen public enum fields_lbrack_apps_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case bundleId = "bundleId"+ case sku = "sku"+ case primaryLocale = "primaryLocale"+ case isOrEverWasMadeForKids = "isOrEverWasMadeForKids"+ case subscriptionStatusUrl = "subscriptionStatusUrl"+ case subscriptionStatusUrlVersion = "subscriptionStatusUrlVersion"+ case subscriptionStatusUrlForSandbox = "subscriptionStatusUrlForSandbox"+ case subscriptionStatusUrlVersionForSandbox = "subscriptionStatusUrlVersionForSandbox"+ case contentRightsDeclaration = "contentRightsDeclaration"+ case streamlinedPurchasingEnabled = "streamlinedPurchasingEnabled"+ case appEncryptionDeclarations = "appEncryptionDeclarations"+ case ciProduct = "ciProduct"+ case betaTesters = "betaTesters"+ case betaGroups = "betaGroups"+ case appStoreVersions = "appStoreVersions"+ case preReleaseVersions = "preReleaseVersions"+ case betaAppLocalizations = "betaAppLocalizations"+ case builds = "builds"+ case betaLicenseAgreement = "betaLicenseAgreement"+ case betaAppReviewDetail = "betaAppReviewDetail"+ case appInfos = "appInfos"+ case appClips = "appClips"+ case appPricePoints = "appPricePoints"+ case endUserLicenseAgreement = "endUserLicenseAgreement"+ case appPriceSchedule = "appPriceSchedule"+ case appAvailabilityV2 = "appAvailabilityV2"+ case inAppPurchases = "inAppPurchases"+ case subscriptionGroups = "subscriptionGroups"+ case gameCenterEnabledVersions = "gameCenterEnabledVersions"+ case perfPowerMetrics = "perfPowerMetrics"+ case appCustomProductPages = "appCustomProductPages"+ case inAppPurchasesV2 = "inAppPurchasesV2"+ case promotedPurchases = "promotedPurchases"+ case appEvents = "appEvents"+ case reviewSubmissions = "reviewSubmissions"+ case subscriptionGracePeriod = "subscriptionGracePeriod"+ case customerReviews = "customerReviews"+ case gameCenterDetail = "gameCenterDetail"+ case appStoreVersionExperimentsV2 = "appStoreVersionExperimentsV2"+ case alternativeDistributionKey = "alternativeDistributionKey"+ case analyticsReportRequests = "analyticsReportRequests"+ case marketplaceSearchDetail = "marketplaceSearchDetail"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[apps]`.+ public typealias fields_lbrack_apps_rbrack_Payload = [Operations.bundleIds_getCollection.Input.Query.fields_lbrack_apps_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type apps+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/fields[apps]`.+ public var fields_lbrack_apps_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_apps_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit`.+ public var limit: Swift.Int?+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/includePayload`.+ @frozen public enum includePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/include`.+ public typealias includePayload = [Operations.bundleIds_getCollection.Input.Query.includePayloadPayload]+ /// comma-separated list of relationships to include+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/include`.+ public var include: Operations.bundleIds_getCollection.Input.Query.includePayload?+ /// maximum number of related bundleIdCapabilities returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit[bundleIdCapabilities]`.+ public var limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int?+ /// maximum number of related profiles returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/query/limit[profiles]`.+ public var limit_lbrack_profiles_rbrack_: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - filter_lbrack_name_rbrack_: filter by attribute 'name'+ /// - filter_lbrack_platform_rbrack_: filter by attribute 'platform'+ /// - filter_lbrack_identifier_rbrack_: filter by attribute 'identifier'+ /// - filter_lbrack_seedId_rbrack_: filter by attribute 'seedId'+ /// - filter_lbrack_id_rbrack_: filter by id(s)+ /// - sort: comma-separated list of sort expressions; resources will be sorted as specified+ /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds+ /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles+ /// - fields_lbrack_bundleIdCapabilities_rbrack_: the fields to include for returned resources of type bundleIdCapabilities+ /// - fields_lbrack_apps_rbrack_: the fields to include for returned resources of type apps+ /// - limit: maximum resources per page+ /// - include: comma-separated list of relationships to include+ /// - limit_lbrack_bundleIdCapabilities_rbrack_: maximum number of related bundleIdCapabilities returned (when they are included)+ /// - limit_lbrack_profiles_rbrack_: maximum number of related profiles returned (when they are included)+ public init(+ filter_lbrack_name_rbrack_: [Swift.String]? = nil,+ filter_lbrack_platform_rbrack_: Operations.bundleIds_getCollection.Input.Query.filter_lbrack_platform_rbrack_Payload? = nil,+ filter_lbrack_identifier_rbrack_: [Swift.String]? = nil,+ filter_lbrack_seedId_rbrack_: [Swift.String]? = nil,+ filter_lbrack_id_rbrack_: [Swift.String]? = nil,+ sort: Operations.bundleIds_getCollection.Input.Query.sortPayload? = nil,+ fields_lbrack_bundleIds_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_Payload? = nil,+ fields_lbrack_profiles_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_profiles_rbrack_Payload? = nil,+ fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload? = nil,+ fields_lbrack_apps_rbrack_: Operations.bundleIds_getCollection.Input.Query.fields_lbrack_apps_rbrack_Payload? = nil,+ limit: Swift.Int? = nil,+ include: Operations.bundleIds_getCollection.Input.Query.includePayload? = nil,+ limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int? = nil,+ limit_lbrack_profiles_rbrack_: Swift.Int? = nil+ ) {+ self.filter_lbrack_name_rbrack_ = filter_lbrack_name_rbrack_+ self.filter_lbrack_platform_rbrack_ = filter_lbrack_platform_rbrack_+ self.filter_lbrack_identifier_rbrack_ = filter_lbrack_identifier_rbrack_+ self.filter_lbrack_seedId_rbrack_ = filter_lbrack_seedId_rbrack_+ self.filter_lbrack_id_rbrack_ = filter_lbrack_id_rbrack_+ self.sort = sort+ self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_+ self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_+ self.fields_lbrack_bundleIdCapabilities_rbrack_ = fields_lbrack_bundleIdCapabilities_rbrack_+ self.fields_lbrack_apps_rbrack_ = fields_lbrack_apps_rbrack_+ self.limit = limit+ self.include = include+ self.limit_lbrack_bundleIdCapabilities_rbrack_ = limit_lbrack_bundleIdCapabilities_rbrack_+ self.limit_lbrack_profiles_rbrack_ = limit_lbrack_profiles_rbrack_+ }+ }+ public var query: Operations.bundleIds_getCollection.Input.Query+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_getCollection.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_getCollection.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_getCollection.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - query:+ /// - headers:+ public init(+ query: Operations.bundleIds_getCollection.Input.Query = .init(),+ headers: Operations.bundleIds_getCollection.Input.Headers = .init()+ ) {+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getCollection.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getCollection.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_getCollection.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_getCollection.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getCollection.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getCollection.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_getCollection.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_getCollection.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getCollection.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getCollection.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_getCollection.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_getCollection.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdsResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdsResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getCollection.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getCollection.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of BundleIds+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/get(bundleIds_getCollection)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_getCollection.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_getCollection.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `POST /v1/bundleIds`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)`.+ public enum bundleIds_createInstance {+ public static let id: Swift.String = "bundleIds_createInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_createInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_createInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_createInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/requestBody/content/application\/json`.+ case json(Components.Schemas.BundleIdCreateRequest)+ }+ public var body: Operations.bundleIds_createInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - headers:+ /// - body:+ public init(+ headers: Operations.bundleIds_createInstance.Input.Headers = .init(),+ body: Operations.bundleIds_createInstance.Input.Body+ ) {+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_createInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_createInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_createInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_createInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_createInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_createInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.bundleIds_createInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.bundleIds_createInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Created: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/201/content/application\/json`.+ case json(Components.Schemas.BundleIdResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.Created.Body+ /// Creates a new `Created`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.Created.Body) {+ self.body = body+ }+ }+ /// Single BundleId+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/201`.+ ///+ /// HTTP response code: `201 created`.+ case created(Operations.bundleIds_createInstance.Output.Created)+ /// The associated value of the enum case if `self` is `.created`.+ ///+ /// - Throws: An error if `self` is not `.created`.+ /// - SeeAlso: `.created`.+ public var created: Operations.bundleIds_createInstance.Output.Created {+ get throws {+ switch self {+ case let .created(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "created",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/POST/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_createInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_createInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/post(bundleIds_createInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIds_createInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIds_createInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)`.+ public enum bundleIds_getInstance {+ public static let id: Swift.String = "bundleIds_getInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_getInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields_lbrack_bundleIds_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIds_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case identifier = "identifier"+ case seedId = "seedId"+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIds]`.+ public typealias fields_lbrack_bundleIds_rbrack_Payload = [Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIds+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIds]`.+ public var fields_lbrack_bundleIds_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields_lbrack_profiles_rbrack_Payload`.+ @frozen public enum fields_lbrack_profiles_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case profileType = "profileType"+ case profileState = "profileState"+ case profileContent = "profileContent"+ case uuid = "uuid"+ case createdDate = "createdDate"+ case expirationDate = "expirationDate"+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[profiles]`.+ public typealias fields_lbrack_profiles_rbrack_Payload = [Operations.bundleIds_getInstance.Input.Query.fields_lbrack_profiles_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type profiles+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[profiles]`.+ public var fields_lbrack_profiles_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_profiles_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields_lbrack_bundleIdCapabilities_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case capabilityType = "capabilityType"+ case settings = "settings"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIdCapabilities]`.+ public typealias fields_lbrack_bundleIdCapabilities_rbrack_Payload = [Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIdCapabilities+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[bundleIdCapabilities]`.+ public var fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields_lbrack_apps_rbrack_Payload`.+ @frozen public enum fields_lbrack_apps_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case bundleId = "bundleId"+ case sku = "sku"+ case primaryLocale = "primaryLocale"+ case isOrEverWasMadeForKids = "isOrEverWasMadeForKids"+ case subscriptionStatusUrl = "subscriptionStatusUrl"+ case subscriptionStatusUrlVersion = "subscriptionStatusUrlVersion"+ case subscriptionStatusUrlForSandbox = "subscriptionStatusUrlForSandbox"+ case subscriptionStatusUrlVersionForSandbox = "subscriptionStatusUrlVersionForSandbox"+ case contentRightsDeclaration = "contentRightsDeclaration"+ case streamlinedPurchasingEnabled = "streamlinedPurchasingEnabled"+ case appEncryptionDeclarations = "appEncryptionDeclarations"+ case ciProduct = "ciProduct"+ case betaTesters = "betaTesters"+ case betaGroups = "betaGroups"+ case appStoreVersions = "appStoreVersions"+ case preReleaseVersions = "preReleaseVersions"+ case betaAppLocalizations = "betaAppLocalizations"+ case builds = "builds"+ case betaLicenseAgreement = "betaLicenseAgreement"+ case betaAppReviewDetail = "betaAppReviewDetail"+ case appInfos = "appInfos"+ case appClips = "appClips"+ case appPricePoints = "appPricePoints"+ case endUserLicenseAgreement = "endUserLicenseAgreement"+ case appPriceSchedule = "appPriceSchedule"+ case appAvailabilityV2 = "appAvailabilityV2"+ case inAppPurchases = "inAppPurchases"+ case subscriptionGroups = "subscriptionGroups"+ case gameCenterEnabledVersions = "gameCenterEnabledVersions"+ case perfPowerMetrics = "perfPowerMetrics"+ case appCustomProductPages = "appCustomProductPages"+ case inAppPurchasesV2 = "inAppPurchasesV2"+ case promotedPurchases = "promotedPurchases"+ case appEvents = "appEvents"+ case reviewSubmissions = "reviewSubmissions"+ case subscriptionGracePeriod = "subscriptionGracePeriod"+ case customerReviews = "customerReviews"+ case gameCenterDetail = "gameCenterDetail"+ case appStoreVersionExperimentsV2 = "appStoreVersionExperimentsV2"+ case alternativeDistributionKey = "alternativeDistributionKey"+ case analyticsReportRequests = "analyticsReportRequests"+ case marketplaceSearchDetail = "marketplaceSearchDetail"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[apps]`.+ public typealias fields_lbrack_apps_rbrack_Payload = [Operations.bundleIds_getInstance.Input.Query.fields_lbrack_apps_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type apps+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/fields[apps]`.+ public var fields_lbrack_apps_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_apps_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/includePayload`.+ @frozen public enum includePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/include`.+ public typealias includePayload = [Operations.bundleIds_getInstance.Input.Query.includePayloadPayload]+ /// comma-separated list of relationships to include+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/include`.+ public var include: Operations.bundleIds_getInstance.Input.Query.includePayload?+ /// maximum number of related bundleIdCapabilities returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/limit[bundleIdCapabilities]`.+ public var limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int?+ /// maximum number of related profiles returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/query/limit[profiles]`.+ public var limit_lbrack_profiles_rbrack_: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds+ /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles+ /// - fields_lbrack_bundleIdCapabilities_rbrack_: the fields to include for returned resources of type bundleIdCapabilities+ /// - fields_lbrack_apps_rbrack_: the fields to include for returned resources of type apps+ /// - include: comma-separated list of relationships to include+ /// - limit_lbrack_bundleIdCapabilities_rbrack_: maximum number of related bundleIdCapabilities returned (when they are included)+ /// - limit_lbrack_profiles_rbrack_: maximum number of related profiles returned (when they are included)+ public init(+ fields_lbrack_bundleIds_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_Payload? = nil,+ fields_lbrack_profiles_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_profiles_rbrack_Payload? = nil,+ fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload? = nil,+ fields_lbrack_apps_rbrack_: Operations.bundleIds_getInstance.Input.Query.fields_lbrack_apps_rbrack_Payload? = nil,+ include: Operations.bundleIds_getInstance.Input.Query.includePayload? = nil,+ limit_lbrack_bundleIdCapabilities_rbrack_: Swift.Int? = nil,+ limit_lbrack_profiles_rbrack_: Swift.Int? = nil+ ) {+ self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_+ self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_+ self.fields_lbrack_bundleIdCapabilities_rbrack_ = fields_lbrack_bundleIdCapabilities_rbrack_+ self.fields_lbrack_apps_rbrack_ = fields_lbrack_apps_rbrack_+ self.include = include+ self.limit_lbrack_bundleIdCapabilities_rbrack_ = limit_lbrack_bundleIdCapabilities_rbrack_+ self.limit_lbrack_profiles_rbrack_ = limit_lbrack_profiles_rbrack_+ }+ }+ public var query: Operations.bundleIds_getInstance.Input.Query+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_getInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_getInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_getInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.bundleIds_getInstance.Input.Path,+ query: Operations.bundleIds_getInstance.Input.Query = .init(),+ headers: Operations.bundleIds_getInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_getInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_getInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_getInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_getInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_getInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_getInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_getInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_getInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_getInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_getInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single BundleId+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/get(bundleIds_getInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_getInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_getInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `PATCH /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)`.+ public enum bundleIds_updateInstance {+ public static let id: Swift.String = "bundleIds_updateInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_updateInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_updateInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_updateInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_updateInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/requestBody/content/application\/json`.+ case json(Components.Schemas.BundleIdUpdateRequest)+ }+ public var body: Operations.bundleIds_updateInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ /// - body:+ public init(+ path: Operations.bundleIds_updateInstance.Input.Path,+ headers: Operations.bundleIds_updateInstance.Input.Headers = .init(),+ body: Operations.bundleIds_updateInstance.Input.Body+ ) {+ self.path = path+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_updateInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_updateInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_updateInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_updateInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_updateInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_updateInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_updateInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_updateInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.bundleIds_updateInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.bundleIds_updateInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single BundleId+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_updateInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_updateInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/PATCH/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_updateInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_updateInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/patch(bundleIds_updateInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIds_updateInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIds_updateInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `DELETE /v1/bundleIds/{id}`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)`.+ public enum bundleIds_deleteInstance {+ public static let id: Swift.String = "bundleIds_deleteInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_deleteInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_deleteInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_deleteInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_deleteInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ public init(+ path: Operations.bundleIds_deleteInstance.Input.Path,+ headers: Operations.bundleIds_deleteInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_deleteInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_deleteInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_deleteInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_deleteInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_deleteInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_deleteInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_deleteInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_deleteInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_deleteInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_deleteInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_deleteInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_deleteInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_deleteInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_deleteInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_deleteInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_deleteInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/DELETE/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_deleteInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_deleteInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.bundleIds_deleteInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.bundleIds_deleteInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ public struct NoContent: Sendable, Hashable {+ /// Creates a new `NoContent`.+ public init() {}+ }+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ case noContent(Operations.bundleIds_deleteInstance.Output.NoContent)+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/delete(bundleIds_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ public static var noContent: Self {+ .noContent(.init())+ }+ /// The associated value of the enum case if `self` is `.noContent`.+ ///+ /// - Throws: An error if `self` is not `.noContent`.+ /// - SeeAlso: `.noContent`.+ public var noContent: Operations.bundleIds_deleteInstance.Output.NoContent {+ get throws {+ switch self {+ case let .noContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "noContent",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)`.+ public enum certificates_getCollection {+ public static let id: Swift.String = "certificates_getCollection"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query`.+ public struct Query: Sendable, Hashable {+ /// filter by attribute 'displayName'+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter[displayName]`.+ public var filter_lbrack_displayName_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter_lbrack_certificateType_rbrack_Payload`.+ @frozen public enum filter_lbrack_certificateType_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS_DEVELOPMENT = "IOS_DEVELOPMENT"+ case IOS_DISTRIBUTION = "IOS_DISTRIBUTION"+ case MAC_APP_DISTRIBUTION = "MAC_APP_DISTRIBUTION"+ case MAC_INSTALLER_DISTRIBUTION = "MAC_INSTALLER_DISTRIBUTION"+ case MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"+ case DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT"+ case DEVELOPER_ID_KEXT_G2 = "DEVELOPER_ID_KEXT_G2"+ case DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION"+ case DEVELOPER_ID_APPLICATION_G2 = "DEVELOPER_ID_APPLICATION_G2"+ case DEVELOPMENT = "DEVELOPMENT"+ case DISTRIBUTION = "DISTRIBUTION"+ case PASS_TYPE_ID = "PASS_TYPE_ID"+ case PASS_TYPE_ID_WITH_NFC = "PASS_TYPE_ID_WITH_NFC"+ }+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter[certificateType]`.+ public typealias filter_lbrack_certificateType_rbrack_Payload = [Operations.certificates_getCollection.Input.Query.filter_lbrack_certificateType_rbrack_PayloadPayload]+ /// filter by attribute 'certificateType'+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter[certificateType]`.+ public var filter_lbrack_certificateType_rbrack_: Operations.certificates_getCollection.Input.Query.filter_lbrack_certificateType_rbrack_Payload?+ /// filter by attribute 'serialNumber'+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter[serialNumber]`.+ public var filter_lbrack_serialNumber_rbrack_: [Swift.String]?+ /// filter by id(s)+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/filter[id]`.+ public var filter_lbrack_id_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/sortPayload`.+ @frozen public enum sortPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case displayName = "displayName"+ case _hyphen_displayName = "-displayName"+ case certificateType = "certificateType"+ case _hyphen_certificateType = "-certificateType"+ case serialNumber = "serialNumber"+ case _hyphen_serialNumber = "-serialNumber"+ case id = "id"+ case _hyphen_id = "-id"+ }+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/sort`.+ public typealias sortPayload = [Operations.certificates_getCollection.Input.Query.sortPayloadPayload]+ /// comma-separated list of sort expressions; resources will be sorted as specified+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/sort`.+ public var sort: Operations.certificates_getCollection.Input.Query.sortPayload?+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/fields_lbrack_certificates_rbrack_Payload`.+ @frozen public enum fields_lbrack_certificates_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case certificateType = "certificateType"+ case displayName = "displayName"+ case serialNumber = "serialNumber"+ case platform = "platform"+ case expirationDate = "expirationDate"+ case certificateContent = "certificateContent"+ }+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/fields[certificates]`.+ public typealias fields_lbrack_certificates_rbrack_Payload = [Operations.certificates_getCollection.Input.Query.fields_lbrack_certificates_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type certificates+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/fields[certificates]`.+ public var fields_lbrack_certificates_rbrack_: Operations.certificates_getCollection.Input.Query.fields_lbrack_certificates_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - filter_lbrack_displayName_rbrack_: filter by attribute 'displayName'+ /// - filter_lbrack_certificateType_rbrack_: filter by attribute 'certificateType'+ /// - filter_lbrack_serialNumber_rbrack_: filter by attribute 'serialNumber'+ /// - filter_lbrack_id_rbrack_: filter by id(s)+ /// - sort: comma-separated list of sort expressions; resources will be sorted as specified+ /// - fields_lbrack_certificates_rbrack_: the fields to include for returned resources of type certificates+ /// - limit: maximum resources per page+ public init(+ filter_lbrack_displayName_rbrack_: [Swift.String]? = nil,+ filter_lbrack_certificateType_rbrack_: Operations.certificates_getCollection.Input.Query.filter_lbrack_certificateType_rbrack_Payload? = nil,+ filter_lbrack_serialNumber_rbrack_: [Swift.String]? = nil,+ filter_lbrack_id_rbrack_: [Swift.String]? = nil,+ sort: Operations.certificates_getCollection.Input.Query.sortPayload? = nil,+ fields_lbrack_certificates_rbrack_: Operations.certificates_getCollection.Input.Query.fields_lbrack_certificates_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.filter_lbrack_displayName_rbrack_ = filter_lbrack_displayName_rbrack_+ self.filter_lbrack_certificateType_rbrack_ = filter_lbrack_certificateType_rbrack_+ self.filter_lbrack_serialNumber_rbrack_ = filter_lbrack_serialNumber_rbrack_+ self.filter_lbrack_id_rbrack_ = filter_lbrack_id_rbrack_+ self.sort = sort+ self.fields_lbrack_certificates_rbrack_ = fields_lbrack_certificates_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.certificates_getCollection.Input.Query+ /// - Remark: Generated from `#/paths/v1/certificates/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_getCollection.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_getCollection.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.certificates_getCollection.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - query:+ /// - headers:+ public init(+ query: Operations.certificates_getCollection.Input.Query = .init(),+ headers: Operations.certificates_getCollection.Input.Headers = .init()+ ) {+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getCollection.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getCollection.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.certificates_getCollection.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.certificates_getCollection.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getCollection.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getCollection.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.certificates_getCollection.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.certificates_getCollection.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getCollection.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getCollection.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.certificates_getCollection.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.certificates_getCollection.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.CertificatesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.CertificatesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getCollection.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getCollection.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Certificates+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/get(certificates_getCollection)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.certificates_getCollection.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.certificates_getCollection.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `POST /v1/certificates`.+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)`.+ public enum certificates_createInstance {+ public static let id: Swift.String = "certificates_createInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_createInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_createInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.certificates_createInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/certificates/POST/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/requestBody/content/application\/json`.+ case json(Components.Schemas.CertificateCreateRequest)+ }+ public var body: Operations.certificates_createInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - headers:+ /// - body:+ public init(+ headers: Operations.certificates_createInstance.Input.Headers = .init(),+ body: Operations.certificates_createInstance.Input.Body+ ) {+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.certificates_createInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.certificates_createInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.certificates_createInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.certificates_createInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.certificates_createInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.certificates_createInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.certificates_createInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.certificates_createInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Created: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/201/content/application\/json`.+ case json(Components.Schemas.CertificateResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.CertificateResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.Created.Body+ /// Creates a new `Created`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.Created.Body) {+ self.body = body+ }+ }+ /// Single Certificate+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/201`.+ ///+ /// HTTP response code: `201 created`.+ case created(Operations.certificates_createInstance.Output.Created)+ /// The associated value of the enum case if `self` is `.created`.+ ///+ /// - Throws: An error if `self` is not `.created`.+ /// - SeeAlso: `.created`.+ public var created: Operations.certificates_createInstance.Output.Created {+ get throws {+ switch self {+ case let .created(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "created",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/POST/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_createInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_createInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/post(certificates_createInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.certificates_createInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.certificates_createInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)`.+ public enum certificates_getInstance {+ public static let id: Swift.String = "certificates_getInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.certificates_getInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/query/fields_lbrack_certificates_rbrack_Payload`.+ @frozen public enum fields_lbrack_certificates_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case certificateType = "certificateType"+ case displayName = "displayName"+ case serialNumber = "serialNumber"+ case platform = "platform"+ case expirationDate = "expirationDate"+ case certificateContent = "certificateContent"+ }+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/query/fields[certificates]`.+ public typealias fields_lbrack_certificates_rbrack_Payload = [Operations.certificates_getInstance.Input.Query.fields_lbrack_certificates_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type certificates+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/query/fields[certificates]`.+ public var fields_lbrack_certificates_rbrack_: Operations.certificates_getInstance.Input.Query.fields_lbrack_certificates_rbrack_Payload?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_certificates_rbrack_: the fields to include for returned resources of type certificates+ public init(fields_lbrack_certificates_rbrack_: Operations.certificates_getInstance.Input.Query.fields_lbrack_certificates_rbrack_Payload? = nil) {+ self.fields_lbrack_certificates_rbrack_ = fields_lbrack_certificates_rbrack_+ }+ }+ public var query: Operations.certificates_getInstance.Input.Query+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_getInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_getInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.certificates_getInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.certificates_getInstance.Input.Path,+ query: Operations.certificates_getInstance.Input.Query = .init(),+ headers: Operations.certificates_getInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.certificates_getInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.certificates_getInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.certificates_getInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.certificates_getInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.certificates_getInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.certificates_getInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.certificates_getInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.certificates_getInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.CertificateResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.CertificateResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_getInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_getInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single Certificate+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/get(certificates_getInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.certificates_getInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.certificates_getInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `DELETE /v1/certificates/{id}`.+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)`.+ public enum certificates_deleteInstance {+ public static let id: Swift.String = "certificates_deleteInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.certificates_deleteInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_deleteInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.certificates_deleteInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.certificates_deleteInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ public init(+ path: Operations.certificates_deleteInstance.Input.Path,+ headers: Operations.certificates_deleteInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_deleteInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_deleteInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.certificates_deleteInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.certificates_deleteInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_deleteInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_deleteInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.certificates_deleteInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.certificates_deleteInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_deleteInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_deleteInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.certificates_deleteInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.certificates_deleteInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_deleteInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_deleteInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.certificates_deleteInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.certificates_deleteInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/certificates/{id}/DELETE/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.certificates_deleteInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.certificates_deleteInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.certificates_deleteInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.certificates_deleteInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ public struct NoContent: Sendable, Hashable {+ /// Creates a new `NoContent`.+ public init() {}+ }+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ case noContent(Operations.certificates_deleteInstance.Output.NoContent)+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/certificates/{id}/delete(certificates_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ public static var noContent: Self {+ .noContent(.init())+ }+ /// The associated value of the enum case if `self` is `.noContent`.+ ///+ /// - Throws: An error if `self` is not `.noContent`.+ /// - SeeAlso: `.noContent`.+ public var noContent: Operations.certificates_deleteInstance.Output.NoContent {+ get throws {+ switch self {+ case let .noContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "noContent",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)`.+ public enum devices_getCollection {+ public static let id: Swift.String = "devices_getCollection"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/query`.+ public struct Query: Sendable, Hashable {+ /// filter by attribute 'name'+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[name]`.+ public var filter_lbrack_name_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter_lbrack_platform_rbrack_Payload`.+ @frozen public enum filter_lbrack_platform_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS = "IOS"+ case MAC_OS = "MAC_OS"+ case UNIVERSAL = "UNIVERSAL"+ }+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[platform]`.+ public typealias filter_lbrack_platform_rbrack_Payload = [Operations.devices_getCollection.Input.Query.filter_lbrack_platform_rbrack_PayloadPayload]+ /// filter by attribute 'platform'+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[platform]`.+ public var filter_lbrack_platform_rbrack_: Operations.devices_getCollection.Input.Query.filter_lbrack_platform_rbrack_Payload?+ /// filter by attribute 'udid'+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[udid]`.+ public var filter_lbrack_udid_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter_lbrack_status_rbrack_Payload`.+ @frozen public enum filter_lbrack_status_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ENABLED = "ENABLED"+ case DISABLED = "DISABLED"+ }+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[status]`.+ public typealias filter_lbrack_status_rbrack_Payload = [Operations.devices_getCollection.Input.Query.filter_lbrack_status_rbrack_PayloadPayload]+ /// filter by attribute 'status'+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[status]`.+ public var filter_lbrack_status_rbrack_: Operations.devices_getCollection.Input.Query.filter_lbrack_status_rbrack_Payload?+ /// filter by id(s)+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/filter[id]`.+ public var filter_lbrack_id_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/sortPayload`.+ @frozen public enum sortPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case _hyphen_name = "-name"+ case platform = "platform"+ case _hyphen_platform = "-platform"+ case udid = "udid"+ case _hyphen_udid = "-udid"+ case status = "status"+ case _hyphen_status = "-status"+ case id = "id"+ case _hyphen_id = "-id"+ }+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/sort`.+ public typealias sortPayload = [Operations.devices_getCollection.Input.Query.sortPayloadPayload]+ /// comma-separated list of sort expressions; resources will be sorted as specified+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/sort`.+ public var sort: Operations.devices_getCollection.Input.Query.sortPayload?+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/fields_lbrack_devices_rbrack_Payload`.+ @frozen public enum fields_lbrack_devices_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case udid = "udid"+ case deviceClass = "deviceClass"+ case status = "status"+ case model = "model"+ case addedDate = "addedDate"+ }+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/fields[devices]`.+ public typealias fields_lbrack_devices_rbrack_Payload = [Operations.devices_getCollection.Input.Query.fields_lbrack_devices_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type devices+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/fields[devices]`.+ public var fields_lbrack_devices_rbrack_: Operations.devices_getCollection.Input.Query.fields_lbrack_devices_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/devices/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - filter_lbrack_name_rbrack_: filter by attribute 'name'+ /// - filter_lbrack_platform_rbrack_: filter by attribute 'platform'+ /// - filter_lbrack_udid_rbrack_: filter by attribute 'udid'+ /// - filter_lbrack_status_rbrack_: filter by attribute 'status'+ /// - filter_lbrack_id_rbrack_: filter by id(s)+ /// - sort: comma-separated list of sort expressions; resources will be sorted as specified+ /// - fields_lbrack_devices_rbrack_: the fields to include for returned resources of type devices+ /// - limit: maximum resources per page+ public init(+ filter_lbrack_name_rbrack_: [Swift.String]? = nil,+ filter_lbrack_platform_rbrack_: Operations.devices_getCollection.Input.Query.filter_lbrack_platform_rbrack_Payload? = nil,+ filter_lbrack_udid_rbrack_: [Swift.String]? = nil,+ filter_lbrack_status_rbrack_: Operations.devices_getCollection.Input.Query.filter_lbrack_status_rbrack_Payload? = nil,+ filter_lbrack_id_rbrack_: [Swift.String]? = nil,+ sort: Operations.devices_getCollection.Input.Query.sortPayload? = nil,+ fields_lbrack_devices_rbrack_: Operations.devices_getCollection.Input.Query.fields_lbrack_devices_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.filter_lbrack_name_rbrack_ = filter_lbrack_name_rbrack_+ self.filter_lbrack_platform_rbrack_ = filter_lbrack_platform_rbrack_+ self.filter_lbrack_udid_rbrack_ = filter_lbrack_udid_rbrack_+ self.filter_lbrack_status_rbrack_ = filter_lbrack_status_rbrack_+ self.filter_lbrack_id_rbrack_ = filter_lbrack_id_rbrack_+ self.sort = sort+ self.fields_lbrack_devices_rbrack_ = fields_lbrack_devices_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.devices_getCollection.Input.Query+ /// - Remark: Generated from `#/paths/v1/devices/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_getCollection.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_getCollection.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.devices_getCollection.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - query:+ /// - headers:+ public init(+ query: Operations.devices_getCollection.Input.Query = .init(),+ headers: Operations.devices_getCollection.Input.Headers = .init()+ ) {+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getCollection.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getCollection.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.devices_getCollection.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.devices_getCollection.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getCollection.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getCollection.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.devices_getCollection.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.devices_getCollection.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getCollection.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getCollection.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.devices_getCollection.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.devices_getCollection.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.DevicesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.DevicesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getCollection.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getCollection.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Devices+ ///+ /// - Remark: Generated from `#/paths//v1/devices/get(devices_getCollection)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.devices_getCollection.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.devices_getCollection.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `POST /v1/devices`.+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)`.+ public enum devices_createInstance {+ public static let id: Swift.String = "devices_createInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_createInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_createInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.devices_createInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/devices/POST/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/requestBody/content/application\/json`.+ case json(Components.Schemas.DeviceCreateRequest)+ }+ public var body: Operations.devices_createInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - headers:+ /// - body:+ public init(+ headers: Operations.devices_createInstance.Input.Headers = .init(),+ body: Operations.devices_createInstance.Input.Body+ ) {+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.devices_createInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.devices_createInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.devices_createInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.devices_createInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.devices_createInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.devices_createInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.devices_createInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.devices_createInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Created: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/201/content/application\/json`.+ case json(Components.Schemas.DeviceResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.DeviceResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.Created.Body+ /// Creates a new `Created`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.Created.Body) {+ self.body = body+ }+ }+ /// Single Device+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/201`.+ ///+ /// HTTP response code: `201 created`.+ case created(Operations.devices_createInstance.Output.Created)+ /// The associated value of the enum case if `self` is `.created`.+ ///+ /// - Throws: An error if `self` is not `.created`.+ /// - SeeAlso: `.created`.+ public var created: Operations.devices_createInstance.Output.Created {+ get throws {+ switch self {+ case let .created(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "created",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/POST/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_createInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_createInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/post(devices_createInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.devices_createInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.devices_createInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)`.+ public enum devices_getInstance {+ public static let id: Swift.String = "devices_getInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.devices_getInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/query/fields_lbrack_devices_rbrack_Payload`.+ @frozen public enum fields_lbrack_devices_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case udid = "udid"+ case deviceClass = "deviceClass"+ case status = "status"+ case model = "model"+ case addedDate = "addedDate"+ }+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/query/fields[devices]`.+ public typealias fields_lbrack_devices_rbrack_Payload = [Operations.devices_getInstance.Input.Query.fields_lbrack_devices_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type devices+ ///+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/query/fields[devices]`.+ public var fields_lbrack_devices_rbrack_: Operations.devices_getInstance.Input.Query.fields_lbrack_devices_rbrack_Payload?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_devices_rbrack_: the fields to include for returned resources of type devices+ public init(fields_lbrack_devices_rbrack_: Operations.devices_getInstance.Input.Query.fields_lbrack_devices_rbrack_Payload? = nil) {+ self.fields_lbrack_devices_rbrack_ = fields_lbrack_devices_rbrack_+ }+ }+ public var query: Operations.devices_getInstance.Input.Query+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_getInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_getInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.devices_getInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.devices_getInstance.Input.Path,+ query: Operations.devices_getInstance.Input.Query = .init(),+ headers: Operations.devices_getInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.devices_getInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.devices_getInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.devices_getInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.devices_getInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.devices_getInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.devices_getInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.devices_getInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.devices_getInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.DeviceResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.DeviceResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_getInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_getInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single Device+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/get(devices_getInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.devices_getInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.devices_getInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `PATCH /v1/devices/{id}`.+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)`.+ public enum devices_updateInstance {+ public static let id: Swift.String = "devices_updateInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.devices_updateInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_updateInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.devices_updateInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.devices_updateInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/requestBody/content/application\/json`.+ case json(Components.Schemas.DeviceUpdateRequest)+ }+ public var body: Operations.devices_updateInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ /// - body:+ public init(+ path: Operations.devices_updateInstance.Input.Path,+ headers: Operations.devices_updateInstance.Input.Headers = .init(),+ body: Operations.devices_updateInstance.Input.Body+ ) {+ self.path = path+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.devices_updateInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.devices_updateInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.devices_updateInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.devices_updateInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.devices_updateInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.devices_updateInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.devices_updateInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.devices_updateInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.devices_updateInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.devices_updateInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/200/content/application\/json`.+ case json(Components.Schemas.DeviceResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.DeviceResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single Device+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.devices_updateInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.devices_updateInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/devices/{id}/PATCH/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.devices_updateInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.devices_updateInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/devices/{id}/patch(devices_updateInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.devices_updateInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.devices_updateInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)`.+ public enum profiles_getCollection {+ public static let id: Swift.String = "profiles_getCollection"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query`.+ public struct Query: Sendable, Hashable {+ /// filter by attribute 'name'+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[name]`.+ public var filter_lbrack_name_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter_lbrack_profileType_rbrack_Payload`.+ @frozen public enum filter_lbrack_profileType_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case IOS_APP_DEVELOPMENT = "IOS_APP_DEVELOPMENT"+ case IOS_APP_STORE = "IOS_APP_STORE"+ case IOS_APP_ADHOC = "IOS_APP_ADHOC"+ case IOS_APP_INHOUSE = "IOS_APP_INHOUSE"+ case MAC_APP_DEVELOPMENT = "MAC_APP_DEVELOPMENT"+ case MAC_APP_STORE = "MAC_APP_STORE"+ case MAC_APP_DIRECT = "MAC_APP_DIRECT"+ case TVOS_APP_DEVELOPMENT = "TVOS_APP_DEVELOPMENT"+ case TVOS_APP_STORE = "TVOS_APP_STORE"+ case TVOS_APP_ADHOC = "TVOS_APP_ADHOC"+ case TVOS_APP_INHOUSE = "TVOS_APP_INHOUSE"+ case MAC_CATALYST_APP_DEVELOPMENT = "MAC_CATALYST_APP_DEVELOPMENT"+ case MAC_CATALYST_APP_STORE = "MAC_CATALYST_APP_STORE"+ case MAC_CATALYST_APP_DIRECT = "MAC_CATALYST_APP_DIRECT"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[profileType]`.+ public typealias filter_lbrack_profileType_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.filter_lbrack_profileType_rbrack_PayloadPayload]+ /// filter by attribute 'profileType'+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[profileType]`.+ public var filter_lbrack_profileType_rbrack_: Operations.profiles_getCollection.Input.Query.filter_lbrack_profileType_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter_lbrack_profileState_rbrack_Payload`.+ @frozen public enum filter_lbrack_profileState_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case ACTIVE = "ACTIVE"+ case INVALID = "INVALID"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[profileState]`.+ public typealias filter_lbrack_profileState_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.filter_lbrack_profileState_rbrack_PayloadPayload]+ /// filter by attribute 'profileState'+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[profileState]`.+ public var filter_lbrack_profileState_rbrack_: Operations.profiles_getCollection.Input.Query.filter_lbrack_profileState_rbrack_Payload?+ /// filter by id(s)+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/filter[id]`.+ public var filter_lbrack_id_rbrack_: [Swift.String]?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/sortPayload`.+ @frozen public enum sortPayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case _hyphen_name = "-name"+ case profileType = "profileType"+ case _hyphen_profileType = "-profileType"+ case profileState = "profileState"+ case _hyphen_profileState = "-profileState"+ case id = "id"+ case _hyphen_id = "-id"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/sort`.+ public typealias sortPayload = [Operations.profiles_getCollection.Input.Query.sortPayloadPayload]+ /// comma-separated list of sort expressions; resources will be sorted as specified+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/sort`.+ public var sort: Operations.profiles_getCollection.Input.Query.sortPayload?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields_lbrack_profiles_rbrack_Payload`.+ @frozen public enum fields_lbrack_profiles_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case profileType = "profileType"+ case profileState = "profileState"+ case profileContent = "profileContent"+ case uuid = "uuid"+ case createdDate = "createdDate"+ case expirationDate = "expirationDate"+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[profiles]`.+ public typealias fields_lbrack_profiles_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.fields_lbrack_profiles_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type profiles+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[profiles]`.+ public var fields_lbrack_profiles_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_profiles_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields_lbrack_bundleIds_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIds_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case identifier = "identifier"+ case seedId = "seedId"+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[bundleIds]`.+ public typealias fields_lbrack_bundleIds_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIds+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[bundleIds]`.+ public var fields_lbrack_bundleIds_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields_lbrack_devices_rbrack_Payload`.+ @frozen public enum fields_lbrack_devices_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case udid = "udid"+ case deviceClass = "deviceClass"+ case status = "status"+ case model = "model"+ case addedDate = "addedDate"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[devices]`.+ public typealias fields_lbrack_devices_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.fields_lbrack_devices_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type devices+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[devices]`.+ public var fields_lbrack_devices_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_devices_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields_lbrack_certificates_rbrack_Payload`.+ @frozen public enum fields_lbrack_certificates_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case certificateType = "certificateType"+ case displayName = "displayName"+ case serialNumber = "serialNumber"+ case platform = "platform"+ case expirationDate = "expirationDate"+ case certificateContent = "certificateContent"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[certificates]`.+ public typealias fields_lbrack_certificates_rbrack_Payload = [Operations.profiles_getCollection.Input.Query.fields_lbrack_certificates_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type certificates+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/fields[certificates]`.+ public var fields_lbrack_certificates_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_certificates_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/limit`.+ public var limit: Swift.Int?+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/includePayload`.+ @frozen public enum includePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/include`.+ public typealias includePayload = [Operations.profiles_getCollection.Input.Query.includePayloadPayload]+ /// comma-separated list of relationships to include+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/include`.+ public var include: Operations.profiles_getCollection.Input.Query.includePayload?+ /// maximum number of related certificates returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/limit[certificates]`.+ public var limit_lbrack_certificates_rbrack_: Swift.Int?+ /// maximum number of related devices returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/GET/query/limit[devices]`.+ public var limit_lbrack_devices_rbrack_: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - filter_lbrack_name_rbrack_: filter by attribute 'name'+ /// - filter_lbrack_profileType_rbrack_: filter by attribute 'profileType'+ /// - filter_lbrack_profileState_rbrack_: filter by attribute 'profileState'+ /// - filter_lbrack_id_rbrack_: filter by id(s)+ /// - sort: comma-separated list of sort expressions; resources will be sorted as specified+ /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles+ /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds+ /// - fields_lbrack_devices_rbrack_: the fields to include for returned resources of type devices+ /// - fields_lbrack_certificates_rbrack_: the fields to include for returned resources of type certificates+ /// - limit: maximum resources per page+ /// - include: comma-separated list of relationships to include+ /// - limit_lbrack_certificates_rbrack_: maximum number of related certificates returned (when they are included)+ /// - limit_lbrack_devices_rbrack_: maximum number of related devices returned (when they are included)+ public init(+ filter_lbrack_name_rbrack_: [Swift.String]? = nil,+ filter_lbrack_profileType_rbrack_: Operations.profiles_getCollection.Input.Query.filter_lbrack_profileType_rbrack_Payload? = nil,+ filter_lbrack_profileState_rbrack_: Operations.profiles_getCollection.Input.Query.filter_lbrack_profileState_rbrack_Payload? = nil,+ filter_lbrack_id_rbrack_: [Swift.String]? = nil,+ sort: Operations.profiles_getCollection.Input.Query.sortPayload? = nil,+ fields_lbrack_profiles_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_profiles_rbrack_Payload? = nil,+ fields_lbrack_bundleIds_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_bundleIds_rbrack_Payload? = nil,+ fields_lbrack_devices_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_devices_rbrack_Payload? = nil,+ fields_lbrack_certificates_rbrack_: Operations.profiles_getCollection.Input.Query.fields_lbrack_certificates_rbrack_Payload? = nil,+ limit: Swift.Int? = nil,+ include: Operations.profiles_getCollection.Input.Query.includePayload? = nil,+ limit_lbrack_certificates_rbrack_: Swift.Int? = nil,+ limit_lbrack_devices_rbrack_: Swift.Int? = nil+ ) {+ self.filter_lbrack_name_rbrack_ = filter_lbrack_name_rbrack_+ self.filter_lbrack_profileType_rbrack_ = filter_lbrack_profileType_rbrack_+ self.filter_lbrack_profileState_rbrack_ = filter_lbrack_profileState_rbrack_+ self.filter_lbrack_id_rbrack_ = filter_lbrack_id_rbrack_+ self.sort = sort+ self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_+ self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_+ self.fields_lbrack_devices_rbrack_ = fields_lbrack_devices_rbrack_+ self.fields_lbrack_certificates_rbrack_ = fields_lbrack_certificates_rbrack_+ self.limit = limit+ self.include = include+ self.limit_lbrack_certificates_rbrack_ = limit_lbrack_certificates_rbrack_+ self.limit_lbrack_devices_rbrack_ = limit_lbrack_devices_rbrack_+ }+ }+ public var query: Operations.profiles_getCollection.Input.Query+ /// - Remark: Generated from `#/paths/v1/profiles/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_getCollection.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_getCollection.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_getCollection.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - query:+ /// - headers:+ public init(+ query: Operations.profiles_getCollection.Input.Query = .init(),+ headers: Operations.profiles_getCollection.Input.Headers = .init()+ ) {+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getCollection.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getCollection.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_getCollection.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_getCollection.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getCollection.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getCollection.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_getCollection.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_getCollection.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getCollection.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getCollection.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_getCollection.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_getCollection.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.ProfilesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ProfilesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getCollection.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getCollection.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Profiles+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/get(profiles_getCollection)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.profiles_getCollection.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.profiles_getCollection.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `POST /v1/profiles`.+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)`.+ public enum profiles_createInstance {+ public static let id: Swift.String = "profiles_createInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_createInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_createInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_createInstance.Input.Headers+ /// - Remark: Generated from `#/paths/v1/profiles/POST/requestBody`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/requestBody/content/application\/json`.+ case json(Components.Schemas.ProfileCreateRequest)+ }+ public var body: Operations.profiles_createInstance.Input.Body+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - headers:+ /// - body:+ public init(+ headers: Operations.profiles_createInstance.Input.Headers = .init(),+ body: Operations.profiles_createInstance.Input.Body+ ) {+ self.headers = headers+ self.body = body+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_createInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_createInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_createInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_createInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_createInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_createInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct UnprocessableContent: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/422/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.UnprocessableContent.Body+ /// Creates a new `UnprocessableContent`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.UnprocessableContent.Body) {+ self.body = body+ }+ }+ /// Unprocessable request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/422`.+ ///+ /// HTTP response code: `422 unprocessableContent`.+ case unprocessableContent(Operations.profiles_createInstance.Output.UnprocessableContent)+ /// The associated value of the enum case if `self` is `.unprocessableContent`.+ ///+ /// - Throws: An error if `self` is not `.unprocessableContent`.+ /// - SeeAlso: `.unprocessableContent`.+ public var unprocessableContent: Operations.profiles_createInstance.Output.UnprocessableContent {+ get throws {+ switch self {+ case let .unprocessableContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unprocessableContent",+ response: self+ )+ }+ }+ }+ public struct Created: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/201/content/application\/json`.+ case json(Components.Schemas.ProfileResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ProfileResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.Created.Body+ /// Creates a new `Created`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.Created.Body) {+ self.body = body+ }+ }+ /// Single Profile+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/201`.+ ///+ /// HTTP response code: `201 created`.+ case created(Operations.profiles_createInstance.Output.Created)+ /// The associated value of the enum case if `self` is `.created`.+ ///+ /// - Throws: An error if `self` is not `.created`.+ /// - SeeAlso: `.created`.+ public var created: Operations.profiles_createInstance.Output.Created {+ get throws {+ switch self {+ case let .created(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "created",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/POST/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_createInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_createInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/post(profiles_createInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.profiles_createInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.profiles_createInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)`.+ public enum profiles_getInstance {+ public static let id: Swift.String = "profiles_getInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.profiles_getInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields_lbrack_profiles_rbrack_Payload`.+ @frozen public enum fields_lbrack_profiles_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case profileType = "profileType"+ case profileState = "profileState"+ case profileContent = "profileContent"+ case uuid = "uuid"+ case createdDate = "createdDate"+ case expirationDate = "expirationDate"+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[profiles]`.+ public typealias fields_lbrack_profiles_rbrack_Payload = [Operations.profiles_getInstance.Input.Query.fields_lbrack_profiles_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type profiles+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[profiles]`.+ public var fields_lbrack_profiles_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_profiles_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields_lbrack_bundleIds_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIds_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case identifier = "identifier"+ case seedId = "seedId"+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[bundleIds]`.+ public typealias fields_lbrack_bundleIds_rbrack_Payload = [Operations.profiles_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIds+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[bundleIds]`.+ public var fields_lbrack_bundleIds_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields_lbrack_devices_rbrack_Payload`.+ @frozen public enum fields_lbrack_devices_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case udid = "udid"+ case deviceClass = "deviceClass"+ case status = "status"+ case model = "model"+ case addedDate = "addedDate"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[devices]`.+ public typealias fields_lbrack_devices_rbrack_Payload = [Operations.profiles_getInstance.Input.Query.fields_lbrack_devices_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type devices+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[devices]`.+ public var fields_lbrack_devices_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_devices_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields_lbrack_certificates_rbrack_Payload`.+ @frozen public enum fields_lbrack_certificates_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case certificateType = "certificateType"+ case displayName = "displayName"+ case serialNumber = "serialNumber"+ case platform = "platform"+ case expirationDate = "expirationDate"+ case certificateContent = "certificateContent"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[certificates]`.+ public typealias fields_lbrack_certificates_rbrack_Payload = [Operations.profiles_getInstance.Input.Query.fields_lbrack_certificates_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type certificates+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/fields[certificates]`.+ public var fields_lbrack_certificates_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_certificates_rbrack_Payload?+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/includePayload`.+ @frozen public enum includePayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/include`.+ public typealias includePayload = [Operations.profiles_getInstance.Input.Query.includePayloadPayload]+ /// comma-separated list of relationships to include+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/include`.+ public var include: Operations.profiles_getInstance.Input.Query.includePayload?+ /// maximum number of related certificates returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/limit[certificates]`.+ public var limit_lbrack_certificates_rbrack_: Swift.Int?+ /// maximum number of related devices returned (when they are included)+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/query/limit[devices]`.+ public var limit_lbrack_devices_rbrack_: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles+ /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds+ /// - fields_lbrack_devices_rbrack_: the fields to include for returned resources of type devices+ /// - fields_lbrack_certificates_rbrack_: the fields to include for returned resources of type certificates+ /// - include: comma-separated list of relationships to include+ /// - limit_lbrack_certificates_rbrack_: maximum number of related certificates returned (when they are included)+ /// - limit_lbrack_devices_rbrack_: maximum number of related devices returned (when they are included)+ public init(+ fields_lbrack_profiles_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_profiles_rbrack_Payload? = nil,+ fields_lbrack_bundleIds_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_bundleIds_rbrack_Payload? = nil,+ fields_lbrack_devices_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_devices_rbrack_Payload? = nil,+ fields_lbrack_certificates_rbrack_: Operations.profiles_getInstance.Input.Query.fields_lbrack_certificates_rbrack_Payload? = nil,+ include: Operations.profiles_getInstance.Input.Query.includePayload? = nil,+ limit_lbrack_certificates_rbrack_: Swift.Int? = nil,+ limit_lbrack_devices_rbrack_: Swift.Int? = nil+ ) {+ self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_+ self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_+ self.fields_lbrack_devices_rbrack_ = fields_lbrack_devices_rbrack_+ self.fields_lbrack_certificates_rbrack_ = fields_lbrack_certificates_rbrack_+ self.include = include+ self.limit_lbrack_certificates_rbrack_ = limit_lbrack_certificates_rbrack_+ self.limit_lbrack_devices_rbrack_ = limit_lbrack_devices_rbrack_+ }+ }+ public var query: Operations.profiles_getInstance.Input.Query+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_getInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_getInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_getInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.profiles_getInstance.Input.Path,+ query: Operations.profiles_getInstance.Input.Query = .init(),+ headers: Operations.profiles_getInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_getInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_getInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_getInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_getInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_getInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_getInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.profiles_getInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.profiles_getInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.ProfileResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ProfileResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_getInstance.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_getInstance.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single Profile+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/get(profiles_getInstance)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.profiles_getInstance.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.profiles_getInstance.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `DELETE /v1/profiles/{id}`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)`.+ public enum profiles_deleteInstance {+ public static let id: Swift.String = "profiles_deleteInstance"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.profiles_deleteInstance.Input.Path+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_deleteInstance.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_deleteInstance.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_deleteInstance.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - headers:+ public init(+ path: Operations.profiles_deleteInstance.Input.Path,+ headers: Operations.profiles_deleteInstance.Input.Headers = .init()+ ) {+ self.path = path+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_deleteInstance.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_deleteInstance.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_deleteInstance.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_deleteInstance.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_deleteInstance.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_deleteInstance.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_deleteInstance.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_deleteInstance.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_deleteInstance.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_deleteInstance.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_deleteInstance.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_deleteInstance.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_deleteInstance.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_deleteInstance.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.profiles_deleteInstance.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.profiles_deleteInstance.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Conflict: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/409/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/DELETE/responses/409/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_deleteInstance.Output.Conflict.Body+ /// Creates a new `Conflict`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_deleteInstance.Output.Conflict.Body) {+ self.body = body+ }+ }+ /// Request entity error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/409`.+ ///+ /// HTTP response code: `409 conflict`.+ case conflict(Operations.profiles_deleteInstance.Output.Conflict)+ /// The associated value of the enum case if `self` is `.conflict`.+ ///+ /// - Throws: An error if `self` is not `.conflict`.+ /// - SeeAlso: `.conflict`.+ public var conflict: Operations.profiles_deleteInstance.Output.Conflict {+ get throws {+ switch self {+ case let .conflict(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "conflict",+ response: self+ )+ }+ }+ }+ public struct NoContent: Sendable, Hashable {+ /// Creates a new `NoContent`.+ public init() {}+ }+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ case noContent(Operations.profiles_deleteInstance.Output.NoContent)+ /// Success (no content)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/delete(profiles_deleteInstance)/responses/204`.+ ///+ /// HTTP response code: `204 noContent`.+ public static var noContent: Self {+ .noContent(.init())+ }+ /// The associated value of the enum case if `self` is `.noContent`.+ ///+ /// - Throws: An error if `self` is not `.noContent`.+ /// - SeeAlso: `.noContent`.+ public var noContent: Operations.profiles_deleteInstance.Output.NoContent {+ get throws {+ switch self {+ case let .noContent(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "noContent",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/app`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)`.+ public enum bundleIds_app_getToOneRelated {+ public static let id: Swift.String = "bundleIds_app_getToOneRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_app_getToOneRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/query/fields_lbrack_apps_rbrack_Payload`.+ @frozen public enum fields_lbrack_apps_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case bundleId = "bundleId"+ case sku = "sku"+ case primaryLocale = "primaryLocale"+ case isOrEverWasMadeForKids = "isOrEverWasMadeForKids"+ case subscriptionStatusUrl = "subscriptionStatusUrl"+ case subscriptionStatusUrlVersion = "subscriptionStatusUrlVersion"+ case subscriptionStatusUrlForSandbox = "subscriptionStatusUrlForSandbox"+ case subscriptionStatusUrlVersionForSandbox = "subscriptionStatusUrlVersionForSandbox"+ case contentRightsDeclaration = "contentRightsDeclaration"+ case streamlinedPurchasingEnabled = "streamlinedPurchasingEnabled"+ case appEncryptionDeclarations = "appEncryptionDeclarations"+ case ciProduct = "ciProduct"+ case betaTesters = "betaTesters"+ case betaGroups = "betaGroups"+ case appStoreVersions = "appStoreVersions"+ case preReleaseVersions = "preReleaseVersions"+ case betaAppLocalizations = "betaAppLocalizations"+ case builds = "builds"+ case betaLicenseAgreement = "betaLicenseAgreement"+ case betaAppReviewDetail = "betaAppReviewDetail"+ case appInfos = "appInfos"+ case appClips = "appClips"+ case appPricePoints = "appPricePoints"+ case endUserLicenseAgreement = "endUserLicenseAgreement"+ case appPriceSchedule = "appPriceSchedule"+ case appAvailabilityV2 = "appAvailabilityV2"+ case inAppPurchases = "inAppPurchases"+ case subscriptionGroups = "subscriptionGroups"+ case gameCenterEnabledVersions = "gameCenterEnabledVersions"+ case perfPowerMetrics = "perfPowerMetrics"+ case appCustomProductPages = "appCustomProductPages"+ case inAppPurchasesV2 = "inAppPurchasesV2"+ case promotedPurchases = "promotedPurchases"+ case appEvents = "appEvents"+ case reviewSubmissions = "reviewSubmissions"+ case subscriptionGracePeriod = "subscriptionGracePeriod"+ case customerReviews = "customerReviews"+ case gameCenterDetail = "gameCenterDetail"+ case appStoreVersionExperimentsV2 = "appStoreVersionExperimentsV2"+ case alternativeDistributionKey = "alternativeDistributionKey"+ case analyticsReportRequests = "analyticsReportRequests"+ case marketplaceSearchDetail = "marketplaceSearchDetail"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/query/fields[apps]`.+ public typealias fields_lbrack_apps_rbrack_Payload = [Operations.bundleIds_app_getToOneRelated.Input.Query.fields_lbrack_apps_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type apps+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/query/fields[apps]`.+ public var fields_lbrack_apps_rbrack_: Operations.bundleIds_app_getToOneRelated.Input.Query.fields_lbrack_apps_rbrack_Payload?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_apps_rbrack_: the fields to include for returned resources of type apps+ public init(fields_lbrack_apps_rbrack_: Operations.bundleIds_app_getToOneRelated.Input.Query.fields_lbrack_apps_rbrack_Payload? = nil) {+ self.fields_lbrack_apps_rbrack_ = fields_lbrack_apps_rbrack_+ }+ }+ public var query: Operations.bundleIds_app_getToOneRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_app_getToOneRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_app_getToOneRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_app_getToOneRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.bundleIds_app_getToOneRelated.Input.Path,+ query: Operations.bundleIds_app_getToOneRelated.Input.Query = .init(),+ headers: Operations.bundleIds_app_getToOneRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_app_getToOneRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_app_getToOneRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_app_getToOneRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_app_getToOneRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_app_getToOneRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_app_getToOneRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_app_getToOneRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_app_getToOneRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_app_getToOneRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_app_getToOneRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_app_getToOneRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_app_getToOneRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_app_getToOneRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_app_getToOneRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_app_getToOneRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_app_getToOneRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/app/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.AppWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.AppWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_app_getToOneRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_app_getToOneRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single App with get+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/app/get(bundleIds_app_getToOneRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_app_getToOneRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_app_getToOneRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/bundleIdCapabilities`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)`.+ public enum bundleIds_bundleIdCapabilities_getToManyRelated {+ public static let id: Swift.String = "bundleIds_bundleIdCapabilities_getToManyRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/query/fields_lbrack_bundleIdCapabilities_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case capabilityType = "capabilityType"+ case settings = "settings"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/query/fields[bundleIdCapabilities]`.+ public typealias fields_lbrack_bundleIdCapabilities_rbrack_Payload = [Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIdCapabilities+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/query/fields[bundleIdCapabilities]`.+ public var fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_bundleIdCapabilities_rbrack_: the fields to include for returned resources of type bundleIdCapabilities+ /// - limit: maximum resources per page+ public init(+ fields_lbrack_bundleIdCapabilities_rbrack_: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query.fields_lbrack_bundleIdCapabilities_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.fields_lbrack_bundleIdCapabilities_rbrack_ = fields_lbrack_bundleIdCapabilities_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_bundleIdCapabilities_getToManyRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_bundleIdCapabilities_getToManyRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Path,+ query: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Query = .init(),+ headers: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/bundleIdCapabilities/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdCapabilitiesWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of BundleIdCapabilities with get+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/bundleIdCapabilities/get(bundleIds_bundleIdCapabilities_getToManyRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_bundleIdCapabilities_getToManyRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/bundleIds/{id}/profiles`.+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)`.+ public enum bundleIds_profiles_getToManyRelated {+ public static let id: Swift.String = "bundleIds_profiles_getToManyRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.bundleIds_profiles_getToManyRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/query/fields_lbrack_profiles_rbrack_Payload`.+ @frozen public enum fields_lbrack_profiles_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case profileType = "profileType"+ case profileState = "profileState"+ case profileContent = "profileContent"+ case uuid = "uuid"+ case createdDate = "createdDate"+ case expirationDate = "expirationDate"+ case bundleId = "bundleId"+ case devices = "devices"+ case certificates = "certificates"+ }+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/query/fields[profiles]`.+ public typealias fields_lbrack_profiles_rbrack_Payload = [Operations.bundleIds_profiles_getToManyRelated.Input.Query.fields_lbrack_profiles_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type profiles+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/query/fields[profiles]`.+ public var fields_lbrack_profiles_rbrack_: Operations.bundleIds_profiles_getToManyRelated.Input.Query.fields_lbrack_profiles_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_profiles_rbrack_: the fields to include for returned resources of type profiles+ /// - limit: maximum resources per page+ public init(+ fields_lbrack_profiles_rbrack_: Operations.bundleIds_profiles_getToManyRelated.Input.Query.fields_lbrack_profiles_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.fields_lbrack_profiles_rbrack_ = fields_lbrack_profiles_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.bundleIds_profiles_getToManyRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_profiles_getToManyRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.bundleIds_profiles_getToManyRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.bundleIds_profiles_getToManyRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.bundleIds_profiles_getToManyRelated.Input.Path,+ query: Operations.bundleIds_profiles_getToManyRelated.Input.Query = .init(),+ headers: Operations.bundleIds_profiles_getToManyRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_profiles_getToManyRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_profiles_getToManyRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.bundleIds_profiles_getToManyRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.bundleIds_profiles_getToManyRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_profiles_getToManyRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_profiles_getToManyRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.bundleIds_profiles_getToManyRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.bundleIds_profiles_getToManyRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_profiles_getToManyRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_profiles_getToManyRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.bundleIds_profiles_getToManyRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.bundleIds_profiles_getToManyRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_profiles_getToManyRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_profiles_getToManyRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.bundleIds_profiles_getToManyRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.bundleIds_profiles_getToManyRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/bundleIds/{id}/profiles/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.ProfilesWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ProfilesWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.bundleIds_profiles_getToManyRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.bundleIds_profiles_getToManyRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Profiles with get+ ///+ /// - Remark: Generated from `#/paths//v1/bundleIds/{id}/profiles/get(bundleIds_profiles_getToManyRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.bundleIds_profiles_getToManyRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.bundleIds_profiles_getToManyRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/bundleId`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)`.+ public enum profiles_bundleId_getToOneRelated {+ public static let id: Swift.String = "profiles_bundleId_getToOneRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.profiles_bundleId_getToOneRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/query/fields_lbrack_bundleIds_rbrack_Payload`.+ @frozen public enum fields_lbrack_bundleIds_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case identifier = "identifier"+ case seedId = "seedId"+ case profiles = "profiles"+ case bundleIdCapabilities = "bundleIdCapabilities"+ case app = "app"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/query/fields[bundleIds]`.+ public typealias fields_lbrack_bundleIds_rbrack_Payload = [Operations.profiles_bundleId_getToOneRelated.Input.Query.fields_lbrack_bundleIds_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type bundleIds+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/query/fields[bundleIds]`.+ public var fields_lbrack_bundleIds_rbrack_: Operations.profiles_bundleId_getToOneRelated.Input.Query.fields_lbrack_bundleIds_rbrack_Payload?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_bundleIds_rbrack_: the fields to include for returned resources of type bundleIds+ public init(fields_lbrack_bundleIds_rbrack_: Operations.profiles_bundleId_getToOneRelated.Input.Query.fields_lbrack_bundleIds_rbrack_Payload? = nil) {+ self.fields_lbrack_bundleIds_rbrack_ = fields_lbrack_bundleIds_rbrack_+ }+ }+ public var query: Operations.profiles_bundleId_getToOneRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_bundleId_getToOneRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_bundleId_getToOneRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_bundleId_getToOneRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.profiles_bundleId_getToOneRelated.Input.Path,+ query: Operations.profiles_bundleId_getToOneRelated.Input.Query = .init(),+ headers: Operations.profiles_bundleId_getToOneRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_bundleId_getToOneRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_bundleId_getToOneRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_bundleId_getToOneRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_bundleId_getToOneRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_bundleId_getToOneRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_bundleId_getToOneRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_bundleId_getToOneRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_bundleId_getToOneRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_bundleId_getToOneRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_bundleId_getToOneRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_bundleId_getToOneRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_bundleId_getToOneRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_bundleId_getToOneRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_bundleId_getToOneRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.profiles_bundleId_getToOneRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.profiles_bundleId_getToOneRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/bundleId/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.BundleIdWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.BundleIdWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_bundleId_getToOneRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_bundleId_getToOneRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// Single BundleId with get+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/bundleId/get(profiles_bundleId_getToOneRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.profiles_bundleId_getToOneRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.profiles_bundleId_getToOneRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/certificates`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)`.+ public enum profiles_certificates_getToManyRelated {+ public static let id: Swift.String = "profiles_certificates_getToManyRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.profiles_certificates_getToManyRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/query/fields_lbrack_certificates_rbrack_Payload`.+ @frozen public enum fields_lbrack_certificates_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case certificateType = "certificateType"+ case displayName = "displayName"+ case serialNumber = "serialNumber"+ case platform = "platform"+ case expirationDate = "expirationDate"+ case certificateContent = "certificateContent"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/query/fields[certificates]`.+ public typealias fields_lbrack_certificates_rbrack_Payload = [Operations.profiles_certificates_getToManyRelated.Input.Query.fields_lbrack_certificates_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type certificates+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/query/fields[certificates]`.+ public var fields_lbrack_certificates_rbrack_: Operations.profiles_certificates_getToManyRelated.Input.Query.fields_lbrack_certificates_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_certificates_rbrack_: the fields to include for returned resources of type certificates+ /// - limit: maximum resources per page+ public init(+ fields_lbrack_certificates_rbrack_: Operations.profiles_certificates_getToManyRelated.Input.Query.fields_lbrack_certificates_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.fields_lbrack_certificates_rbrack_ = fields_lbrack_certificates_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.profiles_certificates_getToManyRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_certificates_getToManyRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_certificates_getToManyRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_certificates_getToManyRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.profiles_certificates_getToManyRelated.Input.Path,+ query: Operations.profiles_certificates_getToManyRelated.Input.Query = .init(),+ headers: Operations.profiles_certificates_getToManyRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_certificates_getToManyRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_certificates_getToManyRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_certificates_getToManyRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_certificates_getToManyRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_certificates_getToManyRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_certificates_getToManyRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_certificates_getToManyRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_certificates_getToManyRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_certificates_getToManyRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_certificates_getToManyRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_certificates_getToManyRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_certificates_getToManyRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_certificates_getToManyRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_certificates_getToManyRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.profiles_certificates_getToManyRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.profiles_certificates_getToManyRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/certificates/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.CertificatesWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.CertificatesWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_certificates_getToManyRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_certificates_getToManyRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Certificates with get+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/certificates/get(profiles_certificates_getToManyRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.profiles_certificates_getToManyRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.profiles_certificates_getToManyRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+ /// - Remark: HTTP `GET /v1/profiles/{id}/devices`.+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)`.+ public enum profiles_devices_getToManyRelated {+ public static let id: Swift.String = "profiles_devices_getToManyRelated"+ public struct Input: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/path`.+ public struct Path: Sendable, Hashable {+ /// the id of the requested resource+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/path/id`.+ public var id: Swift.String+ /// Creates a new `Path`.+ ///+ /// - Parameters:+ /// - id: the id of the requested resource+ public init(id: Swift.String) {+ self.id = id+ }+ }+ public var path: Operations.profiles_devices_getToManyRelated.Input.Path+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/query`.+ public struct Query: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/query/fields_lbrack_devices_rbrack_Payload`.+ @frozen public enum fields_lbrack_devices_rbrack_PayloadPayload: String, Codable, Hashable, Sendable, CaseIterable {+ case name = "name"+ case platform = "platform"+ case udid = "udid"+ case deviceClass = "deviceClass"+ case status = "status"+ case model = "model"+ case addedDate = "addedDate"+ }+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/query/fields[devices]`.+ public typealias fields_lbrack_devices_rbrack_Payload = [Operations.profiles_devices_getToManyRelated.Input.Query.fields_lbrack_devices_rbrack_PayloadPayload]+ /// the fields to include for returned resources of type devices+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/query/fields[devices]`.+ public var fields_lbrack_devices_rbrack_: Operations.profiles_devices_getToManyRelated.Input.Query.fields_lbrack_devices_rbrack_Payload?+ /// maximum resources per page+ ///+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/query/limit`.+ public var limit: Swift.Int?+ /// Creates a new `Query`.+ ///+ /// - Parameters:+ /// - fields_lbrack_devices_rbrack_: the fields to include for returned resources of type devices+ /// - limit: maximum resources per page+ public init(+ fields_lbrack_devices_rbrack_: Operations.profiles_devices_getToManyRelated.Input.Query.fields_lbrack_devices_rbrack_Payload? = nil,+ limit: Swift.Int? = nil+ ) {+ self.fields_lbrack_devices_rbrack_ = fields_lbrack_devices_rbrack_+ self.limit = limit+ }+ }+ public var query: Operations.profiles_devices_getToManyRelated.Input.Query+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/header`.+ public struct Headers: Sendable, Hashable {+ public var accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_devices_getToManyRelated.AcceptableContentType>]+ /// Creates a new `Headers`.+ ///+ /// - Parameters:+ /// - accept:+ public init(accept: [OpenAPIRuntime.AcceptHeaderContentType<Operations.profiles_devices_getToManyRelated.AcceptableContentType>] = .defaultValues()) {+ self.accept = accept+ }+ }+ public var headers: Operations.profiles_devices_getToManyRelated.Input.Headers+ /// Creates a new `Input`.+ ///+ /// - Parameters:+ /// - path:+ /// - query:+ /// - headers:+ public init(+ path: Operations.profiles_devices_getToManyRelated.Input.Path,+ query: Operations.profiles_devices_getToManyRelated.Input.Query = .init(),+ headers: Operations.profiles_devices_getToManyRelated.Input.Headers = .init()+ ) {+ self.path = path+ self.query = query+ self.headers = headers+ }+ }+ @frozen public enum Output: Sendable, Hashable {+ public struct BadRequest: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/400/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/400/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_devices_getToManyRelated.Output.BadRequest.Body+ /// Creates a new `BadRequest`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_devices_getToManyRelated.Output.BadRequest.Body) {+ self.body = body+ }+ }+ /// Parameter error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/400`.+ ///+ /// HTTP response code: `400 badRequest`.+ case badRequest(Operations.profiles_devices_getToManyRelated.Output.BadRequest)+ /// The associated value of the enum case if `self` is `.badRequest`.+ ///+ /// - Throws: An error if `self` is not `.badRequest`.+ /// - SeeAlso: `.badRequest`.+ public var badRequest: Operations.profiles_devices_getToManyRelated.Output.BadRequest {+ get throws {+ switch self {+ case let .badRequest(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "badRequest",+ response: self+ )+ }+ }+ }+ public struct Unauthorized: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/401/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/401/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_devices_getToManyRelated.Output.Unauthorized.Body+ /// Creates a new `Unauthorized`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_devices_getToManyRelated.Output.Unauthorized.Body) {+ self.body = body+ }+ }+ /// Unauthorized error(s)+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/401`.+ ///+ /// HTTP response code: `401 unauthorized`.+ case unauthorized(Operations.profiles_devices_getToManyRelated.Output.Unauthorized)+ /// The associated value of the enum case if `self` is `.unauthorized`.+ ///+ /// - Throws: An error if `self` is not `.unauthorized`.+ /// - SeeAlso: `.unauthorized`.+ public var unauthorized: Operations.profiles_devices_getToManyRelated.Output.Unauthorized {+ get throws {+ switch self {+ case let .unauthorized(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "unauthorized",+ response: self+ )+ }+ }+ }+ public struct Forbidden: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/403/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/403/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_devices_getToManyRelated.Output.Forbidden.Body+ /// Creates a new `Forbidden`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_devices_getToManyRelated.Output.Forbidden.Body) {+ self.body = body+ }+ }+ /// Forbidden error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/403`.+ ///+ /// HTTP response code: `403 forbidden`.+ case forbidden(Operations.profiles_devices_getToManyRelated.Output.Forbidden)+ /// The associated value of the enum case if `self` is `.forbidden`.+ ///+ /// - Throws: An error if `self` is not `.forbidden`.+ /// - SeeAlso: `.forbidden`.+ public var forbidden: Operations.profiles_devices_getToManyRelated.Output.Forbidden {+ get throws {+ switch self {+ case let .forbidden(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "forbidden",+ response: self+ )+ }+ }+ }+ public struct NotFound: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/404/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/404/content/application\/json`.+ case json(Components.Schemas.ErrorResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.ErrorResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_devices_getToManyRelated.Output.NotFound.Body+ /// Creates a new `NotFound`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_devices_getToManyRelated.Output.NotFound.Body) {+ self.body = body+ }+ }+ /// Not found error+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/404`.+ ///+ /// HTTP response code: `404 notFound`.+ case notFound(Operations.profiles_devices_getToManyRelated.Output.NotFound)+ /// The associated value of the enum case if `self` is `.notFound`.+ ///+ /// - Throws: An error if `self` is not `.notFound`.+ /// - SeeAlso: `.notFound`.+ public var notFound: Operations.profiles_devices_getToManyRelated.Output.NotFound {+ get throws {+ switch self {+ case let .notFound(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "notFound",+ response: self+ )+ }+ }+ }+ public struct Ok: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content`.+ @frozen public enum Body: Sendable, Hashable {+ /// - Remark: Generated from `#/paths/v1/profiles/{id}/devices/GET/responses/200/content/application\/json`.+ case json(Components.Schemas.DevicesWithoutIncludesResponse)+ /// The associated value of the enum case if `self` is `.json`.+ ///+ /// - Throws: An error if `self` is not `.json`.+ /// - SeeAlso: `.json`.+ public var json: Components.Schemas.DevicesWithoutIncludesResponse {+ get throws {+ switch self {+ case let .json(body):+ return body+ }+ }+ }+ }+ /// Received HTTP response body+ public var body: Operations.profiles_devices_getToManyRelated.Output.Ok.Body+ /// Creates a new `Ok`.+ ///+ /// - Parameters:+ /// - body: Received HTTP response body+ public init(body: Operations.profiles_devices_getToManyRelated.Output.Ok.Body) {+ self.body = body+ }+ }+ /// List of Devices with get+ ///+ /// - Remark: Generated from `#/paths//v1/profiles/{id}/devices/get(profiles_devices_getToManyRelated)/responses/200`.+ ///+ /// HTTP response code: `200 ok`.+ case ok(Operations.profiles_devices_getToManyRelated.Output.Ok)+ /// The associated value of the enum case if `self` is `.ok`.+ ///+ /// - Throws: An error if `self` is not `.ok`.+ /// - SeeAlso: `.ok`.+ public var ok: Operations.profiles_devices_getToManyRelated.Output.Ok {+ get throws {+ switch self {+ case let .ok(response):+ return response+ default:+ try throwUnexpectedResponseStatus(+ expectedStatus: "ok",+ response: self+ )+ }+ }+ }+ /// Undocumented response.+ ///+ /// A response with a code that is not documented in the OpenAPI document.+ case undocumented(statusCode: Swift.Int, OpenAPIRuntime.UndocumentedPayload)+ }+ @frozen public enum AcceptableContentType: AcceptableProtocol {+ case json+ case other(Swift.String)+ public init?(rawValue: Swift.String) {+ switch rawValue.lowercased() {+ case "application/json":+ self = .json+ default:+ self = .other(rawValue)+ }+ }+ public var rawValue: Swift.String {+ switch self {+ case let .other(string):+ return string+ case .json:+ return "application/json"+ }+ }+ public static var allCases: [Self] {+ [+ .json+ ]+ }+ }+ }+}diff --git a/Sources/DeveloperAPI/openapi-generator-config.yaml b/Sources/DeveloperAPI/openapi-generator-config.yamlnew file mode 100644index 0000000..b9d1698--- /dev/null+++ b/Sources/DeveloperAPI/openapi-generator-config.yaml@@ -0,0 +1,11 @@+generate:+ - types+ - client+accessModifier: public+filter:+ tags:+ - BundleIds+ - BundleIdCapabilities+ - Certificates+ - Devices+ - Profilesdiff --git a/Sources/Supersign/DeveloperServices/DeveloperServices+OpenAPI.swift b/Sources/Supersign/DeveloperServices/DeveloperServices+OpenAPI.swiftnew file mode 100644index 0000000..f13bdfd--- /dev/null+++ b/Sources/Supersign/DeveloperServices/DeveloperServices+OpenAPI.swift@@ -0,0 +1,164 @@+import Foundation+import DeveloperAPI+import HTTPTypes+import OpenAPIRuntime+import OpenAPIURLSession++extension DeveloperAPIClient {+ public init(+ middlewares: [any ClientMiddleware],+ httpFactory: HTTPClientFactory = defaultHTTPClientFactory+ ) {+ self.init(+ serverURL: try! Servers.Server1.url(),+ configuration: .init(+ dateTranscoder: .iso8601WithFractionalSeconds+ ),+ transport: httpFactory.makeClient().asOpenAPITransport,+ middlewares: middlewares+ )+ }++ public init(+ xcodeAPI: DeveloperAPIXcodeMiddleware,+ httpFactory: HTTPClientFactory = defaultHTTPClientFactory+ ) {+ self.init(+ middlewares: [xcodeAPI],+ httpFactory: httpFactory+ )+ }+}++public struct DeveloperAPIXcodeMiddleware: ClientMiddleware {+ public let loginToken: DeveloperServicesLoginToken+ public let deviceInfo: DeviceInfo+ public let teamID: String+ public let anisetteDataProvider: AnisetteDataProvider++ public init(+ anisetteDataProvider: AnisetteDataProvider,+ loginToken: DeveloperServicesLoginToken,+ deviceInfo: DeviceInfo,+ teamID: String+ ) {+ self.anisetteDataProvider = anisetteDataProvider+ self.loginToken = loginToken+ self.deviceInfo = deviceInfo+ self.teamID = teamID+ }++ private static let baseURL = URL(string: "https://developerservices2.apple.com/services")!+ private static let queryEncoder = JSONEncoder()++ public func intercept(+ _ request: HTTPTypes.HTTPRequest,+ body: OpenAPIRuntime.HTTPBody?,+ baseURL: URL,+ operationID: String,+ next: @Sendable (+ _ request: HTTPTypes.HTTPRequest,+ _ body: OpenAPIRuntime.HTTPBody?,+ _ baseURL: URL+ ) async throws -> (HTTPTypes.HTTPResponse, OpenAPIRuntime.HTTPBody?)+ ) async throws -> (HTTPTypes.HTTPResponse, OpenAPIRuntime.HTTPBody?) {+ var request = request++ // General+ request.headerFields[.acceptLanguage] = Locale.preferredLanguages.joined(separator: ", ")+ request.headerFields[.accept] = "application/vnd.api+json"+ request.headerFields[.contentType] = "application/vnd.api+json"+ request.headerFields[.acceptEncoding] = "gzip, deflate"++ // Xcode-specific+ request.headerFields[.userAgent] = "Xcode"+ request.headerFields[.init(DeviceInfo.xcodeVersionKey)!] = "16.2 (16C5031c)"++ // MobileMe identity+ request.headerFields[.init(DeviceInfo.clientInfoKey)!] = """+ <VirtualMac2,1> <macOS;15.1.1;24B91> <com.apple.AuthKit/1 (com.apple.dt.Xcode/23505)>+ """ // deviceInfo.clientInfo.clientString+ request.headerFields[.init(DeviceInfo.deviceIDKey)!] = deviceInfo.deviceID++ // GrandSlam authentication+ request.headerFields[.init("X-Apple-App-Info")!] = AppTokenKey.xcode.rawValue+ request.headerFields[.init("X-Apple-I-Identity-Id")!] = loginToken.adsid+ request.headerFields[.init("X-Apple-GS-Token")!] = loginToken.token++ // Anisette+ let anisetteData = try await anisetteDataProvider.fetchAnisetteData()+ for (key, value) in anisetteData.dictionary {+ request.headerFields[.init(key)!] = value+ }++ // Body+ var body = body+ let originalMethod = request.method+ switch originalMethod {+ case .get, .delete:+ request.headerFields[.init("X-HTTP-Method-Override")!] = originalMethod.rawValue+ request.method = .post++ let path = request.path ?? "/"+ var components = URLComponents(string: path) ?? .init()+ components.queryItems = (components.queryItems ?? []) + [+ URLQueryItem(name: "teamId", value: teamID)+ ]+ let query = components.percentEncodedQuery ?? ""++ components.query = nil+ request.path = components.path++ let bodyData = try Self.queryEncoder.encode(["urlEncodedQueryParams": query])+ body = HTTPBody(bodyData)+ case .patch, .post:+ // set .data.attributes.teamId = teamID++ var workingBody: [String: Any] = [:]+ if let existingBody = body {+ let data = try await Data(collecting: existingBody, upTo: .max)+ print("Original body: \(String(decoding: data, as: UTF8.self))")+ guard let decodedBody = try JSONSerialization.jsonObject(with: data) as? [String: Any] else {+ fatalError("Bad body")+ }+ workingBody = decodedBody+ }++ var workingData: [String: Any] = [:]+ if let existingData = workingBody["data"] {+ guard let decodedData = existingData as? [String: Any] else {+ fatalError("Found `data` key but it was not an object")+ }+ workingData = decodedData+ }++ var workingAttributes: [String: Any] = [:]+ if let existingAttributes = workingData["attributes"] {+ guard let decodedAttributes = existingAttributes as? [String: Any] else {+ fatalError("Found `attributes` key but it was not an object")+ }+ workingAttributes = decodedAttributes+ }++ workingAttributes["teamId"] = teamID+ workingData["attributes"] = workingAttributes+ workingBody["data"] = workingData++ let encodedBody = try JSONSerialization.data(withJSONObject: workingBody)++ body = HTTPBody(encodedBody)+ request.headerFields[.contentLength] = "\(encodedBody.count)"+ default:+ print("warning: DeveloperServices: unrecognized http method: \(originalMethod)")+ break+ }++ var (response, responseBody) = try await next(request, body, Self.baseURL)++ if response.headerFields[.contentType] == "application/vnd.api+json" {+ response.headerFields[.contentType] = "application/json"+ }++ return (response, responseBody)+ }+}diff --git a/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swiftindex 8895e4f..8586892 100644--- a/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift+++ b/Sources/Supersign/HTTPClientProtocol/AsyncHTTPClient+HTTP.swift@@ -13,6 +13,8 @@ import NIOHTTP1import NIOSSLimport NIOFoundationCompatimport WebSocketKit+import OpenAPIRuntime+import OpenAPIAsyncHTTPClientextension HTTPClient: HTTPClientProtocol {@discardableResult@@ -68,6 +70,10 @@ extension HTTPClient: HTTPClientProtocol {private enum Errors: Error {case connectFailed}++ public var asOpenAPITransport: any ClientTransport {+ AsyncHTTPClientTransport(configuration: .init(client: self))+ }}private final class WebSocketSessionWrapper: WebSocketSession {diff --git a/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift b/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swiftindex 9b40f73..062e8cd 100644--- a/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift+++ b/Sources/Supersign/HTTPClientProtocol/HTTPClientProtocol.swift@@ -6,6 +6,7 @@//import Foundation+import OpenAPIRuntimepublic struct HTTPRequest: Sendable {public enum Body: Sendable {@@ -50,6 +51,8 @@ public struct HTTPResponse: Sendable {}public protocol HTTPClientProtocol: Sendable {+ var asOpenAPITransport: ClientTransport { get }+func makeRequest(_ request: HTTPRequest,onProgress: sending @isolated(any) (Double?) -> Voiddiff --git a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swiftindex 5b316fe..4587b54 100644--- a/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift+++ b/Sources/Supersign/HTTPClientProtocol/URLSession+HTTP.swift@@ -8,6 +8,8 @@#if !os(Linux)import Foundationimport ConcurrencyExtras+import OpenAPIRuntime+import OpenAPIURLSessionpublic struct UnknownHTTPError: Error {}@@ -54,6 +56,10 @@ private final class Client: HTTPClientProtocol {self.session = URLSession(configuration: .ephemeral, delegate: clientDelegate, delegateQueue: .main)}+ var asOpenAPITransport: any ClientTransport {+ URLSessionTransport(configuration: .init(session: session))+ }+public func makeRequest(_ request: HTTPRequest,onProgress: sending @isolated(any) (Double?) -> Void