The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ZohoBooksClient, reference 0.1.2 (71b68f), with Swift 6.1 for Wasm on 20 Jan 2026 17:03:01 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/emotiveapps/ZohoBooksClient.git
Reference: 0.1.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/emotiveapps/ZohoBooksClient
 * tag               0.1.2      -> FETCH_HEAD
HEAD is now at 71b68f3 Fix lint
Cloned https://github.com/emotiveapps/ZohoBooksClient.git
Revision (git rev-parse @):
71b68f301547110794b334d363ec3fce8538efd3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/emotiveapps/ZohoBooksClient.git at 0.1.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/emotiveapps/ZohoBooksClient.git
https://github.com/emotiveapps/ZohoBooksClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "oauthenticator",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ChimeHQ/OAuthenticator"
    },
    {
      "identity" : "mimetypeenum",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/emotiveapps/MimeTypeEnum"
    }
  ],
  "manifest_display_name" : "ZohoBooksClient",
  "name" : "ZohoBooksClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "ZohoBooksClient",
      "targets" : [
        "ZohoBooksClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ZohoBooksClientTests",
      "module_type" : "SwiftTarget",
      "name" : "ZohoBooksClientTests",
      "path" : "Tests/ZohoBooksClientTests",
      "sources" : [
        "AdditionalModelTests.swift",
        "FullModelEncodingTests.swift",
        "ModelEncodingTests.swift",
        "ZohoBooksClientTests.swift",
        "ZohoErrorTests.swift",
        "ZohoOAuthConfigTests.swift"
      ],
      "target_dependencies" : [
        "ZohoBooksClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ZohoBooksClient",
      "module_type" : "SwiftTarget",
      "name" : "ZohoBooksClient",
      "path" : "Sources/ZohoBooksClient",
      "product_dependencies" : [
        "OAuthenticator",
        "MimeTypeEnum"
      ],
      "product_memberships" : [
        "ZohoBooksClient"
      ],
      "sources" : [
        "HttpService.swift",
        "Models/ZBAccount.swift",
        "Models/ZBContact.swift",
        "Models/ZBExpense.swift",
        "Models/ZBInvoice.swift",
        "Models/ZBItem.swift",
        "Models/ZBPayment.swift",
        "Models/ZBTax.swift",
        "OAuthProviding.swift",
        "ZohoBooksClient.swift",
        "ZohoConfig.swift",
        "ZohoError.swift",
        "ZohoOAuth.swift",
        "ZohoOAuthenticator.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/emotiveapps/MimeTypeEnum
Fetching https://github.com/ChimeHQ/OAuthenticator
[1/1099] Fetching oauthenticator
[1024/1145] Fetching oauthenticator, mimetypeenum
Fetched https://github.com/emotiveapps/MimeTypeEnum from cache (0.20s)
Fetched https://github.com/ChimeHQ/OAuthenticator from cache (0.21s)
Computing version for https://github.com/emotiveapps/MimeTypeEnum
Computed https://github.com/emotiveapps/MimeTypeEnum at 1.0.2 (0.80s)
Computing version for https://github.com/ChimeHQ/OAuthenticator
Computed https://github.com/ChimeHQ/OAuthenticator at 0.7.2 (0.54s)
Creating working copy for https://github.com/ChimeHQ/OAuthenticator
Working copy of https://github.com/ChimeHQ/OAuthenticator resolved at 0.7.2
Creating working copy for https://github.com/emotiveapps/MimeTypeEnum
Working copy of https://github.com/emotiveapps/MimeTypeEnum resolved at 1.0.2
Building for debugging...
[0/5] Write sources
[0/5] Copying PrivacyInfo.xcprivacy
[0/5] Write sources
[4/5] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/23] Emitting module OAuthenticator
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
[7/25] Compiling OAuthenticator WellknownEndpoints.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[8/25] Compiling OAuthenticator resource_bundle_accessor.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[9/25] Compiling OAuthenticator Mastodon.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[10/25] Compiling OAuthenticator URL+QueryParams.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[11/25] Compiling OAuthenticator URLSession+ResponseProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[12/25] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[13/25] Compiling OAuthenticator GitHub.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[14/25] Compiling OAuthenticator GoogleAPI.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[15/25] Compiling OAuthenticator DPoPKey.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[16/25] Compiling OAuthenticator DPoPSigner.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[17/25] Compiling OAuthenticator Data+Base64URLEncode.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[18/25] Compiling OAuthenticator Models.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[19/25] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[20/25] Compiling OAuthenticator Authenticator.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[21/25] Compiling OAuthenticator CredentialWindowProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[22/25] Compiling OAuthenticator PKCE.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[23/25] Compiling OAuthenticator Bluesky.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[24/25] Compiling MimeTypeEnum MimeType.swift
[25/25] Emitting module MimeTypeEnum
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:bb5ef85e2f3936cf1d2ae6dee7e011cebd8377061043dcf9368e6726baaf85d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/19] Compiling OAuthenticator URLSession+ResponseProvider.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[3/19] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
[4/21] Compiling OAuthenticator GitHub.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[5/21] Compiling OAuthenticator GoogleAPI.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | 		}
127 |
128 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
129 |
130 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | 		}
160 |
161 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
162 | 		request.httpMethod = "POST"
163 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | 		}
210 |
211 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
212 | 		request.httpMethod = "POST"
213 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
[6/21] Compiling OAuthenticator DPoPKey.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[7/21] Compiling OAuthenticator DPoPSigner.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
    |                                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
 78 | 			throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
    |                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | 		nonce = newValue
[8/21] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[9/21] Compiling OAuthenticator Authenticator.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
[10/21] Compiling OAuthenticator CredentialWindowProvider.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | 			parRequestURI: parRequestURI,
313 | 			stateToken: stateToken,
314 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
    |                                                                    `- error: 'nil' requires a contextual type
315 | 		)
316 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | 			credentials: config.appCredentials,
326 | 			redirectURL: callbackURL,
327 | 			responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
    |                                                                    `- error: 'nil' requires a contextual type
328 | 			stateToken: stateToken,
329 | 			pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | 		do {
353 | 			let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
    |                                                                                                                      `- error: 'nil' requires a contextual type
354 |
355 | 			try await storeLogin(login)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | 		let clientId = config.appCredentials.clientId
374 |
375 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
376 | 		request.httpMethod = "POST"
377 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | 		request.httpBody = Data(body.utf8)
396 |
397 | 		let (parData, _) = try await dpopResponse(for: request, login: nil)
    |                                                                  `- error: 'nil' requires a contextual type
398 |
399 | 		return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/21] Emitting module OAuthenticator
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
143 | 		let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | 	/// Add authentication for `request`, execute it, and return its result.
142 | 	public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | 		let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | 	}
182 |
183 | 	private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
    |                                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | 		var authedRequest = request
185 | 		let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                         `- error: cannot find type 'URLRequest' in scope
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | 	}
417 |
418 | 	private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
    |                                                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | 		guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | 			return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | 		self.config = config
128 |
129 | 		self.urlLoader = loader ?? URLSession.defaultProvider
    |                                         `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | 	}
131 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 | 	case requestInvalid(URLRequest)
 52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
 51 | 	case requestInvalid(URLRequest)
    |                      `- error: cannot find type 'URLRequest' in scope
 52 | }
 53 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:50:7: error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 48 |
 49 | public enum DPoPError: Error {
 50 | 	case nonceExpected(URLResponse)
    |       `- error: associated value 'nonceExpected' of 'Sendable'-conforming enum 'DPoPError' has non-sendable type 'URLResponse' (aka 'AnyObject')
 51 | 	case requestInvalid(URLRequest)
 52 | }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 | 	}
 69 |
 70 | 	public typealias NonceDecoder = (Data, URLResponse) throws -> String
    |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 | 	public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
 72 | 	private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 | 	public var nonce: String?
 74 |
 75 | 	public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 | 		guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
 77 | 			print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
 89 | extension DPoPSigner {
 90 | 	public func authenticateRequest(
 91 | 		_ request: inout URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 92 | 		isolation: isolated (any Actor),
 93 | 		using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | 	@discardableResult
124 | 	public func setNonce(from response: URLResponse) -> Bool {
    |                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | 		let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | 	public func response(
133 | 		isolation: isolated (any Actor),
134 | 		for request: URLRequest,
    |                `- error: cannot find type 'URLRequest' in scope
135 | 		using jwtGenerator: JWTGenerator,
136 | 		token: String?,
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | 		issuingServer: String?,
139 | 		provider: URLResponseProvider
140 | 	) async throws -> (Data, URLResponse) {
    |                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | 		var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | 	}
108 |
109 | 	static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                             `- error: cannot find type 'URLRequest' in scope
110 | 		let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | 	///
121 | 	/// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | 	static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                        `- error: cannot find type 'URLRequest' in scope
123 | 		let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | 	///   - appCredentials: The Application credentials
191 | 	/// - Returns: The URLRequest to refresh the access token
192 | 	static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                   `- error: cannot find type 'URLRequest' in scope
193 | 		guard let refreshToken = login.refreshToken,
194 | 			  !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
 8 | }
 9 |
10 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | 	/// Convert a `URLSession` instance into a `URLResponseProvider`.
12 | 	public var responseProvider: URLResponseProvider {
[12/21] Compiling OAuthenticator Data+Base64URLEncode.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[13/21] Compiling OAuthenticator Models.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:139:22: error: @escaping attribute only applies to function types
137 | 			credentials: AppCredentials,
138 | 			redirectURL: URL,
139 | 			responseProvider: @escaping URLResponseProvider,
    |                      `- error: @escaping attribute only applies to function types
140 | 			stateToken: String,
141 | 			pcke: PKCEVerifier?
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | 	public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | 	public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | 	public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
    |                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | 	public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | 	@Sendable
193 | 	public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | 		return .valid
195 | 	}
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | 		guard let response = result.1 as? HTTPURLResponse else {
200 | 			throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | 	@Sendable
198 | 	public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | 		guard let response = result.1 as? HTTPURLResponse else {
    |                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | 			throw AuthenticatorError.httpResponseExpected
201 | 		}
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | 		}
202 |
203 | 		if response.statusCode == 401 {
    |               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | 			return .refresh
205 | 		}
[14/21] Compiling OAuthenticator PKCE.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[15/21] Compiling OAuthenticator Bluesky.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | 			)
156 |
157 | 			var request = URLRequest(url: tokenURL)
    |                  `- error: cannot find 'URLRequest' in scope
158 |
159 | 			request.httpMethod = "POST"
[16/21] Compiling OAuthenticator Mastodon.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[17/21] Compiling OAuthenticator URL+QueryParams.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | 	}
110 |
111 | 	static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
    |                                                                                                                              `- error: cannot find type 'URLRequest' in scope
112 | 		let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | 		}
131 |
132 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
133 |
134 | 		request.httpMethod = "POST"
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | 		}
173 |
174 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
175 |
176 | 		request.httpMethod = "POST"
[18/21] Compiling MimeTypeEnum MimeType.swift
[19/21] Emitting module MimeTypeEnum
[20/22] Compiling OAuthenticator WellknownEndpoints.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[21/22] Compiling OAuthenticator resource_bundle_accessor.swift
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
  8 | /// This is used to abstract the actual networking system from the underlying authentication
  9 | /// mechanism.
 10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
    |                                                   `- error: cannot find type 'URLRequest' in scope
 11 |
 12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
 55 | 		}
 56 |
 57 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 58 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 59 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
 85 | 		}
 86 |
 87 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
 88 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
 89 |
/host/spi-builder-workspace/.build/checkouts/OAuthenticator/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | 		}
156 |
157 | 		var request = URLRequest(url: url)
    |                 `- error: cannot find 'URLRequest' in scope
158 | 		request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
BUILD FAILURE 6.1 wasm