Build Information
Failed to build OAuthenticator, reference 0.7.2 (835bc0), with Swift 6.1 for Wasm on 9 Jan 2026 17:26:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ChimeHQ/OAuthenticator.git
Reference: 0.7.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/ChimeHQ/OAuthenticator
* tag 0.7.2 -> FETCH_HEAD
HEAD is now at 835bc01 Merge commit from fork
Cloned https://github.com/ChimeHQ/OAuthenticator.git
Revision (git rev-parse @):
835bc01596dfba77de92acfecf82c6f65105cb2d
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ChimeHQ/OAuthenticator.git at 0.7.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/ChimeHQ/OAuthenticator.git
https://github.com/ChimeHQ/OAuthenticator.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "OAuthenticator",
"name" : "OAuthenticator",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "OAuthenticator",
"targets" : [
"OAuthenticator"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "OAuthenticatorTests",
"module_type" : "SwiftTarget",
"name" : "OAuthenticatorTests",
"path" : "Tests/OAuthenticatorTests",
"sources" : [
"AuthenticatorTests.swift",
"BlueskyTests.swift",
"DPoPSignerTests.swift",
"GitHubTests.swift",
"GoogleTests.swift",
"MastodonTests.swift",
"PKCETests.swift",
"WellKnownTests.swift"
],
"target_dependencies" : [
"OAuthenticator"
],
"type" : "test"
},
{
"c99name" : "OAuthenticator",
"module_type" : "SwiftTarget",
"name" : "OAuthenticator",
"path" : "Sources/OAuthenticator",
"product_memberships" : [
"OAuthenticator"
],
"resources" : [
{
"path" : "/host/spi-builder-workspace/Sources/OAuthenticator/PrivacyInfo.xcprivacy",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"ASWebAuthenticationSession+Utility.swift",
"Authenticator.swift",
"CredentialWindowProvider.swift",
"DPoPKey.swift",
"DPoPSigner.swift",
"Data+Base64URLEncode.swift",
"Models.swift",
"PKCE.swift",
"Services/Bluesky.swift",
"Services/GitHub.swift",
"Services/GoogleAPI.swift",
"Services/Mastodon.swift",
"URL+QueryParams.swift",
"URLSession+ResponseProvider.swift",
"WebAuthenticationSession+Utility.swift",
"WellknownEndpoints.swift"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 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
Building for debugging...
[0/3] Copying PrivacyInfo.xcprivacy
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Emitting module OAuthenticator
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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 {
[5/21] Compiling OAuthenticator WellknownEndpoints.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
55 | }
56 |
57 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
58 | request.setValue("application/json", forHTTPHeaderField: "Accept")
59 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
85 | }
86 |
87 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
88 | request.setValue("application/json", forHTTPHeaderField: "Accept")
89 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | }
156 |
157 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
158 | request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[6/21] Compiling OAuthenticator resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
55 | }
56 |
57 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
58 | request.setValue("application/json", forHTTPHeaderField: "Accept")
59 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
85 | }
86 |
87 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
88 | request.setValue("application/json", forHTTPHeaderField: "Accept")
89 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | }
156 |
157 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
158 | request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[7/21] Compiling OAuthenticator Mastodon.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | }
131 |
132 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
133 |
134 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | }
173 |
174 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
175 |
176 | request.httpMethod = "POST"
[8/21] Compiling OAuthenticator URL+QueryParams.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | }
131 |
132 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
133 |
134 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | }
173 |
174 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
175 |
176 | request.httpMethod = "POST"
[9/21] Compiling OAuthenticator URLSession+ResponseProvider.swift
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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/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.
[10/21] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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/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.
[11/21] Compiling OAuthenticator DPoPKey.swift
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | nonce = newValue
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | nonce = newValue
[12/21] Compiling OAuthenticator DPoPSigner.swift
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | nonce = newValue
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | nonce = newValue
[13/21] Compiling OAuthenticator PKCE.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | )
156 |
157 | var request = URLRequest(url: tokenURL)
| `- error: cannot find 'URLRequest' in scope
158 |
159 | request.httpMethod = "POST"
[14/21] Compiling OAuthenticator Bluesky.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | )
156 |
157 | var request = URLRequest(url: tokenURL)
| `- error: cannot find 'URLRequest' in scope
158 |
159 | request.httpMethod = "POST"
[15/21] Compiling OAuthenticator Data+Base64URLEncode.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | throw AuthenticatorError.httpResponseExpected
201 | }
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | throw AuthenticatorError.httpResponseExpected
201 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | }
202 |
203 | if response.statusCode == 401 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | return .refresh
205 | }
[16/21] Compiling OAuthenticator Models.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | throw AuthenticatorError.httpResponseExpected
201 | }
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | throw AuthenticatorError.httpResponseExpected
201 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | }
202 |
203 | if response.statusCode == 401 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | return .refresh
205 | }
[17/21] Compiling OAuthenticator GitHub.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | }
127 |
128 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
129 |
130 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 | request.httpMethod = "POST"
163 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | }
210 |
211 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
212 | request.httpMethod = "POST"
213 | request.setValue("application/json", forHTTPHeaderField: "Accept")
[18/21] Compiling OAuthenticator GoogleAPI.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | }
127 |
128 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
129 |
130 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 | request.httpMethod = "POST"
163 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | }
210 |
211 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
212 | request.httpMethod = "POST"
213 | request.setValue("application/json", forHTTPHeaderField: "Accept")
[19/21] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
[20/21] Compiling OAuthenticator Authenticator.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
[21/21] Compiling OAuthenticator CredentialWindowProvider.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/17] Compiling OAuthenticator URLSession+ResponseProvider.swift
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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/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/17] Compiling OAuthenticator WebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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/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.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/19] Emitting module OAuthenticator
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/URLSession+ResponseProvider.swift:10:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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 {
[5/19] Compiling OAuthenticator GitHub.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | }
127 |
128 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
129 |
130 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 | request.httpMethod = "POST"
163 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | }
210 |
211 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
212 | request.httpMethod = "POST"
213 | request.setValue("application/json", forHTTPHeaderField: "Accept")
[6/19] Compiling OAuthenticator GoogleAPI.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:109:93: error: cannot find type 'URLRequest' in scope
107 | }
108 |
109 | static func authenticationRequest(with url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
110 | let code = try url.authorizationCode
111 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GitHub.swift:128:17: error: cannot find 'URLRequest' in scope
126 | }
127 |
128 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
129 |
130 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:122:88: error: cannot find type 'URLRequest' in scope
120 | ///
121 | /// The `code` is exchanged for an access / refresh token pair using the granted scope in part 1
122 | static func authenticationRequest(url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
123 | let code = try url.authorizationCode
124 |
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:192:99: error: cannot find type 'URLRequest' in scope
190 | /// - appCredentials: The Application credentials
191 | /// - Returns: The URLRequest to refresh the access token
192 | static func authenticationRefreshRequest(login: Login, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
193 | guard let refreshToken = login.refreshToken,
194 | !refreshToken.value.isEmpty else { throw AuthenticatorError.missingRefreshToken }
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:161:17: error: cannot find 'URLRequest' in scope
159 | }
160 |
161 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
162 | request.httpMethod = "POST"
163 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Services/GoogleAPI.swift:211:17: error: cannot find 'URLRequest' in scope
209 | }
210 |
211 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
212 | request.httpMethod = "POST"
213 | request.setValue("application/json", forHTTPHeaderField: "Accept")
[7/19] Compiling OAuthenticator Mastodon.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | }
131 |
132 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
133 |
134 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | }
173 |
174 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
175 |
176 | request.httpMethod = "POST"
[8/19] Compiling OAuthenticator URL+QueryParams.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:111:126: error: cannot find type 'URLRequest' in scope
109 | }
110 |
111 | static func authenticationRequest(with parameters: UserTokenParameters, url: URL, appCredentials: AppCredentials) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
112 | let code = try url.authorizationCode
113 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:132:17: error: cannot find 'URLRequest' in scope
130 | }
131 |
132 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
133 |
134 | request.httpMethod = "POST"
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Mastodon.swift:174:17: error: cannot find 'URLRequest' in scope
172 | }
173 |
174 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
175 |
176 | request.httpMethod = "POST"
[9/19] Compiling OAuthenticator DPoPKey.swift
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | nonce = newValue
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | nonce = newValue
[10/19] Compiling OAuthenticator DPoPSigner.swift
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:21: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | case requestInvalid(URLRequest)
52 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:51:22: error: cannot find type 'URLRequest' in scope
49 | public enum DPoPError: Error {
50 | case nonceExpected(URLResponse)
51 | case requestInvalid(URLRequest)
| `- error: cannot find type 'URLRequest' in scope
52 | }
53 |
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:50:7: 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/Sources/OAuthenticator/DPoPSigner.swift:70:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
68 | }
69 |
70 | public typealias NonceDecoder = (Data, URLResponse) throws -> String
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
71 | public typealias JWTGenerator = @Sendable (JWTParameters) async throws -> String
72 | private let nonceDecoder: NonceDecoder
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:75:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
73 | public var nonce: String?
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
77 | print("data:", String(decoding: data, as: UTF8.self))
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:91:20: error: cannot find type 'URLRequest' in scope
89 | extension DPoPSigner {
90 | public func authenticateRequest(
91 | _ request: inout URLRequest,
| `- error: cannot find type 'URLRequest' in scope
92 | isolation: isolated (any Actor),
93 | using jwtGenerator: JWTGenerator,
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:124:38: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
126 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:140:27: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | issuingServer: String?,
139 | provider: URLResponseProvider
140 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | var request = request
142 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:31: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:76:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
74 |
75 | public static func nonceHeaderDecoder(data: Data, response: URLResponse) throws -> String {
76 | guard let value = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "DPoP-Nonce") else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
77 | print("data:", String(decoding: data, as: UTF8.self))
78 | throw DPoPError.nonceExpected(response)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:28: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
126 |
127 | nonce = newValue
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:125:50: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
123 | @discardableResult
124 | public func setNonce(from response: URLResponse) -> Bool {
125 | let newValue = (response as? HTTPURLResponse)?.value(forHTTPHeaderField: "dpop-nonce")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
126 |
127 | nonce = newValue
[11/19] Compiling OAuthenticator Data+Base64URLEncode.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | throw AuthenticatorError.httpResponseExpected
201 | }
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | throw AuthenticatorError.httpResponseExpected
201 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | }
202 |
203 | if response.statusCode == 401 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | return .refresh
205 | }
[12/19] Compiling OAuthenticator Models.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Models.swift:163:62: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 | public typealias LoginProvider = @Sendable (LoginProviderParameters) async throws -> Login
162 | public typealias RefreshProvider = @Sendable (Login, AppCredentials, URLResponseProvider) async throws -> Login
163 | public typealias ResponseStatusProvider = @Sendable ((Data, URLResponse)) throws -> ResponseStatus
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
164 |
165 | public let authorizationURLProvider: AuthorizationURLProvider
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:193:54: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
191 |
192 | @Sendable
193 | public static func allResponsesValid(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
194 | return .valid
195 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:198:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
196 |
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
199 | guard let response = result.1 as? HTTPURLResponse else {
200 | throw AuthenticatorError.httpResponseExpected
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:33: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
200 | throw AuthenticatorError.httpResponseExpected
201 | }
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:199:37: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
197 | @Sendable
198 | public static func refreshOrAuthorizeWhenUnauthorized(result: (Data, URLResponse)) throws -> ResponseStatus {
199 | guard let response = result.1 as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
200 | throw AuthenticatorError.httpResponseExpected
201 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:203:15: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 | }
202 |
203 | if response.statusCode == 401 {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 | return .refresh
205 | }
[13/19] Compiling OAuthenticator PKCE.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | )
156 |
157 | var request = URLRequest(url: tokenURL)
| `- error: cannot find 'URLRequest' in scope
158 |
159 | request.httpMethod = "POST"
[14/19] Compiling OAuthenticator Bluesky.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Services/Bluesky.swift:157:18: error: cannot find 'URLRequest' in scope
155 | )
156 |
157 | var request = URLRequest(url: tokenURL)
| `- error: cannot find 'URLRequest' in scope
158 |
159 | request.httpMethod = "POST"
[15/19] Compiling OAuthenticator ASWebAuthenticationSession+Utility.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
[16/19] Compiling OAuthenticator Authenticator.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
[17/19] Compiling OAuthenticator CredentialWindowProvider.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:36: error: cannot find type 'URLRequest' in scope
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
143 | let userAuthenticator = config.userAuthenticator
144 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:142:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
140 |
141 | /// Add authentication for `request`, execute it, and return its result.
142 | public func response(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
143 | let userAuthenticator = config.userAuthenticator
144 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:43: error: cannot find type 'URLRequest' in scope
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
184 | var authedRequest = request
185 | let token = login.accessToken.value
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:183:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 | }
182 |
183 | private func authedResponse(for request: URLRequest, login: Login) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 | var authedRequest = request
185 | let token = login.accessToken.value
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:41: error: cannot find type 'URLRequest' in scope
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:418:91: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
416 | }
417 |
418 | private func dpopResponse(for request: URLRequest, login: Login?) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
419 | guard let generator = config.tokenHandling.dpopJWTGenerator else {
420 | return try await urlLoader(request)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:129:41: error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
127 | self.config = config
128 |
129 | self.urlLoader = loader ?? URLSession.defaultProvider
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'defaultProvider'
130 | }
131 |
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:314:68: error: 'nil' requires a contextual type
312 | parRequestURI: parRequestURI,
313 | stateToken: stateToken,
314 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) }
| `- error: 'nil' requires a contextual type
315 | )
316 |
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:139:22: error: @escaping 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/Sources/OAuthenticator/Authenticator.swift:327:68: error: 'nil' requires a contextual type
325 | credentials: config.appCredentials,
326 | redirectURL: callbackURL,
327 | responseProvider: { try await self.dpopResponse(for: $0, login: nil) },
| `- error: 'nil' requires a contextual type
328 | stateToken: stateToken,
329 | pcke: config.tokenHandling.pkce
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:353:118: error: 'nil' requires a contextual type
351 |
352 | do {
353 | let login = try await refreshProvider(login, config.appCredentials, { try await self.dpopResponse(for: $0, login: nil) })
| `- error: 'nil' requires a contextual type
354 |
355 | try await storeLogin(login)
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:375:17: error: cannot find 'URLRequest' in scope
373 | let clientId = config.appCredentials.clientId
374 |
375 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
376 | request.httpMethod = "POST"
377 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/OAuthenticator/Authenticator.swift:397:66: error: 'nil' requires a contextual type
395 | request.httpBody = Data(body.utf8)
396 |
397 | let (parData, _) = try await dpopResponse(for: request, login: nil)
| `- error: 'nil' requires a contextual type
398 |
399 | return try JSONDecoder().decode(PARResponse.self, from: parData)
/host/spi-builder-workspace/Sources/OAuthenticator/DPoPSigner.swift:134:16: error: cannot find type 'URLRequest' in scope
132 | public func response(
133 | isolation: isolated (any Actor),
134 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
135 | using jwtGenerator: JWTGenerator,
136 | token: String?,
[18/19] Compiling OAuthenticator WellknownEndpoints.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
55 | }
56 |
57 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
58 | request.setValue("application/json", forHTTPHeaderField: "Accept")
59 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
85 | }
86 |
87 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
88 | request.setValue("application/json", forHTTPHeaderField: "Accept")
89 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | }
156 |
157 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
158 | request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
[19/19] Compiling OAuthenticator resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/OAuthenticator/Models.swift:10:51: error: cannot find type 'URLRequest' in scope
8 | /// This is used to abstract the actual networking system from the underlying authentication
9 | /// mechanism.
10 | public typealias URLResponseProvider = @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 |
12 | /// Holds an access token value and its expiry.
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:57:17: error: cannot find 'URLRequest' in scope
55 | }
56 |
57 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
58 | request.setValue("application/json", forHTTPHeaderField: "Accept")
59 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:87:17: error: cannot find 'URLRequest' in scope
85 | }
86 |
87 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
88 | request.setValue("application/json", forHTTPHeaderField: "Accept")
89 |
/host/spi-builder-workspace/Sources/OAuthenticator/WellknownEndpoints.swift:157:17: error: cannot find 'URLRequest' in scope
155 | }
156 |
157 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
158 | request.setValue("application/json", forHTTPHeaderField: "Accept")
159 |
BUILD FAILURE 6.1 wasm