Build Information
Failed to build OktaClient, reference master (e31db3
), with Swift 6.2 (beta) for Android on 27 Jun 2025 05:11:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
Build Log
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[120/141] Compiling AuthFoundation ProvidesOAuth2Parameters.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[121/141] Compiling AuthFoundation KeysRequest.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[122/141] Compiling AuthFoundation OpenIdConfigurationRequest.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[123/141] Compiling AuthFoundation Token+Requests.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[124/141] Compiling AuthFoundation UserInfo+Requests.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[125/141] Compiling AuthFoundation GrantType.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[126/141] Compiling AuthFoundation OAuth2ServerError.swift
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:458:41: error: cannot find type 'URLRequest' in scope
456 |
457 | @_documentation(visibility: private)
458 | public func willSend(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
459 | delegateCollection.invoke { $0.api(client: self, willSend: &request) }
460 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:463:34: error: cannot find type 'URLRequest' in scope
461 |
462 | @_documentation(visibility: private)
463 | public func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {
| `- error: cannot find type 'URLRequest' in scope
464 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: error, requestId: requestId, rateLimit: rateLimit) }
465 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:468:38: error: cannot find type 'URLRequest' in scope
466 |
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
470 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:34: error: cannot find type 'URLRequest' in scope
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:473:65: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
471 |
472 | @_documentation(visibility: private)
473 | public func didSend(request: URLRequest, received response: HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
474 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
475 | }
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/AuthFoundation/OAuth2/OAuth2Client.swift:478:37: error: cannot find type 'URLRequest' in scope
476 |
477 | @_documentation(visibility: private)
478 | public func didSend<T>(request: URLRequest, received response: APIResponse<T>) where T: Decodable {
| `- error: cannot find type 'URLRequest' in scope
479 | delegateCollection.invoke { $0.api(client: self, didSend: request, received: response) }
480 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:55:34: error: cannot find type 'URLRequest' in scope
53 |
54 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
55 | func willSend(request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:58:27: error: cannot find type 'URLRequest' in scope
56 |
57 | /// Invoked when a request fails.
58 | func didSend(request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:61:27: error: cannot find type 'URLRequest' in scope
59 |
60 | /// Invoked when a request receives an HTTP response.
61 | func didSend(request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:64:30: error: cannot find type 'URLRequest' in scope
62 |
63 | /// Invoked when a request returns a successful response.
64 | func didSend<T>(request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:67:40: error: cannot find type 'URLRequest' in scope
65 |
66 | /// Send the given URLRequest.
67 | func send<T: Decodable>(_ request: URLRequest, parsing context: (any APIParsingContext)?) async throws -> APIResponse<T>
| `- error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:70:31: error: cannot find type 'URLRequest' in scope
68 |
69 | /// Provides the ``APIRetry`` configurations from the delegate in response to a retry request.
70 | func shouldRetry(request: URLRequest, rateLimit: APIRateLimit) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
71 | }
72 |
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:58: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:120:85: error: cannot infer contextual base in reference to member 'ephemeral'
118 |
119 | self.configuration = configuration
120 | self.session = session ?? Self.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
121 | self.refreshQueue = DispatchQueue(label: "com.okta.refreshQueue.\(configuration.issuerURL.host ?? "unknown")",
122 | qos: .userInitiated,
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:92:68: error: cannot find type 'URLRequest' in scope
90 |
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
| `- error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:93:61: error: cannot find type 'URLRequest' in scope
91 | extension APIClientDelegate {
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
| `- error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:95:64: error: cannot find type 'URLRequest' in scope
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
| `- error: cannot find type 'URLRequest' in scope
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
97 | return .default
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:94:61: error: cannot find type 'URLRequest' in scope
92 | public func api(client: any APIClient, willSend request: inout URLRequest) {}
93 | public func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?) {}
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
| `- error: cannot find type 'URLRequest' in scope
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:96:65: error: cannot find type 'URLRequest' in scope
94 | public func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse) {}
95 | public func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>) {}
96 | public func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry {
| `- error: cannot find type 'URLRequest' in scope
97 | return .default
98 | }
/host/spi-builder-workspace/Sources/AuthFoundation/OAuth2/OAuth2Client.swift:469:94: error: cannot convert return expression of type 'T?' to return type 'APIRetry'
467 | @_documentation(visibility: private)
468 | public func shouldRetry(request: URLRequest) -> APIRetry {
469 | return delegateCollection.call({ $0.api(client: self, shouldRetry: request) }).first ?? .default
| `- error: cannot convert return expression of type 'T?' to return type 'APIRetry'
470 | }
471 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClientError.swift:25:35: error: cannot find type 'URLRequest' in scope
23 |
24 | /// No response received from the server.
25 | case missingResponse(request: URLRequest? = nil)
| `- error: cannot find type 'URLRequest' in scope
26 |
27 | /// Did not receive an HTTP response.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/KeysRequest.swift:36:22: error: cannot find type 'URLRequest' in scope
34 | [ "client_id": clientId ]
35 | }
36 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
37 | }
38 |
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:42:22: error: cannot find type 'URLRequest' in scope
40 |
41 | /// The HTTP request cache policy to use.
42 | var cachePolicy: URLRequest.CachePolicy { get }
| `- error: cannot find type 'URLRequest' in scope
43 |
44 | /// The HTTP timeout interval.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIRequest.swift:57:55: error: cannot find type 'URLRequest' in scope
55 | /// - Parameter client: The ``APIClient`` the request is being sent through.
56 | /// - Returns: URLRequest instance for this API request.
57 | func request(for client: any APIClient) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
58 |
59 | /// Asynchronously sends the request to the given ``APIClient``.
/host/spi-builder-workspace/Sources/AuthFoundation/Requests/OpenIdConfigurationRequest.swift:27:22: error: cannot find type 'URLRequest' in scope
25 |
26 | var httpMethod: APIRequestMethod { .get }
27 | var cachePolicy: URLRequest.CachePolicy { .returnCacheDataElseLoad }
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
[127/141] Compiling AuthFoundation Token+TestExtensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[128/141] Compiling AuthFoundation UserDefaultsTokenStorage.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[129/141] Compiling AuthFoundation Token+Context.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[130/141] Compiling AuthFoundation Token+Enums.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[131/141] Compiling AuthFoundation Token+Initialization.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[132/141] Compiling AuthFoundation Token+Metadata.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[133/141] Compiling AuthFoundation Token.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[134/141] Compiling AuthFoundation TokenError.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[135/141] Compiling AuthFoundation TokenExchangeCoordinator.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[136/141] Compiling AuthFoundation TokenHashValidator.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[137/141] Compiling AuthFoundation TokenStorage.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[138/141] Compiling AuthFoundation Credential+Extensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[139/141] Compiling AuthFoundation Credential.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[140/141] Compiling AuthFoundation CredentialCoordinator.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
[141/141] Compiling AuthFoundation CredentialDataSource+Extensions.swift
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential+Extensions.swift:75:44: error: cannot find type 'URLRequest' in scope
73 | /// This asynchronous variant ensures that the token has been refreshed, if needed, prior to adding the appropriate headers to the request.
74 | /// - Parameter request: Request to decorate with the appropriate authorization header.
75 | public func authorize(_ request: inout URLRequest) async {
| `- error: cannot find type 'URLRequest' in scope
76 | _ = try? await refreshIfNeeded()
77 | authorize(request: &request)
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/Credential.swift:228:42: error: cannot find type 'URLRequest' in scope
226 | /// Convenience method that decorates the given URLRequest with the appropriate authorization headers to make a request using the credential's current token.
227 | /// - Parameter request: Request to decorate with the appropriate authorization header.
228 | public func authorize(request: inout URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
229 | request.setValue(token.authorizationHeader, forHTTPHeaderField: "Authorization")
230 | }
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:76:61: error: cannot find type 'URLRequest' in scope
74 | public protocol APIClientDelegate: AnyObject, Sendable {
75 | /// Invoked immediately prior to a URLRequest being converted to a DataTask.
76 | func api(client: any APIClient, willSend request: inout URLRequest)
| `- error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:79:54: error: cannot find type 'URLRequest' in scope
77 |
78 | /// Invoked when a request fails.
79 | func api(client: any APIClient, didSend request: URLRequest, received error: APIClientError, requestId: String?, rateLimit: APIRateLimit?)
| `- error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:82:54: error: cannot find type 'URLRequest' in scope
80 |
81 | /// Invoked when a request returns a successful response.
82 | func api(client: any APIClient, didSend request: URLRequest, received response: HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:85:57: error: cannot find type 'URLRequest' in scope
83 |
84 | /// Invoked when a request returns a successful response.
85 | func api<T>(client: any APIClient, didSend request: URLRequest, received response: APIResponse<T>)
| `- error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
/host/spi-builder-workspace/Sources/AuthFoundation/Network/APIClient.swift:88:58: error: cannot find type 'URLRequest' in scope
86 |
87 | /// Provides the APIRetry configurations from the delegate in responds to a retry request.
88 | func api(client: any APIClient, shouldRetry request: URLRequest) -> APIRetry
| `- error: cannot find type 'URLRequest' in scope
89 | }
90 |
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
22 | }
23 | }
/host/spi-builder-workspace/Sources/AuthFoundation/User Management/CredentialDataSource+Extensions.swift:21:67: error: cannot infer contextual base in reference to member 'ephemeral'
19 | extension CredentialDataSource {
20 | public func urlSession(for token: Token) -> any URLSessionProtocol {
21 | OAuth2Client.defaultSession ?? URLSession(configuration: .ephemeral)
| `- error: cannot infer contextual base in reference to member 'ephemeral'
22 | }
23 | }
BUILD FAILURE 6.2 android