The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftNetworkKit, reference v2.0.1 (0da705), with Swift 6.3 for Wasm on 30 Sep 2026 20:30:37 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-3":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[97/151] Compiling SwiftNetworkKit OfflineBehavior.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[98/151] Compiling SwiftNetworkKit OfflineReplayEvent.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[99/151] Compiling SwiftNetworkKit OfflineRequestQueue.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[100/151] Compiling SwiftNetworkKit OfflineStore.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[101/151] Compiling SwiftNetworkKit PersistedRequest.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[102/151] Compiling SwiftNetworkKit URLRequestArchive.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[103/151] Compiling SwiftNetworkKit PageLimitReached.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[104/151] Compiling SwiftNetworkKit PaginatedEndpoint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[105/151] Compiling SwiftNetworkKit DeduplicationKey.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[106/151] Compiling SwiftNetworkKit DeduplicationTypeMismatch.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[107/151] Compiling SwiftNetworkKit RequestDeduplicator.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[108/151] Compiling SwiftNetworkKit RequestQueue.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[109/151] Compiling SwiftNetworkKit RequestRegistry.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/FileOfflineStore.swift:86:75: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 84 |                 at: fileURL.deletingLastPathComponent(), withIntermediateDirectories: true
 85 |             )
 86 |             try JSONEncoder().encode(queue).write(to: fileURL, options: [.atomic, .completeFileProtectionUnlessOpen])
    |                                                                           `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
 87 |         } catch {
 88 |             logger.log(
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:12:33: error: cannot find type 'URLRequest' in scope
 10 | actor OfflineRequestQueue {
 11 |
 12 |     typealias Send = @Sendable (URLRequest) async throws -> HTTPURLResponse
    |                                 `- error: cannot find type 'URLRequest' in scope
 13 |
 14 |     /// A queued request whose re-send keeps failing at the transport level is dropped after this many
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:33:15: error: '@escaping' only applies to function types
 31 |         monitor: any NetworkMonitor,
 32 |         metrics: any NetworkMetrics = NoopMetrics(),
 33 |         send: @escaping Send
    |               `- error: '@escaping' only applies to function types
 34 |     ) {
 35 |         self.store = store
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/OfflineRequestQueue.swift:54:29: error: cannot find type 'URLRequest' in scope
 52 |
 53 |     /// Archives `request` and adds it to the queue. Returns its id.
 54 |     func enqueue(_ request: URLRequest, expiresAfter: TimeInterval?) async throws -> RequestID {
    |                             `- error: cannot find type 'URLRequest' in scope
 55 |         guard let archived = URLRequestArchive.archive(request) else {
 56 |             throw NetworkError.encoding(underlying: OfflineQueueError.notArchivable)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:22:36: error: cannot find type 'URLRequest' in scope
20 |     }
21 |
22 |     static func archive(_ request: URLRequest) -> Data? {
   |                                    `- error: cannot find type 'URLRequest' in scope
23 |         guard let url = request.url?.absoluteString else { return nil }
24 |         let wire = Wire(
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:34:44: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     static func unarchive(_ data: Data) -> URLRequest? {
   |                                            `- error: cannot find type 'URLRequest' in scope
35 |         guard let wire = try? JSONDecoder().decode(Wire.self, from: data),
36 |             let url = URL(string: wire.url)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:39:23: error: cannot find 'URLRequest' in scope
37 |         else { return nil }
38 |
39 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
40 |         request.httpMethod = wire.method
41 |         for (name, value) in wire.headers ?? [:] {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Offline/URLRequestArchive.swift:46:25: error: cannot find 'URLRequest' in scope
44 |         request.httpBody = wire.body
45 |         request.timeoutInterval = wire.timeout
46 |         if let policy = URLRequest.CachePolicy(rawValue: wire.cachePolicy) {
   |                         `- error: cannot find 'URLRequest' in scope
47 |             request.cachePolicy = policy
48 |         }
/host/spi-builder-workspace/Sources/SwiftNetworkKit/RequestManagement/DeduplicationKey.swift:11:33: error: cannot find type 'URLRequest' in scope
 9 | /// built from the request *after* authorization has been applied.
10 | enum DeduplicationKey {
11 |     static func make(_ request: URLRequest) -> String {
   |                                 `- error: cannot find type 'URLRequest' in scope
12 |         let method = request.httpMethod ?? "GET"
13 |         let url = request.url?.absoluteString ?? "?"
[110/151] Compiling SwiftNetworkKit MemoryCacheStore.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[111/151] Compiling SwiftNetworkKit ResponseCache.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[112/151] Compiling SwiftNetworkKit ContinuousClockAdapter.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[113/151] Compiling SwiftNetworkKit NetworkClock.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[114/151] Compiling SwiftNetworkKit NetworkClient+Publishers.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[115/151] Compiling SwiftNetworkKit TransferState.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[116/151] Compiling SwiftNetworkKit ConnectionType.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[117/151] Compiling SwiftNetworkKit NetworkMonitor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[118/151] Compiling SwiftNetworkKit NetworkStatus.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[119/151] Compiling SwiftNetworkKit NetworkStatusBroadcaster.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[120/151] Compiling SwiftNetworkKit PathNetworkMonitor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[121/151] Compiling SwiftNetworkKit AuthFingerprint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[122/151] Compiling SwiftNetworkKit AuthRequirement.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[123/151] Compiling SwiftNetworkKit JSONDecoder+NetworkKit.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[124/151] Compiling SwiftNetworkKit JSONEncoder+NetworkKit.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[125/151] Compiling SwiftNetworkKit EmptyResponse.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[126/151] Compiling SwiftNetworkKit Endpoint.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[127/151] Compiling SwiftNetworkKit EndpointDecodingFailure.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Endpoint.swift:71:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |     /// Turns response bytes into ``Response``. The default handles `Data`, `String`,
 70 |     /// ``EmptyResponse`` and `Decodable`; override for anything bespoke.
 71 |     func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 | }
 73 |
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/SwiftNetworkKit/Core/Endpoint.swift:96:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     // `Response.self == X.self` check on the preceding line, so the cast cannot fail.
 95 |     // swiftlint:disable force_cast
 96 |     public func decode(_ data: Data, response: HTTPURLResponse, using decoder: JSONDecoder) throws -> Response {
    |                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |         if Response.self == Data.self {
 98 |             return data as! Response
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
[128/151] Compiling SwiftNetworkKit RequestInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[129/151] Compiling SwiftNetworkKit ResponseInterceptor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[130/151] Compiling SwiftNetworkKit ConsoleNetworkLogger.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[131/151] Compiling SwiftNetworkKit LogLevel.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[132/151] Compiling SwiftNetworkKit NetworkLogFormatter.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[133/151] Compiling SwiftNetworkKit NetworkLogger.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[134/151] Compiling SwiftNetworkKit Redactor.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[135/151] Compiling SwiftNetworkKit InMemoryMetrics.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[136/151] Compiling SwiftNetworkKit MetricEvent.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[137/151] Compiling SwiftNetworkKit MetricsSnapshot.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[138/151] Compiling SwiftNetworkKit NetworkMetrics.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[139/151] Compiling SwiftNetworkKit NoopMetrics.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[140/151] Compiling SwiftNetworkKit AuthorizationCodeFlow.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[141/151] Compiling SwiftNetworkKit Base64URL.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[142/151] Compiling SwiftNetworkKit OAuthConfiguration.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[143/151] Compiling SwiftNetworkKit OAuthError.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
[144/151] Compiling SwiftNetworkKit OAuthTokenResponse.swift
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:82: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                                                                                  `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Interceptors/RequestInterceptor.swift:12:27: error: cannot find type 'URLRequest' in scope
10 | /// Use for cross-cutting request concerns: extra headers, signing, feature flags, locale.
11 | public protocol RequestInterceptor: Sendable {
12 |     func adapt(_ request: URLRequest, for endpoint: AnyEndpoint) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Logging/NetworkLogFormatter.swift:14:34: error: cannot find type 'URLRequest' in scope
12 |     let redactor: Redactor
13 |
14 |     func requestLines(_ request: URLRequest, endpoint: AnyEndpoint, level: LogLevel) -> [String] {
   |                                  `- error: cannot find type 'URLRequest' in scope
15 |         guard level >= .basic else { return [] }
16 |         let method = request.httpMethod ?? endpoint.method.rawValue
/host/spi-builder-workspace/Sources/SwiftNetworkKit/Core/Errors/ResponseContext.swift:12:25: error: cannot find type 'URLRequest' in scope
10 |     public let headers: HTTPHeaders
11 |     public let data: Data?
12 |     public let request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
13 |
14 |     public init(statusCode: Int, headers: HTTPHeaders, data: Data?, request: URLRequest) {
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:116:23: error: cannot find 'URLRequest' in scope
114 |         if let secret = configuration.clientSecret { fields["client_secret"] = secret }
115 |
116 |         var request = URLRequest(url: configuration.tokenEndpoint)
    |                       `- error: cannot find 'URLRequest' in scope
117 |         request.httpMethod = "POST"
118 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:123:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
121 |
122 |         let data: Data
123 |         let response: HTTPURLResponse
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
124 |         do {
125 |             (data, response) = try await transport.data(for: 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/SwiftNetworkKit/Transport/NetworkTransport.swift:18:28: error: cannot find type 'URLRequest' in scope
16 |     /// Implementations should map cancellation and connectivity failures to ``NetworkError``
17 |     /// (`.cancelled`, `.timeout`, `.noInternet`) and wrap anything else as `.transport`.
18 |     func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse)
   |                            `- error: cannot find type 'URLRequest' in scope
19 |
20 |     /// Sends `body` as the request body, reporting byte progress.
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:130:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
128 |         }
129 |
130 |         guard (200..<300).contains(response.statusCode) else {
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
/host/spi-builder-workspace/Sources/SwiftNetworkKit/OAuth/AuthorizationCodeFlow.swift:133:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
131 |             // A token endpoint can echo credentials back, so the body is masked before it goes in an error.
132 |             let redactor = Redactor(redactedBodyKeys: NetworkConfiguration.defaultRedactedBodyKeys)
133 |             throw OAuthError.tokenRequestFailed(status: response.statusCode, body: redactor.redact(body: data))
    |                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
134 |         }
135 |         do {
BUILD FAILURE 6.3 wasm