The Swift Package Index logo.Swift Package Index

Build Information

Failed to build JellyfinAPI, reference main (e69dd0), with Swift 6.3 for Linux on 30 Oct 2026 20:05:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:linux-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[887/1011] Compiling JellyfinAPI AddMediaPathAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let sessionDelegate: URLSessionDelegate?
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: error: cannot find type 'URLSessionDelegate' in scope
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
 26 |     private let sessionDelegate: URLSessionDelegate?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
 28 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: error: cannot find type 'URLSessionDelegate' in scope
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
 37 |         sessionDelegate: URLSessionDelegate? = nil
    |                          `- error: cannot find type 'URLSessionDelegate' in scope
 38 |     ) {
 39 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: value of type '_' expected to be instance of class or class-constrained type
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     // MARK: - Configuration
 71 |
 72 |     func makeURLSession() -> URLSession {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         URLSession(
 74 |             configuration: sessionConfiguration,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: error: cannot find type 'URLSessionDataDelegate' in scope
155 |     public func data(
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
159 |     ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: error: cannot find type 'URLRequest' in scope
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
159 |     ) async throws -> Response<Data> {
160 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
164 |     public func download(
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
168 |     ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: error: cannot find type 'URLRequest' in scope
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
173 |     public func download(
174 |         resumeFrom resumeData: Data,
175 |         delegate: URLSessionDownloadDelegate? = nil
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 38 |     ) {
 39 |         self.configuration = configuration
 40 |         self.sessionConfiguration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                          `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 41 |         self.sessionDelegate = sessionDelegate
 42 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
 47 |         self._apiClient = APIClient(baseURL: configuration.url) { configuration in
 48 |             configuration.delegate = passthroughDelegate
 49 |             configuration.sessionConfiguration = sessionConfiguration
    |                                                  |- error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
    |                                                  `- note: did you mean to use 'as!' to force downcast?
 50 |             configuration.sessionDelegate = sessionDelegate
 51 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |
 72 |     func makeURLSession() -> URLSession {
 73 |         URLSession(
    |         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:76:28: error: 'nil' requires a contextual type
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
 76 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 77 |         )
 78 |     }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: error: value of type 'APIClient' has no member 'download'
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
170 |         return try await _apiClient.download(for: request, delegate: delegate, configure: configure)
    |                                     `- error: value of type 'APIClient' has no member 'download'
171 |     }
172 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: error: value of type 'APIClient' has no member 'download'
175 |         delegate: URLSessionDownloadDelegate? = nil
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
    |                              `- error: value of type 'APIClient' has no member 'download'
178 |     }
179 | }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: warning: no 'async' operations occur within 'await' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: warning: no calls to throwing functions occur within 'try' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: warning: no 'async' operations occur within 'await' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: warning: no calls to throwing functions occur within 'try' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:145:28: error: optional 'any' type must be written '(any Error)?'
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
145 |             var lastError: any Error?
    |                            `- error: optional 'any' type must be written '(any Error)?'
146 |         }
147 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: error: cannot find type 'URLSessionWebSocketTask' in scope
557 |
558 |     func listen(
559 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
560 |         url: URL,
561 |         wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: error: cannot find type 'URLSessionWebSocketTask' in scope
653 |     }
654 |
655 |     static func extractData(from message: URLSessionWebSocketTask.Message) -> Data? {
    |                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
656 |         switch message {
657 |         case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:206:38: error: missing argument for parameter 'lastError' in call
140 |
141 |         /// Cycle bookkeeping, owned by the run loop so nothing else can reach it.
142 |         struct RunState {
    |                `- note: 'init(failedConnections:unhealthyCycles:lastError:)' declared here
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
    :
204 |                 defer { continuation.finish() }
205 |
206 |                 var state = RunState()
    |                                      `- error: missing argument for parameter 'lastError' in call
207 |
208 |                 // Scoped so an abandoned session can deinit between cycles.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
500 |
501 |         // Runs after the close below so the frame flushes instead of being cut off.
502 |         defer { urlSession.finishTasksAndInvalidate() }
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
503 |
504 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: error: cannot find 'URLRequest' in scope
502 |         defer { urlSession.finishTasksAndInvalidate() }
503 |
504 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[888/1011] Compiling JellyfinAPI AddToCollectionAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let sessionDelegate: URLSessionDelegate?
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: error: cannot find type 'URLSessionDelegate' in scope
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
 26 |     private let sessionDelegate: URLSessionDelegate?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
 28 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: error: cannot find type 'URLSessionDelegate' in scope
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
 37 |         sessionDelegate: URLSessionDelegate? = nil
    |                          `- error: cannot find type 'URLSessionDelegate' in scope
 38 |     ) {
 39 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: value of type '_' expected to be instance of class or class-constrained type
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     // MARK: - Configuration
 71 |
 72 |     func makeURLSession() -> URLSession {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         URLSession(
 74 |             configuration: sessionConfiguration,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: error: cannot find type 'URLSessionDataDelegate' in scope
155 |     public func data(
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
159 |     ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: error: cannot find type 'URLRequest' in scope
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
159 |     ) async throws -> Response<Data> {
160 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
164 |     public func download(
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
168 |     ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: error: cannot find type 'URLRequest' in scope
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
173 |     public func download(
174 |         resumeFrom resumeData: Data,
175 |         delegate: URLSessionDownloadDelegate? = nil
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 38 |     ) {
 39 |         self.configuration = configuration
 40 |         self.sessionConfiguration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                          `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 41 |         self.sessionDelegate = sessionDelegate
 42 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
 47 |         self._apiClient = APIClient(baseURL: configuration.url) { configuration in
 48 |             configuration.delegate = passthroughDelegate
 49 |             configuration.sessionConfiguration = sessionConfiguration
    |                                                  |- error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
    |                                                  `- note: did you mean to use 'as!' to force downcast?
 50 |             configuration.sessionDelegate = sessionDelegate
 51 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |
 72 |     func makeURLSession() -> URLSession {
 73 |         URLSession(
    |         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:76:28: error: 'nil' requires a contextual type
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
 76 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 77 |         )
 78 |     }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: error: value of type 'APIClient' has no member 'download'
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
170 |         return try await _apiClient.download(for: request, delegate: delegate, configure: configure)
    |                                     `- error: value of type 'APIClient' has no member 'download'
171 |     }
172 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: error: value of type 'APIClient' has no member 'download'
175 |         delegate: URLSessionDownloadDelegate? = nil
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
    |                              `- error: value of type 'APIClient' has no member 'download'
178 |     }
179 | }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: warning: no 'async' operations occur within 'await' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: warning: no calls to throwing functions occur within 'try' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: warning: no 'async' operations occur within 'await' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: warning: no calls to throwing functions occur within 'try' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:145:28: error: optional 'any' type must be written '(any Error)?'
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
145 |             var lastError: any Error?
    |                            `- error: optional 'any' type must be written '(any Error)?'
146 |         }
147 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: error: cannot find type 'URLSessionWebSocketTask' in scope
557 |
558 |     func listen(
559 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
560 |         url: URL,
561 |         wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: error: cannot find type 'URLSessionWebSocketTask' in scope
653 |     }
654 |
655 |     static func extractData(from message: URLSessionWebSocketTask.Message) -> Data? {
    |                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
656 |         switch message {
657 |         case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:206:38: error: missing argument for parameter 'lastError' in call
140 |
141 |         /// Cycle bookkeeping, owned by the run loop so nothing else can reach it.
142 |         struct RunState {
    |                `- note: 'init(failedConnections:unhealthyCycles:lastError:)' declared here
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
    :
204 |                 defer { continuation.finish() }
205 |
206 |                 var state = RunState()
    |                                      `- error: missing argument for parameter 'lastError' in call
207 |
208 |                 // Scoped so an abandoned session can deinit between cycles.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
500 |
501 |         // Runs after the close below so the frame flushes instead of being cut off.
502 |         defer { urlSession.finishTasksAndInvalidate() }
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
503 |
504 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: error: cannot find 'URLRequest' in scope
502 |         defer { urlSession.finishTasksAndInvalidate() }
503 |
504 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[889/1011] Compiling JellyfinAPI AddTunerHostAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let sessionDelegate: URLSessionDelegate?
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: error: cannot find type 'URLSessionDelegate' in scope
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
 26 |     private let sessionDelegate: URLSessionDelegate?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
 28 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: error: cannot find type 'URLSessionDelegate' in scope
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
 37 |         sessionDelegate: URLSessionDelegate? = nil
    |                          `- error: cannot find type 'URLSessionDelegate' in scope
 38 |     ) {
 39 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: value of type '_' expected to be instance of class or class-constrained type
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     // MARK: - Configuration
 71 |
 72 |     func makeURLSession() -> URLSession {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         URLSession(
 74 |             configuration: sessionConfiguration,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: error: cannot find type 'URLSessionDataDelegate' in scope
155 |     public func data(
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
159 |     ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: error: cannot find type 'URLRequest' in scope
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
159 |     ) async throws -> Response<Data> {
160 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
164 |     public func download(
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
168 |     ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: error: cannot find type 'URLRequest' in scope
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
173 |     public func download(
174 |         resumeFrom resumeData: Data,
175 |         delegate: URLSessionDownloadDelegate? = nil
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 38 |     ) {
 39 |         self.configuration = configuration
 40 |         self.sessionConfiguration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                          `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 41 |         self.sessionDelegate = sessionDelegate
 42 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
 47 |         self._apiClient = APIClient(baseURL: configuration.url) { configuration in
 48 |             configuration.delegate = passthroughDelegate
 49 |             configuration.sessionConfiguration = sessionConfiguration
    |                                                  |- error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
    |                                                  `- note: did you mean to use 'as!' to force downcast?
 50 |             configuration.sessionDelegate = sessionDelegate
 51 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |
 72 |     func makeURLSession() -> URLSession {
 73 |         URLSession(
    |         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:76:28: error: 'nil' requires a contextual type
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
 76 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 77 |         )
 78 |     }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: error: value of type 'APIClient' has no member 'download'
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
170 |         return try await _apiClient.download(for: request, delegate: delegate, configure: configure)
    |                                     `- error: value of type 'APIClient' has no member 'download'
171 |     }
172 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: error: value of type 'APIClient' has no member 'download'
175 |         delegate: URLSessionDownloadDelegate? = nil
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
    |                              `- error: value of type 'APIClient' has no member 'download'
178 |     }
179 | }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: warning: no 'async' operations occur within 'await' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: warning: no calls to throwing functions occur within 'try' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: warning: no 'async' operations occur within 'await' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: warning: no calls to throwing functions occur within 'try' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:145:28: error: optional 'any' type must be written '(any Error)?'
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
145 |             var lastError: any Error?
    |                            `- error: optional 'any' type must be written '(any Error)?'
146 |         }
147 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: error: cannot find type 'URLSessionWebSocketTask' in scope
557 |
558 |     func listen(
559 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
560 |         url: URL,
561 |         wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: error: cannot find type 'URLSessionWebSocketTask' in scope
653 |     }
654 |
655 |     static func extractData(from message: URLSessionWebSocketTask.Message) -> Data? {
    |                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
656 |         switch message {
657 |         case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:206:38: error: missing argument for parameter 'lastError' in call
140 |
141 |         /// Cycle bookkeeping, owned by the run loop so nothing else can reach it.
142 |         struct RunState {
    |                `- note: 'init(failedConnections:unhealthyCycles:lastError:)' declared here
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
    :
204 |                 defer { continuation.finish() }
205 |
206 |                 var state = RunState()
    |                                      `- error: missing argument for parameter 'lastError' in call
207 |
208 |                 // Scoped so an abandoned session can deinit between cycles.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
500 |
501 |         // Runs after the close below so the frame flushes instead of being cut off.
502 |         defer { urlSession.finishTasksAndInvalidate() }
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
503 |
504 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: error: cannot find 'URLRequest' in scope
502 |         defer { urlSession.finishTasksAndInvalidate() }
503 |
504 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[890/1011] Compiling JellyfinAPI AddUserToSessionAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let sessionDelegate: URLSessionDelegate?
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: error: cannot find type 'URLSessionDelegate' in scope
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
 26 |     private let sessionDelegate: URLSessionDelegate?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
 28 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: error: cannot find type 'URLSessionDelegate' in scope
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
 37 |         sessionDelegate: URLSessionDelegate? = nil
    |                          `- error: cannot find type 'URLSessionDelegate' in scope
 38 |     ) {
 39 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: value of type '_' expected to be instance of class or class-constrained type
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     // MARK: - Configuration
 71 |
 72 |     func makeURLSession() -> URLSession {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         URLSession(
 74 |             configuration: sessionConfiguration,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: error: cannot find type 'URLSessionDataDelegate' in scope
155 |     public func data(
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
159 |     ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: error: cannot find type 'URLRequest' in scope
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
159 |     ) async throws -> Response<Data> {
160 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
164 |     public func download(
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
168 |     ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: error: cannot find type 'URLRequest' in scope
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
173 |     public func download(
174 |         resumeFrom resumeData: Data,
175 |         delegate: URLSessionDownloadDelegate? = nil
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 38 |     ) {
 39 |         self.configuration = configuration
 40 |         self.sessionConfiguration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                          `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 41 |         self.sessionDelegate = sessionDelegate
 42 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
 47 |         self._apiClient = APIClient(baseURL: configuration.url) { configuration in
 48 |             configuration.delegate = passthroughDelegate
 49 |             configuration.sessionConfiguration = sessionConfiguration
    |                                                  |- error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
    |                                                  `- note: did you mean to use 'as!' to force downcast?
 50 |             configuration.sessionDelegate = sessionDelegate
 51 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |
 72 |     func makeURLSession() -> URLSession {
 73 |         URLSession(
    |         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:76:28: error: 'nil' requires a contextual type
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
 76 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 77 |         )
 78 |     }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: error: value of type 'APIClient' has no member 'download'
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
170 |         return try await _apiClient.download(for: request, delegate: delegate, configure: configure)
    |                                     `- error: value of type 'APIClient' has no member 'download'
171 |     }
172 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: error: value of type 'APIClient' has no member 'download'
175 |         delegate: URLSessionDownloadDelegate? = nil
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
    |                              `- error: value of type 'APIClient' has no member 'download'
178 |     }
179 | }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: warning: no 'async' operations occur within 'await' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: warning: no calls to throwing functions occur within 'try' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: warning: no 'async' operations occur within 'await' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: warning: no calls to throwing functions occur within 'try' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:145:28: error: optional 'any' type must be written '(any Error)?'
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
145 |             var lastError: any Error?
    |                            `- error: optional 'any' type must be written '(any Error)?'
146 |         }
147 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: error: cannot find type 'URLSessionWebSocketTask' in scope
557 |
558 |     func listen(
559 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
560 |         url: URL,
561 |         wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: error: cannot find type 'URLSessionWebSocketTask' in scope
653 |     }
654 |
655 |     static func extractData(from message: URLSessionWebSocketTask.Message) -> Data? {
    |                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
656 |         switch message {
657 |         case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:206:38: error: missing argument for parameter 'lastError' in call
140 |
141 |         /// Cycle bookkeeping, owned by the run loop so nothing else can reach it.
142 |         struct RunState {
    |                `- note: 'init(failedConnections:unhealthyCycles:lastError:)' declared here
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
    :
204 |                 defer { continuation.finish() }
205 |
206 |                 var state = RunState()
    |                                      `- error: missing argument for parameter 'lastError' in call
207 |
208 |                 // Scoped so an abandoned session can deinit between cycles.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
500 |
501 |         // Runs after the close below so the frame flushes instead of being cut off.
502 |         defer { urlSession.finishTasksAndInvalidate() }
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
503 |
504 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: error: cannot find 'URLRequest' in scope
502 |         defer { urlSession.finishTasksAndInvalidate() }
503 |
504 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[891/1011] Compiling JellyfinAPI AddVirtualFolderAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let sessionDelegate: URLSessionDelegate?
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: error: cannot find type 'URLSessionDelegate' in scope
 24 |     private var _apiClient: APIClient!
 25 |     private let sessionConfiguration: URLSessionConfiguration
 26 |     private let sessionDelegate: URLSessionDelegate?
    |                                  `- error: cannot find type 'URLSessionDelegate' in scope
 27 |     private var passthroughDelegate: PassthroughAPIClientDelegate
 28 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: error: cannot find type 'URLSessionDelegate' in scope
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
 37 |         sessionDelegate: URLSessionDelegate? = nil
    |                          `- error: cannot find type 'URLSessionDelegate' in scope
 38 |     ) {
 39 |         self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: error: value of type '_' expected to be instance of class or class-constrained type
 34 |         configuration: Configuration,
 35 |         delegate: APIClientDelegate? = nil,
 36 |         sessionConfiguration: URLSessionConfiguration = .default,
    |                                                          `- error: value of type '_' expected to be instance of class or class-constrained type
 37 |         sessionDelegate: URLSessionDelegate? = nil
 38 |     ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |     // MARK: - Configuration
 71 |
 72 |     func makeURLSession() -> URLSession {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 73 |         URLSession(
 74 |             configuration: sessionConfiguration,
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: error: cannot find type 'URLSessionDataDelegate' in scope
155 |     public func data(
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
159 |     ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: error: cannot find type 'URLRequest' in scope
156 |         for request: Request<some Any>,
157 |         delegate: URLSessionDataDelegate? = nil,
158 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
159 |     ) async throws -> Response<Data> {
160 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
164 |     public func download(
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
168 |     ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: error: cannot find type 'URLRequest' in scope
165 |         for request: Request<some Any>,
166 |         delegate: URLSessionDownloadDelegate? = nil,
167 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: error: cannot find type 'URLSessionDownloadDelegate' in scope
173 |     public func download(
174 |         resumeFrom resumeData: Data,
175 |         delegate: URLSessionDownloadDelegate? = nil
    |                   `- error: cannot find type 'URLSessionDownloadDelegate' in scope
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 38 |     ) {
 39 |         self.configuration = configuration
 40 |         self.sessionConfiguration = sessionConfiguration.copy() as! URLSessionConfiguration
    |                                                          `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 41 |         self.sessionDelegate = sessionDelegate
 42 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
 47 |         self._apiClient = APIClient(baseURL: configuration.url) { configuration in
 48 |             configuration.delegate = passthroughDelegate
 49 |             configuration.sessionConfiguration = sessionConfiguration
    |                                                  |- error: 'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'
    |                                                  `- note: did you mean to use 'as!' to force downcast?
 50 |             configuration.sessionDelegate = sessionDelegate
 51 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |
 72 |     func makeURLSession() -> URLSession {
 73 |         URLSession(
    |         `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:76:28: error: 'nil' requires a contextual type
 74 |             configuration: sessionConfiguration,
 75 |             delegate: sessionDelegate,
 76 |             delegateQueue: nil
    |                            `- error: 'nil' requires a contextual type
 77 |         )
 78 |     }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: error: value of type 'APIClient' has no member 'download'
168 |     ) async throws -> Response<URL> {
169 |         nonisolated(unsafe) let configure = configure
170 |         return try await _apiClient.download(for: request, delegate: delegate, configure: configure)
    |                                     `- error: value of type 'APIClient' has no member 'download'
171 |     }
172 |
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: error: value of type 'APIClient' has no member 'download'
175 |         delegate: URLSessionDownloadDelegate? = nil
176 |     ) async throws -> Response<URL> {
177 |         try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
    |                              `- error: value of type 'APIClient' has no member 'download'
178 |     }
179 | }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: warning: no 'async' operations occur within 'await' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: warning: no calls to throwing functions occur within 'try' expression
219 |     func signIn(username: String, password: String) async throws -> AuthenticationResult {
220 |         let request = Paths.authenticateUserByName(.init(pw: password, username: username))
221 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
222 |
223 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: warning: no 'async' operations occur within 'await' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                            `- warning: no 'async' operations occur within 'await' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: warning: no calls to throwing functions occur within 'try' expression
242 |     func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
243 |         let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
244 |         let response = try await send(request).value
    |                        `- warning: no calls to throwing functions occur within 'try' expression
245 |
246 |         if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:145:28: error: optional 'any' type must be written '(any Error)?'
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
145 |             var lastError: any Error?
    |                            `- error: optional 'any' type must be written '(any Error)?'
146 |         }
147 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: error: cannot find type 'URLSessionWebSocketTask' in scope
557 |
558 |     func listen(
559 |         webSocketTask: URLSessionWebSocketTask,
    |                        `- error: cannot find type 'URLSessionWebSocketTask' in scope
560 |         url: URL,
561 |         wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: error: cannot find type 'URLSessionWebSocketTask' in scope
653 |     }
654 |
655 |     static func extractData(from message: URLSessionWebSocketTask.Message) -> Data? {
    |                                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
656 |         switch message {
657 |         case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:206:38: error: missing argument for parameter 'lastError' in call
140 |
141 |         /// Cycle bookkeeping, owned by the run loop so nothing else can reach it.
142 |         struct RunState {
    |                `- note: 'init(failedConnections:unhealthyCycles:lastError:)' declared here
143 |             var failedConnections = 0
144 |             var unhealthyCycles = 0
    :
204 |                 defer { continuation.finish() }
205 |
206 |                 var state = RunState()
    |                                      `- error: missing argument for parameter 'lastError' in call
207 |
208 |                 // Scoped so an abandoned session can deinit between cycles.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
500 |
501 |         // Runs after the close below so the frame flushes instead of being cut off.
502 |         defer { urlSession.finishTasksAndInvalidate() }
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
503 |
504 |         var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: error: cannot find 'URLRequest' in scope
502 |         defer { urlSession.finishTasksAndInvalidate() }
503 |
504 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
505 |         request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
506 |
507 |         let webSocketTask = urlSession.webSocketTask(with: request)
    |                                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
508 |         webSocketTask.resume()
509 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:41: error: cannot infer contextual base in reference to member 'goingAway'
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                         `- error: cannot infer contextual base in reference to member 'goingAway'
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:513:60: error: 'nil' requires a contextual type
511 |
512 |         defer {
513 |             webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                            `- error: 'nil' requires a contextual type
514 |
515 |             // The server drops the device from /Sessions once the socket closes.
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:537:47: error: cannot infer contextual base in reference to member 'data'
535 |         do {
536 |             for message in consumeInitialMessages() {
537 |                 try await webSocketTask.send(.data(encoder.encode(message)))
    |                                               `- error: cannot infer contextual base in reference to member 'data'
538 |             }
539 |
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:49: error: cannot infer contextual base in reference to member 'goingAway'
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                 `- error: cannot infer contextual base in reference to member 'goingAway'
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:599:68: error: 'nil' requires a contextual type
597 |                     }
598 |                 } onCancel: {
599 |                     webSocketTask.cancel(with: .goingAway, reason: nil)
    |                                                                    `- error: 'nil' requires a contextual type
600 |                 }
601 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: error: cannot find type 'URLRequest' in scope
17 |         var actualDelegate: APIClientDelegate?
18 |
19 |         func client(_ client: APIClient, willSendRequest request: inout URLRequest) async throws {
   |                                                                         `- error: cannot find type 'URLRequest' in scope
20 |
21 |             // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                     `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
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/PassthroughAPIClientDelegate.swift:29:104: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         }
28 |
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
   |                                                                                                        `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:39:60: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         }
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
   |                                                            `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
41 |         }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:31:36: error: no exact matches in call to instance method 'client'
29 |         func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
30 |             if let actualDelegate {
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
   |                                    `- error: no exact matches in call to instance method 'client'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 31 |     /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
 32 |     /// the `200..<300` range.
 33 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 34 |
 35 |     /// Gets called after a networking failure. Only one retry attempt is allowed.
    :
 87 |     }
 88 |
 89 |     func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
    |          `- note: candidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)
 90 |         guard (200..<300).contains(response.statusCode) else {
 91 |             throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
31 |                 try actualDelegate.client(client, validateResponse: response, data: data, task: task)
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
   |                                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
35 |                 }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
32 |             } else {
33 |                 guard (200 ..< 300).contains(response.statusCode) else {
34 |                     throw APIError.unacceptableStatusCode(response.statusCode)
   |                                                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
35 |                 }
36 |             }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
38 |
39 |         func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
40 |             try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
   |                                                                   |- error: 'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'
   |                                                                   `- note: did you mean to use 'as!' to force downcast?
41 |         }
42 |
[892/1035] Compiling JellyfinAPI SearchRemoteLyricsAPI.swift
[893/1035] Compiling JellyfinAPI SearchRemoteSubtitlesAPI.swift
[894/1035] Compiling JellyfinAPI SendFullGeneralCommandAPI.swift
[895/1035] Compiling JellyfinAPI SendGeneralCommandAPI.swift
[896/1035] Compiling JellyfinAPI SendMessageCommandAPI.swift
[897/1035] Compiling JellyfinAPI SendPlaystateCommandAPI.swift
[898/1035] Compiling JellyfinAPI SendSystemCommandAPI.swift
[899/1035] Compiling JellyfinAPI SetChannelMappingAPI.swift
[900/1035] Compiling JellyfinAPI SetItemImageAPI.swift
[901/1035] Compiling JellyfinAPI SetItemImageByIndexAPI.swift
[902/1035] Compiling JellyfinAPI SetRemoteAccessAPI.swift
[903/1035] Compiling JellyfinAPI SetRepositoriesAPI.swift
[904/1035] Compiling JellyfinAPI ShutdownApplicationAPI.swift
[905/1035] Compiling JellyfinAPI StartRestoreBackupAPI.swift
[906/1035] Compiling JellyfinAPI StartTaskAPI.swift
[907/1035] Compiling JellyfinAPI StopTaskAPI.swift
[908/1035] Compiling JellyfinAPI SyncPlayBufferingAPI.swift
[909/1035] Compiling JellyfinAPI SyncPlayCreateGroupAPI.swift
[910/1035] Compiling JellyfinAPI SyncPlayGetGroupAPI.swift
[911/1035] Compiling JellyfinAPI SyncPlayGetGroupsAPI.swift
[912/1035] Compiling JellyfinAPI SyncPlayJoinGroupAPI.swift
[913/1035] Compiling JellyfinAPI SyncPlayLeaveGroupAPI.swift
[914/1035] Compiling JellyfinAPI SyncPlayMovePlaylistItemAPI.swift
[915/1035] Compiling JellyfinAPI SyncPlayNextItemAPI.swift
[916/1035] Compiling JellyfinAPI SyncPlayPauseAPI.swift
[917/1035] Compiling JellyfinAPI SyncPlayPingAPI.swift
[918/1035] Compiling JellyfinAPI SyncPlayPreviousItemAPI.swift
[919/1035] Compiling JellyfinAPI SyncPlayQueueAPI.swift
[920/1035] Compiling JellyfinAPI SyncPlayReadyAPI.swift
[921/1035] Compiling JellyfinAPI SyncPlayRemoveFromPlaylistAPI.swift
[922/1035] Compiling JellyfinAPI SyncPlaySeekAPI.swift
[923/1035] Compiling JellyfinAPI SyncPlaySetIgnoreWaitAPI.swift
[924/1035] Compiling JellyfinAPI SyncPlaySetNewQueueAPI.swift
[925/1035] Compiling JellyfinAPI SyncPlaySetPlaylistItemAPI.swift
[926/1035] Compiling JellyfinAPI SyncPlaySetRepeatModeAPI.swift
[927/1035] Compiling JellyfinAPI SyncPlaySetShuffleModeAPI.swift
[928/1035] Compiling JellyfinAPI SyncPlayStopAPI.swift
[929/1035] Compiling JellyfinAPI SyncPlayUnpauseAPI.swift
[930/1035] Compiling JellyfinAPI UninstallPluginAPI.swift
[931/1035] Compiling JellyfinAPI UninstallPluginByVersionAPI.swift
[932/1035] Compiling JellyfinAPI UnmarkFavoriteItemAPI.swift
[933/1035] Compiling JellyfinAPI UpdateBrandingConfigurationAPI.swift
[934/1035] Compiling JellyfinAPI UpdateConfigurationAPI.swift
[935/1035] Compiling JellyfinAPI UpdateDeviceOptionsAPI.swift
[936/1035] Compiling JellyfinAPI UpdateDisplayPreferencesAPI.swift
[937/1035] Compiling JellyfinAPI UpdateInitialConfigurationAPI.swift
[938/1035] Compiling JellyfinAPI UpdateItemAPI.swift
[939/1035] Compiling JellyfinAPI UpdateItemContentTypeAPI.swift
[940/1035] Compiling JellyfinAPI UpdateItemImageIndexAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[941/1035] Compiling JellyfinAPI UpdateItemUserDataAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[942/1035] Compiling JellyfinAPI UpdateLibraryOptionsAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[943/1035] Compiling JellyfinAPI UpdateMediaPathAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[944/1035] Compiling JellyfinAPI UpdateNamedConfigurationAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[945/1035] Compiling JellyfinAPI UpdatePlaylistAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[946/1035] Compiling JellyfinAPI UpdatePlaylistUserAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[947/1035] Compiling JellyfinAPI UpdatePluginConfigurationAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[948/1035] Compiling JellyfinAPI UpdateSeriesTimerAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[949/1035] Compiling JellyfinAPI UpdateStartupUserAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[950/1035] Compiling JellyfinAPI UpdateTaskAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[951/1035] Compiling JellyfinAPI UpdateTimerAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[952/1035] Compiling JellyfinAPI UpdateUserAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[953/1035] Compiling JellyfinAPI UpdateUserConfigurationAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[954/1035] Compiling JellyfinAPI UpdateUserItemRatingAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[955/1035] Compiling JellyfinAPI UpdateUserPasswordAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[956/1035] Compiling JellyfinAPI UpdateUserPolicyAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[957/1035] Compiling JellyfinAPI UploadCustomSplashscreenAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[958/1035] Compiling JellyfinAPI UploadLyricsAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[959/1035] Compiling JellyfinAPI UploadSubtitleAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[960/1035] Compiling JellyfinAPI ValidatePathAPI.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[961/1035] Compiling JellyfinAPI QuickConnect.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[962/1035] Compiling JellyfinAPI ServerDiscovery.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[963/1035] Compiling JellyfinAPI SingleContinuation.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:138:19: error: cannot find type 'URLSessionDataDelegate' in scope
136 |     public func send<T: Decodable & Sendable & Decodable>(
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
140 |     ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: error: cannot find type 'URLRequest' in scope
137 |         _ request: Request<T>,
138 |         delegate: URLSessionDataDelegate? = nil,
139 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
140 |     ) async throws -> Response<T> {
141 |         nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: error: cannot find type 'URLSessionDataDelegate' in scope
146 |     public func send(
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
    |                   `- error: cannot find type 'URLSessionDataDelegate' in scope
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
150 |     ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: error: cannot find type 'URLRequest' in scope
147 |         _ request: Request<Void>,
148 |         delegate: URLSessionDataDelegate? = nil,
149 |         configure: ((inout URLRequest) throws -> Void)? = nil
    |                            `- error: cannot find type 'URLRequest' in scope
150 |     ) async throws -> Response<Void> {
151 |         nonisolated(unsafe) let configure = configure
[964/1035] Compiling JellyfinAPI PostCapabilitiesAPI.swift
[965/1035] Compiling JellyfinAPI PostFullCapabilitiesAPI.swift
[966/1035] Compiling JellyfinAPI PostPingSystemAPI.swift
[967/1035] Compiling JellyfinAPI PostUpdatedMediaAPI.swift
[968/1035] Compiling JellyfinAPI PostUpdatedMoviesAPI.swift
[969/1035] Compiling JellyfinAPI PostUpdatedSeriesAPI.swift
[970/1035] Compiling JellyfinAPI PostUserImageAPI.swift
[971/1035] Compiling JellyfinAPI RefreshItemAPI.swift
[972/1035] Compiling JellyfinAPI RefreshLibraryAPI.swift
[973/1035] Compiling JellyfinAPI RemoveFromCollectionAPI.swift
[974/1035] Compiling JellyfinAPI RemoveItemFromPlaylistAPI.swift
[975/1035] Compiling JellyfinAPI RemoveMediaPathAPI.swift
[976/1035] Compiling JellyfinAPI RemoveUserFromPlaylistAPI.swift
[977/1035] Compiling JellyfinAPI RemoveUserFromSessionAPI.swift
[978/1035] Compiling JellyfinAPI RemoveVirtualFolderAPI.swift
[979/1035] Compiling JellyfinAPI RenameVirtualFolderAPI.swift
[980/1035] Compiling JellyfinAPI ReportPlaybackProgressAPI.swift
[981/1035] Compiling JellyfinAPI ReportPlaybackStartAPI.swift
[982/1035] Compiling JellyfinAPI ReportPlaybackStoppedAPI.swift
[983/1035] Compiling JellyfinAPI ReportSessionEndedAPI.swift
[984/1035] Compiling JellyfinAPI ReportViewingAPI.swift
[985/1035] Compiling JellyfinAPI ResetTunerAPI.swift
[986/1035] Compiling JellyfinAPI RestartApplicationAPI.swift
[987/1035] Compiling JellyfinAPI RevokeKeyAPI.swift
[988/1035] Compiling JellyfinAPI HeadMusicGenreImageAPI.swift
[989/1035] Compiling JellyfinAPI HeadMusicGenreImageByIndexAPI.swift
[990/1035] Compiling JellyfinAPI HeadPersonImageAPI.swift
[991/1035] Compiling JellyfinAPI HeadPersonImageByIndexAPI.swift
[992/1035] Compiling JellyfinAPI HeadStudioImageAPI.swift
[993/1035] Compiling JellyfinAPI HeadStudioImageByIndexAPI.swift
[994/1035] Compiling JellyfinAPI HeadUniversalAudioStreamAPI.swift
[995/1035] Compiling JellyfinAPI HeadUserImageAPI.swift
[996/1035] Compiling JellyfinAPI HeadVideoStreamAPI.swift
[997/1035] Compiling JellyfinAPI HeadVideoStreamByContainerAPI.swift
[998/1035] Compiling JellyfinAPI InitiateQuickConnectAPI.swift
[999/1035] Compiling JellyfinAPI InstallPackageAPI.swift
[1000/1035] Compiling JellyfinAPI ListBackupsAPI.swift
[1001/1035] Compiling JellyfinAPI LogFileAPI.swift
[1002/1035] Compiling JellyfinAPI MarkFavoriteItemAPI.swift
[1003/1035] Compiling JellyfinAPI MarkPlayedItemAPI.swift
[1004/1035] Compiling JellyfinAPI MarkUnplayedItemAPI.swift
[1005/1035] Compiling JellyfinAPI MergeVersionsAPI.swift
[1006/1035] Compiling JellyfinAPI MoveItemAPI.swift
[1007/1035] Compiling JellyfinAPI OpenLiveStreamAPI.swift
[1008/1035] Compiling JellyfinAPI PingPlaybackSessionAPI.swift
[1009/1035] Compiling JellyfinAPI PlayAPI.swift
[1010/1035] Compiling JellyfinAPI PostAddedMoviesAPI.swift
[1011/1035] Compiling JellyfinAPI PostAddedSeriesAPI.swift
[1012/1035] Compiling JellyfinAPI GetTrailersAPI.swift
[1013/1035] Compiling JellyfinAPI GetTrickplayHlsPlaylistAPI.swift
[1014/1035] Compiling JellyfinAPI GetTrickplayTileImageAPI.swift
[1015/1035] Compiling JellyfinAPI GetTunerHostTypesAPI.swift
[1016/1035] Compiling JellyfinAPI GetUniversalAudioStreamAPI.swift
[1017/1035] Compiling JellyfinAPI GetUpcomingEpisodesAPI.swift
[1018/1035] Compiling JellyfinAPI GetUserByIDAPI.swift
[1019/1035] Compiling JellyfinAPI GetUserImageAPI.swift
[1020/1035] Compiling JellyfinAPI GetUserViewsAPI.swift
[1021/1035] Compiling JellyfinAPI GetUsersAPI.swift
[1022/1035] Compiling JellyfinAPI GetUtcTimeAPI.swift
[1023/1035] Compiling JellyfinAPI GetVideoStreamAPI.swift
[1024/1035] Compiling JellyfinAPI GetVideoStreamByContainerAPI.swift
[1025/1035] Compiling JellyfinAPI GetVirtualFoldersAPI.swift
[1026/1035] Compiling JellyfinAPI GetYearAPI.swift
[1027/1035] Compiling JellyfinAPI GetYearsAPI.swift
[1028/1035] Compiling JellyfinAPI HeadArtistImageAPI.swift
[1029/1035] Compiling JellyfinAPI HeadAudioStreamAPI.swift
[1030/1035] Compiling JellyfinAPI HeadAudioStreamByContainerAPI.swift
[1031/1035] Compiling JellyfinAPI HeadGenreImageAPI.swift
[1032/1035] Compiling JellyfinAPI HeadGenreImageByIndexAPI.swift
[1033/1035] Compiling JellyfinAPI HeadItemImage2API.swift
[1034/1035] Compiling JellyfinAPI HeadItemImageAPI.swift
[1035/1035] Compiling JellyfinAPI HeadItemImageByIndexAPI.swift
BUILD FAILURE 6.3 linux