The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Endpoints, reference main (dabe0a), with Swift 6.1 for Wasm on 30 Oct 2026 09:41:50 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 |         guard let statusCode = response?.statusCode else {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |             return false
169 |         }
[22/28] Compiling Endpoints JWTAuth.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 |             var pairs = existing
39 |                 .components(separatedBy: ";")
40 |                 .map { $0.trimmingCharacters(in: .whitespaces) }
   |                                                   `- error: cannot infer contextual base in reference to member 'whitespaces'
41 |                 .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 |             pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 |         guard let statusCode = response?.statusCode else {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |             return false
169 |         }
[23/28] Compiling Endpoints URLSession+Combine.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[24/28] Compiling Endpoints URLSession+Endpoints.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[25/28] Compiling Endpoints Header.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[26/28] Compiling Endpoints NoAuth.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
[27/28] Compiling Endpoints Definition+URLResponse.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
[28/28] Compiling Endpoints Endpoint+URLRequest.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:f257c9b8465670613eb336f6def351d681b1d395aebdb231a45bac980c1f9d3c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/24] Compiling Endpoints URLSession+Combine.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[3/24] Compiling Endpoints URLSession+Endpoints.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[4/24] Compiling Endpoints Header.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:207:30: error: cannot find type 'URLRequest' in scope
205 |         for endpoint: T,
206 |         in environment: T.Server.Environments = T.Server.defaultEnvironment
207 |     ) throws(T.TaskError) -> URLRequest {
    |                              `- error: cannot find type 'URLRequest' in scope
208 |         do {
209 |             return try endpoint.urlRequest(in: environment)
[5/27] Compiling Endpoints NoAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
[6/27] Compiling Endpoints Definition+URLResponse.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
[7/27] Compiling Endpoints Endpoint+URLRequest.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:36:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 |         // if we don't have an `error`, we must have an `HTTPURLResponse`
36 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |             return .failure(.urlLoadError(URLError(.badServerResponse)))
38 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:40:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
38 |         }
39 |
40 |         if httpResponse.statusCode == 204 {
   |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:43:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |             // handle empty response
42 |             return .success(Data())
43 |         } else if (200..<300).contains(httpResponse.statusCode), let data = data {
   |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |             return .success(data)
45 |         } else if let data = data {
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:99:26: error: cannot find 'URLRequest' in scope
 97 |         }
 98 |
 99 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
100 |         urlRequest.httpMethod = Self.definition.method.methodString
101 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
[8/27] Compiling Endpoints Endpoint.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 14 |
 15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
 16 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 17 |
 18 |     /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 |     /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 |     private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
144 |         do {
145 |             return try await data(for: urlRequest)
[9/27] Compiling Endpoints Array+Form.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 14 |
 15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
 16 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 17 |
 18 |     /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 |     /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 |     private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
144 |         do {
145 |             return try await data(for: urlRequest)
[10/27] Compiling Endpoints URLSession+Async.swift
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 14 |
 15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
 16 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 17 |
 18 |     /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:143:56: error: cannot find type 'URLRequest' in scope
141 |
142 |     /// Loads data for the request, mapping `URLSession` failures into the endpoint's ``EndpointTaskError``.
143 |     private func loadData<T: Endpoint>(for urlRequest: URLRequest, endpoint: T.Type) async throws(T.TaskError) -> (data: Data, response: URLResponse) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
144 |         do {
145 |             return try await data(for: urlRequest)
[11/27] Compiling Endpoints CookieAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 |             var pairs = existing
39 |                 .components(separatedBy: ";")
40 |                 .map { $0.trimmingCharacters(in: .whitespaces) }
   |                                                   `- error: cannot infer contextual base in reference to member 'whitespaces'
41 |                 .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 |             pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 |         guard let statusCode = response?.statusCode else {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |             return false
169 |         }
[12/27] Compiling Endpoints HeaderKeyAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 |             var pairs = existing
39 |                 .components(separatedBy: ";")
40 |                 .map { $0.trimmingCharacters(in: .whitespaces) }
   |                                                   `- error: cannot infer contextual base in reference to member 'whitespaces'
41 |                 .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 |             pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 |         guard let statusCode = response?.statusCode else {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |             return false
169 |         }
[13/27] Compiling Endpoints JWTAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:40:51: error: cannot infer contextual base in reference to member 'whitespaces'
38 |             var pairs = existing
39 |                 .components(separatedBy: ";")
40 |                 .map { $0.trimmingCharacters(in: .whitespaces) }
   |                                                   `- error: cannot infer contextual base in reference to member 'whitespaces'
41 |                 .filter { !$0.isEmpty && $0 != name && !$0.hasPrefix("\(name)=") }
42 |             pairs.append(cookiePair)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:167:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
167 |         guard let statusCode = response?.statusCode else {
    |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
168 |             return false
169 |         }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/27] Emitting module Endpoints
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:88: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/CookieAuth.swift:31:39: error: cannot find type 'URLRequest' in scope
29 |     }
30 |
31 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
32 |         var mutableRequest = request
33 |         let cookiePair = "\(name)=\(value)"
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:88: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/HeaderKeyAuth.swift:38:39: error: cannot find type 'URLRequest' in scope
36 |     }
37 |
38 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
39 |         var mutableRequest = request
40 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: header.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:88: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:139:39: error: cannot find type 'URLRequest' in scope
137 |     // MARK: - AuthenticationMethod
138 |
139 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
140 |         // A request made from inside this instance's own refreshHandler would wait on
141 |         // the very refresh that is waiting on it. Fail with a diagnosable error instead
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:166:82: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |     }
165 |
166 |     public nonisolated func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
    |                                                                                  `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
167 |         guard let statusCode = response?.statusCode else {
168 |             return false
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/JWTAuth.swift:173:53: error: cannot find type 'URLRequest' in scope
171 |     }
172 |
173 |     public func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
    |                                                     `- error: cannot find type 'URLRequest' in scope
174 |         // If the tokens have rotated since the failed request was authenticated, the
175 |         // refresh that request needed has already happened. Refreshing again would
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:88: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/NoAuth.swift:11:39: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
12 |         request
13 |     }
/host/spi-builder-workspace/Sources/Endpoints/Definition+URLResponse.swift:26:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     ///   - error: The error the data task reported, if any.
25 |     /// - Returns: The response body, or the error to throw.
26 |     func response(data: Data?, response: URLResponse?, error: Error?) -> Result<Data, T.TaskError> {
   |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if let error = error {
28 |             guard (error as NSError).code != URLError.Code.notConnectedToInternet.rawValue else {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Endpoint+URLRequest.swift:24:32: error: cannot find type 'URLRequest' in scope
 22 |     public func urlRequest(
 23 |         in environment: Server.Environments = Server.defaultEnvironment
 24 |     ) throws(EndpointError) -> URLRequest {
    |                                `- error: cannot find type 'URLRequest' in scope
 25 |
 26 |         var components = URLComponents()
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Async.swift:16:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 14 |
 15 | @available(iOS 13.0, tvOS 13.0, watchOS 6.0, macOS 12, *)
 16 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 17 |
 18 |     /// Sends the endpoint's request and ignores the response body.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:38: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |                                      `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     /// `URLSession` failed to load the request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:23:10: error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 21 |
 22 |     /// The response had no body, and its status code wasn't 204.
 23 |     case unexpectedResponse(httpResponse: HTTPURLResponse)
    |          `- error: associated value 'unexpectedResponse(httpResponse:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 24 |
 25 |     /// The server returned an error status code, and its body was decoded as the
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:27:10: error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 25 |     /// The server returned an error status code, and its body was decoded as the
 26 |     /// endpoint's ``Endpoint/ErrorResponse``.
 27 |     case errorResponse(httpResponse: HTTPURLResponse, response: ErrorResponseType)
    |          `- error: associated value 'errorResponse(httpResponse:response:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:30:10: error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 28 |     /// The server returned an error status code, and its body couldn't be decoded as
 29 |     /// the endpoint's ``Endpoint/ErrorResponse``.
 30 |     case errorResponseParseError(httpResponse: HTTPURLResponse, data: Data, error: Error)
    |          `- error: associated value 'errorResponseParseError(httpResponse:data:error:)' of 'Sendable'-conforming generic enum 'EndpointTaskError' has non-sendable type 'HTTPURLResponse' (aka 'AnyObject')
 31 |
 32 |     /// `URLSession` failed to load the request.
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:47:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |     /// `nil` when the request failed before a response arrived, such as when it couldn't
 46 |     /// be built, the connection failed, or the device was offline.
 47 |     var httpResponse: HTTPURLResponse? {
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |         switch self {
 49 |         case .errorResponse(let httpResponse, _),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Extensions/URLSession+Endpoints.swift:64:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 62 | }
 63 |
 64 | public extension URLSession {
    |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 65 |
 66 |     /// Creates a data task for an endpoint whose response body is ignored.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                                            `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                               `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                      `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
[15/27] Compiling Endpoints AuthenticationError.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[16/27] Compiling Endpoints AuthenticationMethod.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[17/27] Compiling Endpoints AuthenticationStability.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[18/27] Compiling Endpoints BasicAuth.swift
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:81: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                                                                 `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:16:32: error: cannot find type 'URLRequest' in scope
14 |     /// - Returns: The authenticated request.
15 |     /// - Throws: ``AuthenticationError/notAuthenticated`` if there are no credentials.
16 |     func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest
   |                                `- error: cannot find type 'URLRequest' in scope
17 |
18 |     /// Returns whether a failed request should be retried after ``reauthenticate(after:)``.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:25:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     ///   - response: The HTTP response, if the server returned one.
24 |     /// - Returns: `true` to refresh the credentials and retry.
25 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// Refreshes the credentials after a failed request.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:35:46: error: cannot find type 'URLRequest' in scope
33 |     /// Throws ``AuthenticationError/refreshNotSupported`` by default.
34 |     /// - Parameter failedRequest: The failed request, as returned by ``authenticate(request:)``.
35 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError)
   |                                              `- error: cannot find type 'URLRequest' in scope
36 |
37 |     /// How many times a request can be retried after reauthenticating. Defaults to 1.
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:47:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 |
46 |     /// Returns `false`, so failed requests are never retried.
47 |     func shouldReauthenticate(for error: any Error, response: HTTPURLResponse?) -> Bool {
   |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         false
49 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Endpoints/Authentication/AuthenticationMethod.swift:52:46: error: cannot find type 'URLRequest' in scope
50 |
51 |     /// Throws ``AuthenticationError/refreshNotSupported``.
52 |     func reauthenticate(after failedRequest: URLRequest) async throws(AuthenticationError) {
   |                                              `- error: cannot find type 'URLRequest' in scope
53 |         throw AuthenticationError.refreshNotSupported
54 |     }
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:88: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                                                                        `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
/host/spi-builder-workspace/Sources/Endpoints/Authentication/Implementations/BasicAuth.swift:27:39: error: cannot find type 'URLRequest' in scope
25 |     }
26 |
27 |     public func authenticate(request: URLRequest) async throws(AuthenticationError) -> URLRequest {
   |                                       `- error: cannot find type 'URLRequest' in scope
28 |         var mutableRequest = request
29 |         mutableRequest.setValue(headerValue, forHTTPHeaderField: Header.authorization.name)
[19/27] Compiling Endpoints ParameterRepresentable.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                                            `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                               `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                      `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 |     public init() {
151 |         self.baseUrls = [:]
152 |         self.requestProcessor = { @Sendable in $0 }
    |                                 `- error: cannot infer type of closure parameter '$0' without a type annotation
153 |     }
154 |
[20/27] Compiling Endpoints PathTemplate.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                                            `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                               `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                      `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 |     public init() {
151 |         self.baseUrls = [:]
152 |         self.requestProcessor = { @Sendable in $0 }
    |                                 `- error: cannot infer type of closure parameter '$0' without a type annotation
153 |     }
154 |
[21/27] Compiling Endpoints Server.swift
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:38: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                      `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:71:53: error: cannot find type 'URLRequest' in scope
 69 |     /// Use it for static changes, such as adding a build-number header. Use ``auth``
 70 |     /// for credentials.
 71 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { get }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 72 |
 73 |     /// The authentication method shared by all endpoints on this server.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:38: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                      `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:93:53: error: cannot find type 'URLRequest' in scope
 91 | public extension ServerDefinition {
 92 |     /// Returns the request unchanged.
 93 |     var requestProcessor: @Sendable (URLRequest) -> URLRequest { return { $0 } }
    |                                                     `- error: cannot find type 'URLRequest' in scope
 94 | }
 95 |
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:45: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                             `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:107:60: error: cannot find type 'URLRequest' in scope
105 | public struct GenericServer: ServerDefinition {
106 |     public let baseUrls: [Environments: URL]
107 |     public let requestProcessor: @Sendable (URLRequest) -> URLRequest
    |                                                            `- error: cannot find type 'URLRequest' in scope
108 |
109 |     /// Creates a server with a base URL for each environment you pass.
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:48: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:121:63: error: cannot find type 'URLRequest' in scope
119 |         staging: URL? = nil,
120 |         production: URL? = nil,
121 |         requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }
    |                                                               `- error: cannot find type 'URLRequest' in scope
122 |     ) {
123 |         var urls: [Environments: URL] = [:]
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:70: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                      `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:136:85: error: cannot find type 'URLRequest' in scope
134 |     ///   - baseUrl: The base URL.
135 |     ///   - requestProcessor: Changes each request after it is built.
136 |     public init(baseUrl: URL, requestProcessor: @Sendable @escaping (URLRequest) -> URLRequest = { $0 }) {
    |                                                                                     `- error: cannot find type 'URLRequest' in scope
137 |         self.baseUrls = [
138 |             .local: baseUrl,
/host/spi-builder-workspace/Sources/Endpoints/Server.swift:152:33: error: cannot infer type of closure parameter '$0' without a type annotation
150 |     public init() {
151 |         self.baseUrls = [:]
152 |         self.requestProcessor = { @Sendable in $0 }
    |                                 `- error: cannot infer type of closure parameter '$0' without a type annotation
153 |     }
154 |
[22/27] Compiling Endpoints Method.swift
[23/27] Compiling Endpoints MockContinuation.swift
[24/27] Compiling Endpoints MockRegistry.swift
[25/27] Compiling Endpoints Mocking.swift
[26/27] Compiling Endpoints URLSessionTask+Swizzling.swift
[27/27] Compiling Endpoints MultipartFormEncoder.swift
BUILD FAILURE 6.1 wasm