The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PaginatedRESTClient, reference 0.5.0 (da0471), with Swift 6.4 for Wasm on 16 Sep 2026 21:45:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/adamtheturtle/PaginatedRESTClient.git
Reference: 0.5.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/adamtheturtle/PaginatedRESTClient
 * tag               0.5.0      -> FETCH_HEAD
HEAD is now at da04711 Merge pull request #225 from adamtheturtle/fix/open-issues-batch-transport
Cloned https://github.com/adamtheturtle/PaginatedRESTClient.git
Revision (git rev-parse @):
da0471144598e5a3a13c56bb8651318b569c8488
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/adamtheturtle/PaginatedRESTClient.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/adamtheturtle/PaginatedRESTClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin (0.59s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (1.67s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3823] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.62s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.85s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:31: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 26 |     // default transport without hopping to MainActor.
 27 |     public nonisolated init(
 28 |         session: URLSession = URLSession(configuration: .ephemeral),
    |                               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         successResponseLimit: Int = 10 * 1024 * 1024,
 30 |         errorResponseLimit: Int = 64 * 1024
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:31: error: default argument value of type '_' cannot be converted to type 'AnyObject'
 26 |     // default transport without hopping to MainActor.
 27 |     public nonisolated init(
 28 |         session: URLSession = URLSession(configuration: .ephemeral),
    |                               `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
 29 |         successResponseLimit: Int = 10 * 1024 * 1024,
 30 |         errorResponseLimit: Int = 64 * 1024
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:33:34: error: cannot find type 'URLSessionDelegate' in scope
 31 |         bodyStreamFailureBox: FileBodyStreamFailureBox? = nil,
 32 |         requiresSameOrigin: Bool = true,
 33 |         forwardingDelegate: (any URLSessionDelegate)?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 34 |     ) {
 35 |         requestOrigin = Self.origin(from: requestURL)
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:14:63: error: cannot find type 'URLSessionTaskDelegate' in scope
 12 | /// Rejects redirects that would move an authenticated request to another origin,
 13 | /// while preserving the caller's task-delegate behavior for safe redirects.
 14 | final nonisolated class SameOriginRedirectDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                                               `- error: cannot find type 'URLSessionTaskDelegate' in scope
 15 |     private struct Origin: Equatable {
 16 |         let scheme: String
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:25:39: error: cannot find type 'URLSessionDelegate' in scope
 23 |     private let bodyStreamFailureBox: FileBodyStreamFailureBox?
 24 |     private let requiresSameOrigin: Bool
 25 |     private let sessionDelegate: (any URLSessionDelegate)?
    |                                       `- error: cannot find type 'URLSessionDelegate' in scope
 26 |     private let forwardingDelegate: (any URLSessionTaskDelegate)?
 27 |
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:26:42: error: cannot find type 'URLSessionTaskDelegate' in scope
 24 |     private let requiresSameOrigin: Bool
 25 |     private let sessionDelegate: (any URLSessionDelegate)?
 26 |     private let forwardingDelegate: (any URLSessionTaskDelegate)?
    |                                          `- error: cannot find type 'URLSessionTaskDelegate' in scope
 27 |
 28 |     init(
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:46:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 44 |         _ session: URLSession,
 45 |         didReceive challenge: URLAuthenticationChallenge,
 46 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
 47 |     ) {
 48 |         guard let sessionDelegate else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:44:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |
 43 |     func urlSession(
 44 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         didReceive challenge: URLAuthenticationChallenge,
 46 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:45:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     func urlSession(
 44 |         _ session: URLSession,
 45 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 46 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
 47 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:66:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |     }
 65 |
 66 |     func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |         #if canImport(FoundationNetworking)
 68 |         sessionDelegate?.urlSession(session, didBecomeInvalidWithError: error)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:78:29: error: cannot find type 'URLRequest' in scope
 76 |         task: URLSessionTask,
 77 |         willPerformHTTPRedirection response: HTTPURLResponse,
 78 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 79 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 80 |     ) {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:79:49: error: cannot find type 'URLRequest' in scope
 77 |         willPerformHTTPRedirection response: HTTPURLResponse,
 78 |         newRequest request: URLRequest,
 79 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 80 |     ) {
 81 |         guard allows(request) else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:75:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |
 74 |     func urlSession(
 75 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |         task: URLSessionTask,
 77 |         willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:76:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 74 |     func urlSession(
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |         willPerformHTTPRedirection response: HTTPURLResponse,
 78 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:77:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |         _ session: URLSession,
 76 |         task: URLSessionTask,
 77 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |         newRequest request: URLRequest,
 79 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/PaginatedRESTClient/SameOriginRedirectDelegate.swift:119:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
117 |         task: URLSessionTask,
118 |         didReceive challenge: URLAuthenticationChallenge,
119 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
120 |     ) {
121 |         guard let forwardingDelegate else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:116:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
114 |
115 |     func urlSession(
116 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |         task: URLSessionTask,
118 |         didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:117:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |     func urlSession(
116 |         _ session: URLSession,
117 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
118 |         didReceive challenge: URLAuthenticationChallenge,
119 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:118:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 |         _ session: URLSession,
117 |         task: URLSessionTask,
118 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
120 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:141:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 |
140 |     func urlSession(
141 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 |         task: URLSessionTask,
143 |         needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:142:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |     func urlSession(
141 |         _ session: URLSession,
142 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 |         needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
144 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:173:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |
172 |     func urlSession(
173 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         task: URLSessionTask,
175 |         didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:174:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |     func urlSession(
173 |         _ session: URLSession,
174 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 |         didSendBodyData bytesSent: Int64,
176 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:201:42: error: cannot find type 'URLRequest' in scope
199 |         _ session: URLSession,
200 |         task: URLSessionTask,
201 |         willBeginDelayedRequest request: URLRequest,
    |                                          `- error: cannot find type 'URLRequest' in scope
202 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
203 |     ) {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
200 |         task: URLSessionTask,
201 |         willBeginDelayedRequest request: URLRequest,
202 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
    |                                                            `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
203 |     ) {
204 |         guard let forwardingDelegate else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:202:87: error: cannot find type 'URLRequest' in scope
200 |         task: URLSessionTask,
201 |         willBeginDelayedRequest request: URLRequest,
202 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
203 |     ) {
204 |         guard let forwardingDelegate else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:199:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 |
198 |     func urlSession(
199 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 |         task: URLSessionTask,
201 |         willBeginDelayedRequest request: URLRequest,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:200:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |     func urlSession(
199 |         _ session: URLSession,
200 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
201 |         willBeginDelayedRequest request: URLRequest,
202 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:95: error: cannot find type 'URLSessionTaskMetrics' in scope
241 |     }
242 |
243 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                                                                               `- error: cannot find type 'URLSessionTaskMetrics' in scope
244 |         #if canImport(FoundationNetworking)
245 |         forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     }
242 |
243 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         #if canImport(FoundationNetworking)
245 |         forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:243:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 |     }
242 |
243 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         #if canImport(FoundationNetworking)
245 |         forwardingDelegate?.urlSession(session, task: task, didFinishCollecting: metrics)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:251:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |         #if canImport(FoundationNetworking)
253 |         forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:251:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 |     }
250 |
251 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |         #if canImport(FoundationNetworking)
253 |         forwardingDelegate?.urlSession(session, task: task, didCompleteWithError: error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:260:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 |     #if !canImport(FoundationNetworking)
260 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 |         forwardingDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
262 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:260:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 |
259 |     #if !canImport(FoundationNetworking)
260 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
261 |         forwardingDelegate?.urlSession?(session, taskIsWaitingForConnectivity: task)
262 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:266:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
264 |     @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
265 |     func urlSession(
266 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
267 |         task: URLSessionTask,
268 |         didReceiveInformationalResponse response: HTTPURLResponse
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:267:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 |     func urlSession(
266 |         _ session: URLSession,
267 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |         didReceiveInformationalResponse response: HTTPURLResponse
269 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:268:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |         _ session: URLSession,
267 |         task: URLSessionTask,
268 |         didReceiveInformationalResponse response: HTTPURLResponse
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     ) {
270 |         forwardingDelegate?.urlSession?(session, task: task, didReceiveInformationalResponse: 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
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:279:36: error: cannot find type 'URLRequest' in scope
277 |     }
278 |
279 |     private func allows(_ request: URLRequest) -> Bool {
    |                                    `- error: cannot find type 'URLRequest' in scope
280 |         guard let url = request.url,
281 |               let components = URLComponents(url: url, resolvingAgainstBaseURL: false),
/host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift:294:61: error: cannot find type 'URLRequest' in scope
292 |     }
293 |
294 |     private static func containsSensitiveHeaders(_ request: URLRequest) -> Bool {
    |                                                             `- error: cannot find type 'URLRequest' in scope
295 |         let sensitive = ["authorization", "cookie", "proxy-authorization"]
296 |         return (request.allHTTPHeaderFields ?? [:]).keys.contains {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:21:5: error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
 19 | /// configured session (custom timeouts or a stub `URLProtocol`) when you need one.
 20 | public struct URLSessionTransport: RESTTransport {
 21 |     nonisolated let session: URLSession
    |     `- error: 'nonisolated' can not be applied to variable with non-'Sendable' type 'URLSession' (aka 'AnyObject')
 22 |     nonisolated let successResponseLimit: Int
 23 |     nonisolated let errorResponseLimit: Int
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:21:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 | /// configured session (custom timeouts or a stub `URLProtocol`) when you need one.
 20 | public struct URLSessionTransport: RESTTransport {
 21 |     nonisolated let session: URLSession
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     nonisolated let successResponseLimit: Int
 23 |     nonisolated let errorResponseLimit: Int
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:28:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     // default transport without hopping to MainActor.
 27 |     public nonisolated init(
 28 |         session: URLSession = URLSession(configuration: .ephemeral),
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         successResponseLimit: Int = 10 * 1024 * 1024,
 30 |         errorResponseLimit: Int = 64 * 1024
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:42:56: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     /// response path. Reject them before a request starts rather than failing after the
 41 |     /// system has accepted the transfer.
 42 |     public nonisolated static func supports(_ session: URLSession) -> Bool {
    |                                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |         #if os(Linux)
 44 |         true
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:128:17: error: cannot find type 'URLRequest' in scope
126 |         from request: RESTRequest,
127 |         bodyStreamFailureBox: FileBodyStreamFailureBox? = nil
128 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
129 |         try request.validate()
130 |         var urlRequest = URLRequest(url: request.url)
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:145:20: error: cannot find type 'URLRequest' in scope
143 |
144 |     private nonisolated static func requiresSameOrigin(
145 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
146 |         bodyFileURL: URL?
147 |     ) -> Bool {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:159:30: error: cannot find type 'URLRequest' in scope
157 |     private nonisolated static func attachFileBody(
158 |         _ bodyFileURL: URL,
159 |         to urlRequest: inout URLRequest,
    |                              `- error: cannot find type 'URLRequest' in scope
160 |         failureBox: FileBodyStreamFailureBox? = nil
161 |     ) throws {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:211:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |     /// values (such as NSArray), which can add quotes and brackets not present on the wire.
210 |     /// Package-visible so the Linux bounded loader can reuse the same header projection.
211 |     nonisolated static func responseHeaders(from response: HTTPURLResponse) -> [String: String] {
    |                                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
212 |         response.allHeaderFields.reduce(into: [String: String]()) { result, field in
213 |             guard let name = field.key as? String,
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/PaginatedRESTClient/URLSessionTransport.swift:322:34: error: cannot find type 'URLSessionDelegate' in scope
320 |         requiresSameOrigin: Bool = true,
321 |         retainingSuccessBody: Bool = true,
322 |         forwardingDelegate: (any URLSessionDelegate)?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
323 |     ) {
324 |         self.successResponseLimit = successResponseLimit
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:276:48: error: cannot find type 'URLSessionDataDelegate' in scope
274 | }
275 |
276 | final class BoundedURLSessionLoader: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                                `- error: cannot find type 'URLSessionDataDelegate' in scope
277 |     private struct State {
278 |         var continuation: CheckedContinuation<RESTResponse, any Error>?
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:282:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
280 |         /// task-specific delegates, so Linux creates a one-shot session with `self`
281 |         /// as the session delegate and finishes it when the transfer ends.
282 |         var ownedSession: URLSession?
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
283 |         var task: URLSessionDataTask?
284 |         var response: HTTPURLResponse?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:283:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
281 |         /// as the session delegate and finishes it when the transfer ends.
282 |         var ownedSession: URLSession?
283 |         var task: URLSessionDataTask?
    |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
284 |         var response: HTTPURLResponse?
285 |         var data = Data()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:284:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 |         var ownedSession: URLSession?
283 |         var task: URLSessionDataTask?
284 |         var response: HTTPURLResponse?
    |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
285 |         var data = Data()
286 |         var limit = 0
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/PaginatedRESTClient/URLSessionTransport.swift:294:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
292 |     private struct CancellationResources {
293 |         let continuation: CheckedContinuation<RESTResponse, any Error>?
294 |         let task: URLSessionDataTask?
    |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
295 |         let ownedSession: URLSession?
296 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:295:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
293 |         let continuation: CheckedContinuation<RESTResponse, any Error>?
294 |         let task: URLSessionDataTask?
295 |         let ownedSession: URLSession?
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
296 |     }
297 |
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:310:42: error: cannot find type 'URLSessionDelegate' in scope
308 |     private let redirectDelegate: SameOriginRedirectDelegate
309 |     private let retainingSuccessBody: Bool
310 |     private let forwardingDelegate: (any URLSessionDelegate)?
    |                                          `- error: cannot find type 'URLSessionDelegate' in scope
311 |     private let bodyFileURL: URL?
312 |     private let bodyStreamFailureBox: FileBodyStreamFailureBox?
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:48: error: cannot find type 'URLRequest' in scope
344 |     /// the loader creates a one-shot session from the caller's configuration and owns
345 |     /// that session for the duration of the transfer.
346 |     func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
    |                                                `- error: cannot find type 'URLRequest' in scope
347 |         try await withTaskCancellationHandler {
348 |             try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:346:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 |     /// the loader creates a one-shot session from the caller's configuration and owns
345 |     /// that session for the duration of the transfer.
346 |     func load(on session: URLSession, request: URLRequest) async throws -> RESTResponse {
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 |         try await withTaskCancellationHandler {
348 |             try await withCheckedThrowingContinuation { continuation in
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:390:21: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
388 |     nonisolated static func constrainedResponseDisposition(
389 |         _ disposition: URLSession.ResponseDisposition
390 |     ) -> URLSession.ResponseDisposition {
    |                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
391 |         disposition == .cancel ? .cancel : .allow
392 |     }
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:389:35: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
387 |     /// `.allow` so a `RESTResponse` can still be produced.
388 |     nonisolated static func constrainedResponseDisposition(
389 |         _ disposition: URLSession.ResponseDisposition
    |                                   `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
390 |     ) -> URLSession.ResponseDisposition {
391 |         disposition == .cancel ? .cancel : .allow
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:398:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
396 |         dataTask: URLSessionDataTask,
397 |         didReceive response: URLResponse,
398 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
    |                                                            `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
399 |     ) {
400 |         guard let http = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:395:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
393 |
394 |     func urlSession(
395 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
396 |         dataTask: URLSessionDataTask,
397 |         didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:396:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
394 |     func urlSession(
395 |         _ session: URLSession,
396 |         dataTask: URLSessionDataTask,
    |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
397 |         didReceive response: URLResponse,
398 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:397:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
395 |         _ session: URLSession,
396 |         dataTask: URLSessionDataTask,
397 |         didReceive response: URLResponse,
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
398 |         completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void
399 |     ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 |     }
455 |
456 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 |         let shouldRetain = lock.withLock { state.retainBody }
458 |         guard shouldRetain else {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:456:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
454 |     }
455 |
456 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
457 |         let shouldRetain = lock.withLock { state.retainBody }
458 |         guard shouldRetain else {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 |     }
487 |
488 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 |         #if canImport(FoundationNetworking)
490 |         (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:488:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
486 |     }
487 |
488 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
489 |         #if canImport(FoundationNetworking)
490 |         (forwardingDelegate as? any URLSessionTaskDelegate)?
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:523:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
521 |
522 |     private func forwardDidReceiveData(
523 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
524 |         dataTask: URLSessionDataTask,
525 |         data: Data
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:524:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
522 |     private func forwardDidReceiveData(
523 |         _ session: URLSession,
524 |         dataTask: URLSessionDataTask,
    |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
525 |         data: Data
526 |     ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:581:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
579 |         _ session: URLSession,
580 |         didReceive challenge: URLAuthenticationChallenge,
581 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
582 |     ) {
583 |         redirectDelegate.urlSession(session, didReceive: challenge, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:579:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
577 |
578 |     func urlSession(
579 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
580 |         didReceive challenge: URLAuthenticationChallenge,
581 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:580:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
578 |     func urlSession(
579 |         _ session: URLSession,
580 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
581 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
582 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:590:29: error: cannot find type 'URLRequest' in scope
588 |         task: URLSessionTask,
589 |         willPerformHTTPRedirection response: HTTPURLResponse,
590 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
591 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
592 |     ) {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:591:49: error: cannot find type 'URLRequest' in scope
589 |         willPerformHTTPRedirection response: HTTPURLResponse,
590 |         newRequest request: URLRequest,
591 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
592 |     ) {
593 |         redirectDelegate.urlSession(
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:587:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
585 |
586 |     func urlSession(
587 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
588 |         task: URLSessionTask,
589 |         willPerformHTTPRedirection response: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:588:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
586 |     func urlSession(
587 |         _ session: URLSession,
588 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
589 |         willPerformHTTPRedirection response: HTTPURLResponse,
590 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:589:46: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
587 |         _ session: URLSession,
588 |         task: URLSessionTask,
589 |         willPerformHTTPRedirection response: HTTPURLResponse,
    |                                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
590 |         newRequest request: URLRequest,
591 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/PaginatedRESTClient/URLSessionTransport.swift:606:60: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
604 |         task: URLSessionTask,
605 |         didReceive challenge: URLAuthenticationChallenge,
606 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
    |                                                            `- error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
607 |     ) {
608 |         redirectDelegate.urlSession(
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:603:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
601 |
602 |     func urlSession(
603 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
604 |         task: URLSessionTask,
605 |         didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:604:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
602 |     func urlSession(
603 |         _ session: URLSession,
604 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
605 |         didReceive challenge: URLAuthenticationChallenge,
606 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:605:31: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
603 |         _ session: URLSession,
604 |         task: URLSessionTask,
605 |         didReceive challenge: URLAuthenticationChallenge,
    |                               `- error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
606 |         completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
607 |     ) {
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' 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 URLAuthenticationChallenge = AnyObject
  |                  `- note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:617:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
615 |
616 |     func urlSession(
617 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
618 |         task: URLSessionTask,
619 |         needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:618:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
616 |     func urlSession(
617 |         _ session: URLSession,
618 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
619 |         needNewBodyStream completionHandler: @escaping @Sendable (InputStream?) -> Void
620 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:629:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
627 |
628 |     func urlSession(
629 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
630 |         task: URLSessionTask,
631 |         didSendBodyData bytesSent: Int64,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:630:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
628 |     func urlSession(
629 |         _ session: URLSession,
630 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
631 |         didSendBodyData bytesSent: Int64,
632 |         totalBytesSent: Int64,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:647:42: error: cannot find type 'URLRequest' in scope
645 |         _ session: URLSession,
646 |         task: URLSessionTask,
647 |         willBeginDelayedRequest request: URLRequest,
    |                                          `- error: cannot find type 'URLRequest' in scope
648 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
649 |     ) {
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:60: error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
646 |         task: URLSessionTask,
647 |         willBeginDelayedRequest request: URLRequest,
648 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
    |                                                            `- error: 'DelayedRequestDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
649 |     ) {
650 |         redirectDelegate.urlSession(
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:648:87: error: cannot find type 'URLRequest' in scope
646 |         task: URLSessionTask,
647 |         willBeginDelayedRequest request: URLRequest,
648 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
649 |     ) {
650 |         redirectDelegate.urlSession(
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:645:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
643 |
644 |     func urlSession(
645 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
646 |         task: URLSessionTask,
647 |         willBeginDelayedRequest request: URLRequest,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:646:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
644 |     func urlSession(
645 |         _ session: URLSession,
646 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
647 |         willBeginDelayedRequest request: URLRequest,
648 |         completionHandler: @escaping @Sendable (URLSession.DelayedRequestDisposition, URLRequest?) -> Void
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:95: error: cannot find type 'URLSessionTaskMetrics' in scope
656 |     }
657 |
658 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                                                                               `- error: cannot find type 'URLSessionTaskMetrics' in scope
659 |         redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 |     }
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 |     }
657 |
658 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 |         redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:658:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
656 |     }
657 |
658 |     func urlSession(_ session: URLSession, task: URLSessionTask, didFinishCollecting metrics: URLSessionTaskMetrics) {
    |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
659 |         redirectDelegate.urlSession(session, task: task, didFinishCollecting: metrics)
660 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 |     #if !canImport(FoundationNetworking)
663 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 |         redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 |     }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:663:79: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
661 |
662 |     #if !canImport(FoundationNetworking)
663 |     func urlSession(_ session: URLSession, taskIsWaitingForConnectivity task: URLSessionTask) {
    |                                                                               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
664 |         redirectDelegate.urlSession(session, taskIsWaitingForConnectivity: task)
665 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:669:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
667 |     @available(macOS 14.0, iOS 17.0, tvOS 17.0, watchOS 10.0, *)
668 |     func urlSession(
669 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
670 |         task: URLSessionTask,
671 |         didReceiveInformationalResponse response: HTTPURLResponse
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:670:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
668 |     func urlSession(
669 |         _ session: URLSession,
670 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
671 |         didReceiveInformationalResponse response: HTTPURLResponse
672 |     ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:671:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
669 |         _ session: URLSession,
670 |         task: URLSessionTask,
671 |         didReceiveInformationalResponse response: HTTPURLResponse
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
672 |     ) {
673 |         redirectDelegate.urlSession(session, task: task, didReceiveInformationalResponse: 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
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:678:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
676 |
677 |     func urlSession(
678 |         _ session: URLSession,
    |                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 |         dataTask: URLSessionDataTask,
680 |         willCacheResponse proposedResponse: CachedURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:679:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
677 |     func urlSession(
678 |         _ session: URLSession,
679 |         dataTask: URLSessionDataTask,
    |                   `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
680 |         willCacheResponse proposedResponse: CachedURLResponse,
681 |         completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:680:45: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
678 |         _ session: URLSession,
679 |         dataTask: URLSessionDataTask,
680 |         willCacheResponse proposedResponse: CachedURLResponse,
    |                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
681 |         completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
682 |     ) {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift:681:49: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
679 |         dataTask: URLSessionDataTask,
680 |         willCacheResponse proposedResponse: CachedURLResponse,
681 |         completionHandler: @escaping @Sendable (CachedURLResponse?) -> Void
    |                                                 `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
682 |     ) {
683 |         guard let delegate = forwardingDelegate as? any URLSessionDataDelegate else {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/PaginatedRESTClient/PaginatedRESTClient.swift /host/spi-builder-workspace/Sources/PaginatedRESTClient/RESTTransport.swift /host/spi-builder-workspace/Sources/PaginatedRESTClient/SameOriginRedirectDelegate.swift /host/spi-builder-workspace/Sources/PaginatedRESTClient/URLSessionTransport.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature NonisolatedNonsendingByDefault -enable-upcoming-feature InferIsolatedConformances -enable-experimental-feature DebugDescriptionMacro -default-isolation MainActor -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name PaginatedRESTClient -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/PaginatedRESTClient_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/Modules/PaginatedRESTClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/Modules/PaginatedRESTClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/PaginatedRESTClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/PaginatedRESTClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/PaginatedRESTClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/PaginatedRESTClient.build/Debug-webassembly-wasm32/PaginatedRESTClient-t.build/Objects-normal/wasm32/Modules/PaginatedRESTClient.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm