The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ZohoBooksClient, reference main (24cef4), with Swift 6.2 for Wasm on 9 Feb 2026 22:49:23 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emotiveapps/ZohoBooksClient.git
Reference: main
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/emotiveapps/ZohoBooksClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 24cef43 paidThroughAccountId is optional
Cloned https://github.com/emotiveapps/ZohoBooksClient.git
Revision (git rev-parse @):
24cef43b93b59aaaad437a49faf7f5ba821ad04d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/emotiveapps/ZohoBooksClient.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/emotiveapps/ZohoBooksClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/ChimeHQ/OAuthenticator
Fetching https://github.com/emotiveapps/MimeTypeEnum
[1/46] Fetching mimetypeenum
[40/1156] Fetching mimetypeenum, oauthenticator
Fetched https://github.com/emotiveapps/MimeTypeEnum from cache (0.30s)
Fetched https://github.com/ChimeHQ/OAuthenticator from cache (0.30s)
Computing version for https://github.com/emotiveapps/MimeTypeEnum
Computed https://github.com/emotiveapps/MimeTypeEnum at 1.0.2 (1.04s)
Computing version for https://github.com/ChimeHQ/OAuthenticator
Computed https://github.com/ChimeHQ/OAuthenticator at 0.7.2 (0.69s)
Creating working copy for https://github.com/ChimeHQ/OAuthenticator
Working copy of https://github.com/ChimeHQ/OAuthenticator resolved at 0.7.2
Creating working copy for https://github.com/emotiveapps/MimeTypeEnum
Working copy of https://github.com/emotiveapps/MimeTypeEnum resolved at 1.0.2
Building for debugging...
[0/5] Write sources
[0/5] Copying PrivacyInfo.xcprivacy
[1/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/23] Emitting module OAuthenticator
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/25] Compiling OAuthenticator PKCE.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[8/25] Compiling OAuthenticator Bluesky.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[9/25] Compiling OAuthenticator WellknownEndpoints.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[10/25] Compiling OAuthenticator resource_bundle_accessor.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[11/25] Compiling OAuthenticator URLSession+ResponseProvider.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/25] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/25] Compiling OAuthenticator Mastodon.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[14/25] Compiling OAuthenticator URL+QueryParams.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[15/25] Compiling OAuthenticator GitHub.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[16/25] Compiling OAuthenticator GoogleAPI.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[17/25] Compiling OAuthenticator Data+Base64URLEncode.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[18/25] Compiling OAuthenticator Models.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[19/25] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[20/25] Compiling OAuthenticator Authenticator.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[21/25] Compiling OAuthenticator CredentialWindowProvider.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[22/25] Compiling OAuthenticator DPoPKey.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[23/25] Compiling OAuthenticator DPoPSigner.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
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/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[24/25] Compiling MimeTypeEnum MimeType.swift
[25/25] Emitting module MimeTypeEnum
BUILD FAILURE 6.2 wasm