The Swift Package Index logo.Swift Package Index

Build Information

Failed to build OAuthenticator, reference 0.7.2 (835bc0), with Swift 6.3 for Wasm on 18 Apr 2026 03:47:07 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/OAuthenticator.git
Reference: 0.7.2
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/ChimeHQ/OAuthenticator
 * tag               0.7.2      -> FETCH_HEAD
HEAD is now at 835bc01 Merge commit from fork
Cloned https://github.com/ChimeHQ/OAuthenticator.git
Revision (git rev-parse @):
835bc01596dfba77de92acfecf82c6f65105cb2d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/OAuthenticator.git at 0.7.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/ChimeHQ/OAuthenticator.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Emitting module OAuthenticator
/host/spi-builder-workspace/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/Sources/OAuthenticator/Authenticator.swift:136:17: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                 `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:136:44: error: cannot infer contextual base in reference to member 'default'
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                                            `- error: cannot infer contextual base in reference to member 'default'
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/Sources/OAuthenticator/DPoPSigner.swift:50:7: warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/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/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/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/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/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/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/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/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/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/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/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>
[5/21] Compiling OAuthenticator PKCE.swift
/host/spi-builder-workspace/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/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"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:201:18: error: cannot find 'URLRequest' in scope
199 | 			)
200 |
201 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
202 |
203 | 			request.httpMethod = "POST"
[6/21] Compiling OAuthenticator Bluesky.swift
/host/spi-builder-workspace/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/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"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:201:18: error: cannot find 'URLRequest' in scope
199 | 			)
200 |
201 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
202 |
203 | 			request.httpMethod = "POST"
[7/21] Compiling OAuthenticator URLSession+ResponseProvider.swift
/host/spi-builder-workspace/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/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>
[8/21] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/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/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>
[9/21] Compiling OAuthenticator WellknownEndpoints.swift
/host/spi-builder-workspace/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/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/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/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/21] Compiling OAuthenticator resource_bundle_accessor.swift
/host/spi-builder-workspace/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/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/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/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/21] Compiling OAuthenticator DPoPKey.swift
/host/spi-builder-workspace/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/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/Sources/OAuthenticator/DPoPSigner.swift:50:7: warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                               `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/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/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                            `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | 		nonce = newValue
/host/spi-builder-workspace/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
[12/21] Compiling OAuthenticator DPoPSigner.swift
/host/spi-builder-workspace/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/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/Sources/OAuthenticator/DPoPSigner.swift:50:7: warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- warning: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-Sendable type 'AnyObject'
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/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/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/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/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/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/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/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/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                               `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/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/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                            `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | 		nonce = newValue
/host/spi-builder-workspace/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
[13/21] Compiling OAuthenticator GitHub.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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")
[14/21] Compiling OAuthenticator GoogleAPI.swift
/host/spi-builder-workspace/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/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/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/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/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/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/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")
[15/21] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/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/Sources/OAuthenticator/Authenticator.swift:136:17: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                 `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:136:44: error: cannot infer contextual base in reference to member 'default'
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                                            `- error: cannot infer contextual base in reference to member 'default'
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/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/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?,
[16/21] Compiling OAuthenticator Authenticator.swift
/host/spi-builder-workspace/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/Sources/OAuthenticator/Authenticator.swift:136:17: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                 `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:136:44: error: cannot infer contextual base in reference to member 'default'
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                                            `- error: cannot infer contextual base in reference to member 'default'
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/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/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?,
[17/21] Compiling OAuthenticator CredentialWindowProvider.swift
/host/spi-builder-workspace/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/Sources/OAuthenticator/Authenticator.swift:136:17: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                 `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:136:44: error: cannot infer contextual base in reference to member 'default'
134 | 	@MainActor
135 | 	public static let defaultResponseProvider: URLResponseProvider = {
136 | 		let session = URLSession(configuration: .default)
    |                                            `- error: cannot infer contextual base in reference to member 'default'
137 |
138 | 		return session.responseProvider
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/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/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?,
[18/21] Compiling OAuthenticator Data+Base64URLEncode.swift
/host/spi-builder-workspace/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
/host/spi-builder-workspace/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/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/21] Compiling OAuthenticator Models.swift
/host/spi-builder-workspace/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/Sources/OAuthenticator/Models.swift:139:22: error: '@escaping' only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: '@escaping' only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/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/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/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/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                 `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
/host/spi-builder-workspace/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/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 | 		}
[20/21] Compiling OAuthenticator Mastodon.swift
/host/spi-builder-workspace/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/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/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/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"
[21/21] Compiling OAuthenticator URL+QueryParams.swift
/host/spi-builder-workspace/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/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/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/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"
BUILD FAILURE 6.3 wasm