Build Information
Failed to build ATProtoKit, reference 0.34.1 (263f09), with Swift 6.1 for Wasm on 24 Aug 2026 00:02:17 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:48:20: error: cannot find type 'URLRequest' in scope
46 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
47 | func execute(
48 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | for request: URLRequest,
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:25:22: error: cannot find type 'URLRequest' in scope
23 | /// - Throws: An error if authorization cannot be prepared.
24 | func authenticatedRequest(
25 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:59:24: error: cannot find type 'URLSessionDelegate' in scope
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
60 | delegateQueue: OperationQueue? = nil,
61 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:60:24: error: cannot find type 'OperationQueue' in scope
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
61 | responseProvider: ATRequestExecutor? = nil,
62 | requestAuthenticator: ATRequestAuthenticator? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:58:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | /// Defaults to `nil`.
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:134:10: error: cannot find type 'URLRequest' in scope
132 | proxyValue: String? = nil,
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
135 | var request = URLRequest(url: requestURL)
136 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:210:54: error: cannot find type 'URLRequest' in scope
208 | /// - decodeTo: The type to decode the response into.
209 | /// - Returns: An instance of the specified `Decodable` type.
210 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
211 | let data = try await self.performRequest(request, withEncodingBody: body)
212 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:234:40: error: cannot find type 'URLRequest' in scope
232 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
233 | /// - Returns: A `Data` object that contains the blob.
234 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
235 | let data = try await self.performRequest(request, withEncodingBody: body)
236 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:246:54: error: cannot find type 'URLRequest' in scope
244 | /// - decodeTo: The type to decode the response into.
245 | /// - Returns: An instance of the specified `Decodable` type.
246 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
247 | var urlRequest = request
248 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:44: error: cannot find type 'URLRequest' in scope
289 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
290 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
291 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
292 | // Wait for ATRecordTypeRegistry to be ready before proceeding
293 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:100:64: error: reference to member 'default' cannot be resolved without a contextual type
98 | /// - ``APIClientConfiguration``
99 | public init(with configuration: APIClientConfiguration) {
100 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:102:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | let config = configuration.urlSessionConfiguration ?? .default
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 | self.executor = configuration.responseProvider
104 | self.requestAuthenticator = configuration.requestAuthenticator
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:135:23: error: cannot find 'URLRequest' in scope
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
135 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
136 | request.httpMethod = httpMethod.rawValue
137 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:257:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | }
256 |
257 | let (responseData, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | if let executor {
259 | (responseData, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:264:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
262 | )
263 | } else {
264 | (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
265 | }
266 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
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/ATProtoKit/Utilities/APIClientService.swift:271:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
271 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:273:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
271 | guard httpResponse.statusCode == 200 else {
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw URLError(.badServerResponse)
275 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:320:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |
319 | do {
320 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | if let executor = self.executor {
322 | (data, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
325 | )
326 | } else {
327 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
328 | }
329 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
335 | switch httpResponse.statusCode {
336 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | switch httpResponse.statusCode {
336 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:335:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
335 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
336 | case 200:
337 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:346:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
344 | throw ATAPIError.badRequest(error: errorResponse)
345 | case 401:
346 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
347 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
348 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:382:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
380 | throw ATAPIError.payloadTooLarge(error: errorResponse)
381 | case 429:
382 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
383 | TimeInterval(retryAfterHeader)
384 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:430:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
428 | default:
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:431:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
433 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The base hostname of the PLC directory.
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:16: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
26 |
27 | /// The base hostname of the PLC directory.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:47:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let documentURL = try didDocumentURL(for: did)
46 |
47 | let (data, response) = try await urlSession.data(from: documentURL)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | guard let httpResponse = response as? HTTPURLResponse,
49 | (200..<300).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:50:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ request: URLRequest,
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:60:36: error: cannot find type 'URLRequest' in scope
58 |
59 | /// The closure that executes a complete request.
60 | public let handler: @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 |
62 | /// Creates a closure-backed request executor.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:66:39: error: cannot find type 'URLRequest' in scope
64 | /// - Parameter handler: The closure that executes a complete request.
65 | public init(
66 | handler: @escaping @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
67 | ) {
68 | self.handler = handler
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:80:20: error: cannot find type 'URLRequest' in scope
78 | /// - Throws: An error from the underlying request closure.
79 | public func execute(
80 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | _ request: URLRequest,
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | return try await handler(request, authorizationRequirement)
84 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Extensions/ExtensionHelpers.swift:275:11: error: cannot find type 'URLRequest' in scope
273 |
274 | // MARK: - URLRequest Extension
275 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 |
277 | private static let atProtoKitAuthorizationRequirementKey = "com.cjrriley.ATProtoKit.authorizationRequirement"
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:49:39: error: cannot find type 'URLRequest' in scope
47 | /// - request: The `URLRequest` about to be sent.
48 | /// - body: The encoded HTTP body data for the request. Optional.
49 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
50 | print("\n--- API REQUEST ---")
51 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | /// - data: The raw response data, if any. Optional.
88 | /// - error: An `Error` if the request failed. Optional.
89 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
93 | print("Status: \(httpResponse.statusCode)")
94 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | print("Status: \(httpResponse.statusCode)")
94 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
93 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | let headers: [String: String] = Dictionary(
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:96:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
94 |
95 | let headers: [String: String] = Dictionary(
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:98:32: error: 'nil' requires a contextual type
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
| `- error: 'nil' requires a contextual type
99 | }
100 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[531/678] Compiling ATProtoKit Logging.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:48:20: error: cannot find type 'URLRequest' in scope
46 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
47 | func execute(
48 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | for request: URLRequest,
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:25:22: error: cannot find type 'URLRequest' in scope
23 | /// - Throws: An error if authorization cannot be prepared.
24 | func authenticatedRequest(
25 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:59:24: error: cannot find type 'URLSessionDelegate' in scope
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
60 | delegateQueue: OperationQueue? = nil,
61 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:60:24: error: cannot find type 'OperationQueue' in scope
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
61 | responseProvider: ATRequestExecutor? = nil,
62 | requestAuthenticator: ATRequestAuthenticator? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:58:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | /// Defaults to `nil`.
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:134:10: error: cannot find type 'URLRequest' in scope
132 | proxyValue: String? = nil,
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
135 | var request = URLRequest(url: requestURL)
136 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:210:54: error: cannot find type 'URLRequest' in scope
208 | /// - decodeTo: The type to decode the response into.
209 | /// - Returns: An instance of the specified `Decodable` type.
210 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
211 | let data = try await self.performRequest(request, withEncodingBody: body)
212 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:234:40: error: cannot find type 'URLRequest' in scope
232 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
233 | /// - Returns: A `Data` object that contains the blob.
234 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
235 | let data = try await self.performRequest(request, withEncodingBody: body)
236 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:246:54: error: cannot find type 'URLRequest' in scope
244 | /// - decodeTo: The type to decode the response into.
245 | /// - Returns: An instance of the specified `Decodable` type.
246 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
247 | var urlRequest = request
248 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:44: error: cannot find type 'URLRequest' in scope
289 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
290 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
291 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
292 | // Wait for ATRecordTypeRegistry to be ready before proceeding
293 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:100:64: error: reference to member 'default' cannot be resolved without a contextual type
98 | /// - ``APIClientConfiguration``
99 | public init(with configuration: APIClientConfiguration) {
100 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:102:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | let config = configuration.urlSessionConfiguration ?? .default
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 | self.executor = configuration.responseProvider
104 | self.requestAuthenticator = configuration.requestAuthenticator
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:135:23: error: cannot find 'URLRequest' in scope
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
135 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
136 | request.httpMethod = httpMethod.rawValue
137 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:257:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | }
256 |
257 | let (responseData, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | if let executor {
259 | (responseData, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:264:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
262 | )
263 | } else {
264 | (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
265 | }
266 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
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/ATProtoKit/Utilities/APIClientService.swift:271:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
271 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:273:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
271 | guard httpResponse.statusCode == 200 else {
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw URLError(.badServerResponse)
275 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:320:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |
319 | do {
320 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | if let executor = self.executor {
322 | (data, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
325 | )
326 | } else {
327 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
328 | }
329 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
335 | switch httpResponse.statusCode {
336 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | switch httpResponse.statusCode {
336 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:335:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
335 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
336 | case 200:
337 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:346:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
344 | throw ATAPIError.badRequest(error: errorResponse)
345 | case 401:
346 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
347 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
348 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:382:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
380 | throw ATAPIError.payloadTooLarge(error: errorResponse)
381 | case 429:
382 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
383 | TimeInterval(retryAfterHeader)
384 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:430:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
428 | default:
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:431:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
433 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The base hostname of the PLC directory.
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:16: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
26 |
27 | /// The base hostname of the PLC directory.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:47:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let documentURL = try didDocumentURL(for: did)
46 |
47 | let (data, response) = try await urlSession.data(from: documentURL)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | guard let httpResponse = response as? HTTPURLResponse,
49 | (200..<300).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:50:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ request: URLRequest,
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:60:36: error: cannot find type 'URLRequest' in scope
58 |
59 | /// The closure that executes a complete request.
60 | public let handler: @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 |
62 | /// Creates a closure-backed request executor.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:66:39: error: cannot find type 'URLRequest' in scope
64 | /// - Parameter handler: The closure that executes a complete request.
65 | public init(
66 | handler: @escaping @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
67 | ) {
68 | self.handler = handler
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:80:20: error: cannot find type 'URLRequest' in scope
78 | /// - Throws: An error from the underlying request closure.
79 | public func execute(
80 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | _ request: URLRequest,
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | return try await handler(request, authorizationRequirement)
84 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Extensions/ExtensionHelpers.swift:275:11: error: cannot find type 'URLRequest' in scope
273 |
274 | // MARK: - URLRequest Extension
275 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 |
277 | private static let atProtoKitAuthorizationRequirementKey = "com.cjrriley.ATProtoKit.authorizationRequirement"
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:49:39: error: cannot find type 'URLRequest' in scope
47 | /// - request: The `URLRequest` about to be sent.
48 | /// - body: The encoded HTTP body data for the request. Optional.
49 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
50 | print("\n--- API REQUEST ---")
51 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | /// - data: The raw response data, if any. Optional.
88 | /// - error: An `Error` if the request failed. Optional.
89 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
93 | print("Status: \(httpResponse.statusCode)")
94 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | print("Status: \(httpResponse.statusCode)")
94 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
93 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | let headers: [String: String] = Dictionary(
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:96:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
94 |
95 | let headers: [String: String] = Dictionary(
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:98:32: error: 'nil' requires a contextual type
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
| `- error: 'nil' requires a contextual type
99 | }
100 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[532/678] Compiling ATProtoKit LoggingBootStrapping.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:48:20: error: cannot find type 'URLRequest' in scope
46 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
47 | func execute(
48 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | for request: URLRequest,
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:25:22: error: cannot find type 'URLRequest' in scope
23 | /// - Throws: An error if authorization cannot be prepared.
24 | func authenticatedRequest(
25 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:59:24: error: cannot find type 'URLSessionDelegate' in scope
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
60 | delegateQueue: OperationQueue? = nil,
61 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:60:24: error: cannot find type 'OperationQueue' in scope
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
61 | responseProvider: ATRequestExecutor? = nil,
62 | requestAuthenticator: ATRequestAuthenticator? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:58:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | /// Defaults to `nil`.
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:134:10: error: cannot find type 'URLRequest' in scope
132 | proxyValue: String? = nil,
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
135 | var request = URLRequest(url: requestURL)
136 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:210:54: error: cannot find type 'URLRequest' in scope
208 | /// - decodeTo: The type to decode the response into.
209 | /// - Returns: An instance of the specified `Decodable` type.
210 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
211 | let data = try await self.performRequest(request, withEncodingBody: body)
212 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:234:40: error: cannot find type 'URLRequest' in scope
232 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
233 | /// - Returns: A `Data` object that contains the blob.
234 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
235 | let data = try await self.performRequest(request, withEncodingBody: body)
236 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:246:54: error: cannot find type 'URLRequest' in scope
244 | /// - decodeTo: The type to decode the response into.
245 | /// - Returns: An instance of the specified `Decodable` type.
246 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
247 | var urlRequest = request
248 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:44: error: cannot find type 'URLRequest' in scope
289 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
290 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
291 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
292 | // Wait for ATRecordTypeRegistry to be ready before proceeding
293 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:100:64: error: reference to member 'default' cannot be resolved without a contextual type
98 | /// - ``APIClientConfiguration``
99 | public init(with configuration: APIClientConfiguration) {
100 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:102:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | let config = configuration.urlSessionConfiguration ?? .default
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 | self.executor = configuration.responseProvider
104 | self.requestAuthenticator = configuration.requestAuthenticator
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:135:23: error: cannot find 'URLRequest' in scope
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
135 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
136 | request.httpMethod = httpMethod.rawValue
137 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:257:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | }
256 |
257 | let (responseData, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | if let executor {
259 | (responseData, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:264:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
262 | )
263 | } else {
264 | (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
265 | }
266 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
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/ATProtoKit/Utilities/APIClientService.swift:271:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
271 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:273:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
271 | guard httpResponse.statusCode == 200 else {
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw URLError(.badServerResponse)
275 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:320:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |
319 | do {
320 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | if let executor = self.executor {
322 | (data, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
325 | )
326 | } else {
327 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
328 | }
329 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
335 | switch httpResponse.statusCode {
336 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | switch httpResponse.statusCode {
336 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:335:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
335 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
336 | case 200:
337 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:346:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
344 | throw ATAPIError.badRequest(error: errorResponse)
345 | case 401:
346 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
347 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
348 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:382:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
380 | throw ATAPIError.payloadTooLarge(error: errorResponse)
381 | case 429:
382 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
383 | TimeInterval(retryAfterHeader)
384 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:430:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
428 | default:
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:431:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
433 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The base hostname of the PLC directory.
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:16: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
26 |
27 | /// The base hostname of the PLC directory.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:47:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let documentURL = try didDocumentURL(for: did)
46 |
47 | let (data, response) = try await urlSession.data(from: documentURL)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | guard let httpResponse = response as? HTTPURLResponse,
49 | (200..<300).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:50:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ request: URLRequest,
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:60:36: error: cannot find type 'URLRequest' in scope
58 |
59 | /// The closure that executes a complete request.
60 | public let handler: @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 |
62 | /// Creates a closure-backed request executor.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:66:39: error: cannot find type 'URLRequest' in scope
64 | /// - Parameter handler: The closure that executes a complete request.
65 | public init(
66 | handler: @escaping @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
67 | ) {
68 | self.handler = handler
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:80:20: error: cannot find type 'URLRequest' in scope
78 | /// - Throws: An error from the underlying request closure.
79 | public func execute(
80 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | _ request: URLRequest,
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | return try await handler(request, authorizationRequirement)
84 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Extensions/ExtensionHelpers.swift:275:11: error: cannot find type 'URLRequest' in scope
273 |
274 | // MARK: - URLRequest Extension
275 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 |
277 | private static let atProtoKitAuthorizationRequirementKey = "com.cjrriley.ATProtoKit.authorizationRequirement"
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:49:39: error: cannot find type 'URLRequest' in scope
47 | /// - request: The `URLRequest` about to be sent.
48 | /// - body: The encoded HTTP body data for the request. Optional.
49 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
50 | print("\n--- API REQUEST ---")
51 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | /// - data: The raw response data, if any. Optional.
88 | /// - error: An `Error` if the request failed. Optional.
89 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
93 | print("Status: \(httpResponse.statusCode)")
94 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | print("Status: \(httpResponse.statusCode)")
94 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
93 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | let headers: [String: String] = Dictionary(
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:96:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
94 |
95 | let headers: [String: String] = Dictionary(
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:98:32: error: 'nil' requires a contextual type
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
| `- error: 'nil' requires a contextual type
99 | }
100 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[533/678] Compiling ATProtoKit SessionDebuggable.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:48:20: error: cannot find type 'URLRequest' in scope
46 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
47 | func execute(
48 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | for request: URLRequest,
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:25:22: error: cannot find type 'URLRequest' in scope
23 | /// - Throws: An error if authorization cannot be prepared.
24 | func authenticatedRequest(
25 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:59:24: error: cannot find type 'URLSessionDelegate' in scope
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
60 | delegateQueue: OperationQueue? = nil,
61 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:60:24: error: cannot find type 'OperationQueue' in scope
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
61 | responseProvider: ATRequestExecutor? = nil,
62 | requestAuthenticator: ATRequestAuthenticator? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:58:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | /// Defaults to `nil`.
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:134:10: error: cannot find type 'URLRequest' in scope
132 | proxyValue: String? = nil,
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
135 | var request = URLRequest(url: requestURL)
136 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:210:54: error: cannot find type 'URLRequest' in scope
208 | /// - decodeTo: The type to decode the response into.
209 | /// - Returns: An instance of the specified `Decodable` type.
210 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
211 | let data = try await self.performRequest(request, withEncodingBody: body)
212 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:234:40: error: cannot find type 'URLRequest' in scope
232 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
233 | /// - Returns: A `Data` object that contains the blob.
234 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
235 | let data = try await self.performRequest(request, withEncodingBody: body)
236 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:246:54: error: cannot find type 'URLRequest' in scope
244 | /// - decodeTo: The type to decode the response into.
245 | /// - Returns: An instance of the specified `Decodable` type.
246 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
247 | var urlRequest = request
248 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:44: error: cannot find type 'URLRequest' in scope
289 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
290 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
291 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
292 | // Wait for ATRecordTypeRegistry to be ready before proceeding
293 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:100:64: error: reference to member 'default' cannot be resolved without a contextual type
98 | /// - ``APIClientConfiguration``
99 | public init(with configuration: APIClientConfiguration) {
100 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:102:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | let config = configuration.urlSessionConfiguration ?? .default
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 | self.executor = configuration.responseProvider
104 | self.requestAuthenticator = configuration.requestAuthenticator
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:135:23: error: cannot find 'URLRequest' in scope
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
135 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
136 | request.httpMethod = httpMethod.rawValue
137 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:257:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | }
256 |
257 | let (responseData, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | if let executor {
259 | (responseData, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:264:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
262 | )
263 | } else {
264 | (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
265 | }
266 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
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/ATProtoKit/Utilities/APIClientService.swift:271:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
271 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:273:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
271 | guard httpResponse.statusCode == 200 else {
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw URLError(.badServerResponse)
275 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:320:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |
319 | do {
320 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | if let executor = self.executor {
322 | (data, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
325 | )
326 | } else {
327 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
328 | }
329 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
335 | switch httpResponse.statusCode {
336 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | switch httpResponse.statusCode {
336 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:335:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
335 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
336 | case 200:
337 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:346:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
344 | throw ATAPIError.badRequest(error: errorResponse)
345 | case 401:
346 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
347 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
348 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:382:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
380 | throw ATAPIError.payloadTooLarge(error: errorResponse)
381 | case 429:
382 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
383 | TimeInterval(retryAfterHeader)
384 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:430:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
428 | default:
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:431:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
433 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The base hostname of the PLC directory.
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:16: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
26 |
27 | /// The base hostname of the PLC directory.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:47:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let documentURL = try didDocumentURL(for: did)
46 |
47 | let (data, response) = try await urlSession.data(from: documentURL)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | guard let httpResponse = response as? HTTPURLResponse,
49 | (200..<300).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:50:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ request: URLRequest,
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:60:36: error: cannot find type 'URLRequest' in scope
58 |
59 | /// The closure that executes a complete request.
60 | public let handler: @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 |
62 | /// Creates a closure-backed request executor.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:66:39: error: cannot find type 'URLRequest' in scope
64 | /// - Parameter handler: The closure that executes a complete request.
65 | public init(
66 | handler: @escaping @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
67 | ) {
68 | self.handler = handler
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:80:20: error: cannot find type 'URLRequest' in scope
78 | /// - Throws: An error from the underlying request closure.
79 | public func execute(
80 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | _ request: URLRequest,
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | return try await handler(request, authorizationRequirement)
84 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Extensions/ExtensionHelpers.swift:275:11: error: cannot find type 'URLRequest' in scope
273 |
274 | // MARK: - URLRequest Extension
275 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 |
277 | private static let atProtoKitAuthorizationRequirementKey = "com.cjrriley.ATProtoKit.authorizationRequirement"
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:49:39: error: cannot find type 'URLRequest' in scope
47 | /// - request: The `URLRequest` about to be sent.
48 | /// - body: The encoded HTTP body data for the request. Optional.
49 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
50 | print("\n--- API REQUEST ---")
51 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | /// - data: The raw response data, if any. Optional.
88 | /// - error: An `Error` if the request failed. Optional.
89 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
93 | print("Status: \(httpResponse.statusCode)")
94 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | print("Status: \(httpResponse.statusCode)")
94 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
93 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | let headers: [String: String] = Dictionary(
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:96:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
94 |
95 | let headers: [String: String] = Dictionary(
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:98:32: error: 'nil' requires a contextual type
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
| `- error: 'nil' requires a contextual type
99 | }
100 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[534/678] Compiling ATProtoKit resource_bundle_accessor.swift
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:24:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
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/ATProtoKit/Utilities/APIClientConfiguration.swift:28:24: error: cannot find type 'URLSessionDelegate' in scope
26 | /// A session delegate object that handles requests for authentication and other session-related events.
27 | /// Optional. Defaults to `nil`.
28 | var delegate: (any URLSessionDelegate)? = nil
| `- error: cannot find type 'URLSessionDelegate' in scope
29 |
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:32:24: error: cannot find type 'OperationQueue' in scope
30 | /// An operation queue for scheduling the delegate calls and completion handlers. Optional.
31 | /// Defaults to `nil`.
32 | var delegateQueue: OperationQueue? = nil
| `- error: cannot find type 'OperationQueue' in scope
33 |
34 | /// A provider used for the response of the `URLRequest`. Optional. Defaults to `nil`.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:48:20: error: cannot find type 'URLRequest' in scope
46 | /// - Throws: An error if the request fails, is cancelled, or if a networking error occurs.
47 | func execute(
48 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:27:23: error: cannot find type 'URLRequest' in scope
25 | for request: URLRequest,
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
28 | }
29 |
/host/spi-builder-workspace/Sources/ATProtoKit/APIReference/SessionManager/SessionAuthorization.swift:25:22: error: cannot find type 'URLRequest' in scope
23 | /// - Throws: An error if authorization cannot be prepared.
24 | func authenticatedRequest(
25 | for request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
26 | authorizationRequirement: ATRequestAuthorizationRequirement
27 | ) async throws -> URLRequest
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:44:32: error: cannot find type 'URLRequest' in scope
42 | /// - request: The `URLRequest` about to be sent.
43 | /// - body: The encoded HTTP body data for the request. Optional.
44 | func logRequest(_ request: URLRequest, body: Data?)
| `- error: cannot find type 'URLRequest' in scope
45 |
46 | /// Creates a log immediately after a response is received (or a request fails).
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:59:24: error: cannot find type 'URLSessionDelegate' in scope
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
| `- error: cannot find type 'URLSessionDelegate' in scope
60 | delegateQueue: OperationQueue? = nil,
61 | responseProvider: ATRequestExecutor? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:60:24: error: cannot find type 'OperationQueue' in scope
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
| `- error: cannot find type 'OperationQueue' in scope
61 | responseProvider: ATRequestExecutor? = nil,
62 | requestAuthenticator: ATRequestAuthenticator? = nil,
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientConfiguration.swift:58:34: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | /// Defaults to `nil`.
57 | public init(
58 | urlSessionConfiguration: URLSessionConfiguration? = nil,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 | delegate: (any URLSessionDelegate)? = nil,
60 | delegateQueue: OperationQueue? = nil,
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/ATProtoKit/Utilities/APIClientConfiguration.swift:24:9: warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
22 |
23 | /// An instance of `URLSessionConfiguration`. Optional. Defaults to `.default`.
24 | var urlSessionConfiguration: URLSessionConfiguration?
| `- warning: stored property 'urlSessionConfiguration' of 'Sendable'-conforming struct 'APIClientConfiguration' has non-sendable type 'URLSessionConfiguration?' (aka 'Optional<AnyObject>'); this is an error in the Swift 6 language mode
25 |
26 | /// A session delegate object that handles requests for authentication and other session-related events.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |
22 | /// An instance of ``ATRequestExecutor``.
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/ATProtoKit/Utilities/APIClientService.swift:20:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:81: error: cannot infer contextual base in reference to member 'default'
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:134:10: error: cannot find type 'URLRequest' in scope
132 | proxyValue: String? = nil,
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
135 | var request = URLRequest(url: requestURL)
136 | request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:210:54: error: cannot find type 'URLRequest' in scope
208 | /// - decodeTo: The type to decode the response into.
209 | /// - Returns: An instance of the specified `Decodable` type.
210 | public func sendRequest<T: Decodable>(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
211 | let data = try await self.performRequest(request, withEncodingBody: body)
212 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:234:40: error: cannot find type 'URLRequest' in scope
232 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
233 | /// - Returns: A `Data` object that contains the blob.
234 | public func sendRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
235 | let data = try await self.performRequest(request, withEncodingBody: body)
236 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:246:54: error: cannot find type 'URLRequest' in scope
244 | /// - decodeTo: The type to decode the response into.
245 | /// - Returns: An instance of the specified `Decodable` type.
246 | public func sendRequest<T: Decodable>(_ request: URLRequest, withDataBody data: Data, decodeTo: T.Type) async throws -> T {
| `- error: cannot find type 'URLRequest' in scope
247 | var urlRequest = request
248 | urlRequest.httpBody = data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:291:44: error: cannot find type 'URLRequest' in scope
289 | /// - body: An optional `Encodable` body to be encoded and attached to the request.
290 | /// - Returns: A tuple containing the data and the HTTPURLResponse.
291 | private func performRequest(_ request: URLRequest, withEncodingBody body: (Encodable & Sendable)? = nil) async throws -> Data {
| `- error: cannot find type 'URLRequest' in scope
292 | // Wait for ATRecordTypeRegistry to be ready before proceeding
293 | await ATRecordTypeRegistry.shared.waitUntilRegistryIsRead()
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:20:29: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
18 |
19 | /// The `URLSession` instance to be used for network requests.
20 | public private(set) var urlSession: URLSession = URLSession(configuration: .default)
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'APIClientService' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
21 |
22 | /// An instance of ``ATRequestExecutor``.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:100:64: error: reference to member 'default' cannot be resolved without a contextual type
98 | /// - ``APIClientConfiguration``
99 | public init(with configuration: APIClientConfiguration) {
100 | let config = configuration.urlSessionConfiguration ?? .default
| `- error: reference to member 'default' cannot be resolved without a contextual type
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:102:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
100 | let config = configuration.urlSessionConfiguration ?? .default
101 | config.httpAdditionalHeaders = ["User-Agent": APIClientService.userAgent]
102 | self.urlSession = URLSession(configuration: config, delegate: configuration.delegate, delegateQueue: configuration.delegateQueue)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 | self.executor = configuration.responseProvider
104 | self.requestAuthenticator = configuration.requestAuthenticator
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:135:23: error: cannot find 'URLRequest' in scope
133 | isRelatedToBskyChat: Bool = false
134 | ) -> URLRequest {
135 | var request = URLRequest(url: requestURL)
| `- error: cannot find 'URLRequest' in scope
136 | request.httpMethod = httpMethod.rawValue
137 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:257:46: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 | }
256 |
257 | let (responseData, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
258 | if let executor {
259 | (responseData, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:264:61: error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
262 | )
263 | } else {
264 | (responseData, response) = try await urlSession.upload(for: urlRequest, from: data)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'upload'
265 | }
266 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:267:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
265 | }
266 |
267 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 | throw ATHTTPRequestError.errorGettingResponse
269 | }
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/ATProtoKit/Utilities/APIClientService.swift:271:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
271 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:273:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
271 | guard httpResponse.statusCode == 200 else {
272 | let responseBody = String(data: responseData, encoding: .utf8) ?? "No response body"
273 | print("HTTP Status Code: \(httpResponse.statusCode) - Response Body: \(responseBody)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
274 | throw URLError(.badServerResponse)
275 | }
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:320:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |
319 | do {
320 | let (data, response): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
321 | if let executor = self.executor {
322 | (data, response) = try await executor.execute(
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:327:57: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
325 | )
326 | } else {
327 | (data, response) = try await urlSession.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
328 | }
329 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:44: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
335 | switch httpResponse.statusCode {
336 | case 200:
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:334:48: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
332 | #endif
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
335 | switch httpResponse.statusCode {
336 | case 200:
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/ATProtoKit/Utilities/APIClientService.swift:335:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
333 |
334 | if let httpResponse = response as? HTTPURLResponse {
335 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
336 | case 200:
337 | return data
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:346:66: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
344 | throw ATAPIError.badRequest(error: errorResponse)
345 | case 401:
346 | let wwwAuthenticateHeader = httpResponse.allHeaderFields["WWW-Authenticate"] as? String
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
347 | let errorResponse = try JSONDecoder().decode(ATHTTPResponseError.self, from: data)
348 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:382:101: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
380 | throw ATAPIError.payloadTooLarge(error: errorResponse)
381 | case 429:
382 | let retryAfterValue: TimeInterval? = if let retryAfterHeader = httpResponse.allHeaderFields["ratelimit-reset"] as? String {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
383 | TimeInterval(retryAfterHeader)
384 | } else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:430:54: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
428 | default:
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/APIClientService.swift:431:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
429 | let errorResponse = String(data: data, encoding: .utf8) ?? "No response body"
430 | let errorCode = httpResponse.statusCode
431 | let httpHeaders = httpResponse.allHeaderFields as? [String: String] ?? [:]
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
432 | let error = ATAPIError.unknown(error: errorResponse, errorCode: errorCode, errorData: data, httpHeaders: httpHeaders)
433 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// The base hostname of the PLC directory.
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
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/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:37:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | /// ``APIHostname/plcDirectory``.
36 | public init(
37 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | plcDirectoryURL: String = APIHostname.plcDirectory
39 | ) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:25:16: warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
23 |
24 | /// The URL session used for the lookups.
25 | public let urlSession: URLSession
| `- warning: stored property 'urlSession' of 'Sendable'-conforming struct 'ATBuiltInIdentityResolver' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
26 |
27 | /// The base hostname of the PLC directory.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATBuiltInIdentityResolver.swift:47:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let documentURL = try didDocumentURL(for: did)
46 |
47 | let (data, response) = try await urlSession.data(from: documentURL)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | guard let httpResponse = response as? HTTPURLResponse,
49 | (200..<300).contains(httpResponse.statusCode) else {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:50:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | _ request: URLRequest,
49 | authorizationRequirement: ATRequestAuthorizationRequirement
50 | ) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:60:36: error: cannot find type 'URLRequest' in scope
58 |
59 | /// The closure that executes a complete request.
60 | public let handler: @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
61 |
62 | /// Creates a closure-backed request executor.
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:66:39: error: cannot find type 'URLRequest' in scope
64 | /// - Parameter handler: The closure that executes a complete request.
65 | public init(
66 | handler: @escaping @Sendable (URLRequest, ATRequestAuthorizationRequirement) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
67 | ) {
68 | self.handler = handler
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:80:20: error: cannot find type 'URLRequest' in scope
78 | /// - Throws: An error from the underlying request closure.
79 | public func execute(
80 | _ request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/ATRequestExecutor.swift:82:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
80 | _ request: URLRequest,
81 | authorizationRequirement: ATRequestAuthorizationRequirement
82 | ) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | return try await handler(request, authorizationRequirement)
84 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Extensions/ExtensionHelpers.swift:275:11: error: cannot find type 'URLRequest' in scope
273 |
274 | // MARK: - URLRequest Extension
275 | extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
276 |
277 | private static let atProtoKitAuthorizationRequirementKey = "com.cjrriley.ATProtoKit.authorizationRequirement"
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:49:39: error: cannot find type 'URLRequest' in scope
47 | /// - request: The `URLRequest` about to be sent.
48 | /// - body: The encoded HTTP body data for the request. Optional.
49 | public func logRequest(_ request: URLRequest, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
50 | print("\n--- API REQUEST ---")
51 | print("URL: \(request.url?.absoluteString ?? "(nil)")")
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:89:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
87 | /// - data: The raw response data, if any. Optional.
88 | /// - error: An `Error` if the request failed. Optional.
89 | public func logResponse(_ response: URLResponse?, data: Data?, error: Error?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
93 | print("Status: \(httpResponse.statusCode)")
94 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:92:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | print("\n--- API RESPONSE ---")
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | print("Status: \(httpResponse.statusCode)")
94 |
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/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:93:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
91 |
92 | if let httpResponse = response as? HTTPURLResponse {
93 | print("Status: \(httpResponse.statusCode)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
94 |
95 | let headers: [String: String] = Dictionary(
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:96:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
94 |
95 | let headers: [String: String] = Dictionary(
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/ConsoleDebugger.swift:98:32: error: 'nil' requires a contextual type
96 | uniqueKeysWithValues: httpResponse.allHeaderFields.compactMap { entry in
97 | guard let name = entry.key as? String, let value = entry.value as? String else {
98 | return nil
| `- error: 'nil' requires a contextual type
99 | }
100 |
/host/spi-builder-workspace/Sources/ATProtoKit/Utilities/Logging/SessionDebuggable.swift:55:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | /// - data: The raw response data, if any. Optional.
54 | /// - error: An `Error` if the request failed. Optional.
55 | func logResponse(_ response: URLResponse?, data: Data?, error: Error?)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 | }
57 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[535/678] Compiling ATProtoKit ChatBskyConvoListConvos.swift
[536/678] Compiling ATProtoKit ChatBskyConvoMuteConvo.swift
[537/678] Compiling ATProtoKit ChatBskyConvoRemoveReaction.swift
[538/678] Compiling ATProtoKit ChatBskyConvoSendMessage.swift
[539/678] Compiling ATProtoKit ChatBskyConvoSendMessageBatch.swift
[540/678] Compiling ATProtoKit ChatBskyConvoUnmuteConvo.swift
[541/678] Compiling ATProtoKit ChatBskyConvoUpdateAllRead.swift
[542/678] Compiling ATProtoKit ChatBskyConvoUpdateRead.swift
[543/678] Compiling ATProtoKit ChatBskyModerationGetActorMetadata.swift
[544/678] Compiling ATProtoKit ChatBskyModerationGetMessageContext.swift
[545/678] Compiling ATProtoKit ChatBskyModerationUpdateActorAccess.swift
[546/678] Compiling ATProtoKit ChatBskyNotificationDefs.swift
[547/678] Compiling ATProtoKit ChatBskyNotificationGetPreferences.swift
[548/678] Compiling ATProtoKit ChatBskyNotificationPutPreferences.swift
[549/678] Compiling ATProtoKit ComAtprotoAdminDefs.swift
[550/678] Compiling ATProtoKit ComAtprotoAdminDeleteAccount.swift
[551/678] Compiling ATProtoKit ComAtprotoAdminDisableAccountInvites.swift
[552/678] Compiling ATProtoKit ComAtprotoAdminDisableInviteCodes.swift
[553/678] Compiling ATProtoKit ComAtprotoAdminEnableAccountInvites.swift
[554/678] Compiling ATProtoKit ComAtprotoAdminGetAccountInfos.swift
[555/678] Compiling ATProtoKit ComAtprotoAdminGetInviteCodes.swift
[556/678] Compiling ATProtoKit ComAtprotoAdminGetSubjectStatus.swift
[557/678] Compiling ATProtoKit ComAtprotoAdminSearchAccounts.swift
[558/678] Compiling ATProtoKit ComAtprotoAdminSearchRepos.swift
[559/678] Compiling ATProtoKit ToolsOzoneSafelinkRemoveRule.swift
[560/678] Compiling ATProtoKit ToolsOzoneSafelinkUpdateRule.swift
[561/678] Compiling ATProtoKit ToolsOzoneServerGetConfig.swift
[562/678] Compiling ATProtoKit ToolsOzoneModerationSetAddValues.swift
[563/678] Compiling ATProtoKit ToolsOzoneSetDefs.swift
[564/678] Compiling ATProtoKit ToolsOzoneSetDeleteSet.swift
[565/678] Compiling ATProtoKit ToolsOzoneSetDeleteValues.swift
[566/678] Compiling ATProtoKit ToolsOzoneSetGetValues.swift
[567/678] Compiling ATProtoKit ToolsOzoneSetQuerySets.swift
[568/678] Compiling ATProtoKit ToolsOzoneSettingDefs.swift
[569/678] Compiling ATProtoKit ToolsOzoneSettingListOptions.swift
[570/678] Compiling ATProtoKit ToolsOzoneSettingRemoveOptions.swift
[571/678] Compiling ATProtoKit ToolsOzoneSettingUpsertOption.swift
[572/678] Compiling ATProtoKit ToolsOzoneSignatureDefs.swift
[573/678] Compiling ATProtoKit ToolsOzoneSignatureFindCorrelation.swift
[574/678] Compiling ATProtoKit ToolsOzoneSignatureFindRelatedAccounts.swift
[575/678] Compiling ATProtoKit ToolsOzoneSignatureSearchAccounts.swift
[576/678] Compiling ATProtoKit ToolsOzoneTeamAddMember.swift
[577/678] Compiling ATProtoKit ToolsOzoneTeamDefs.swift
[578/678] Compiling ATProtoKit ToolsOzoneTeamDeleteMember.swift
[579/678] Compiling ATProtoKit ToolsOzoneTeamListMembers.swift
[580/678] Compiling ATProtoKit ToolsOzoneTeamUpdateMember.swift
[581/678] Compiling ATProtoKit ToolsOzoneLexicon.swift
[582/678] Compiling ATProtoKit ToolsOzoneVerificationDefs.swift
[583/678] Compiling ATProtoKit ComAtprotoTempRequestPhoneVerification.swift
[584/678] Compiling ATProtoKit ComAtprotoTempRevokeAccountCredentials.swift
[585/678] Compiling ATProtoKit ToolsOzoneCommunicationCreateTemplate.swift
[586/678] Compiling ATProtoKit ToolsOzoneCommunicationDefs.swift
[587/678] Compiling ATProtoKit ToolsOzoneCommunicationDeleteTemplate.swift
[588/678] Compiling ATProtoKit ToolsOzoneCommunicationListTemplates.swift
[589/678] Compiling ATProtoKit ToolsOzoneCommunicationUpdateTemplate.swift
[590/678] Compiling ATProtoKit ToolsOzoneHostingGetAccountHistory.swift
[591/678] Compiling ATProtoKit ToolsOzoneModerationCancelScheduledActions.swift
[592/678] Compiling ATProtoKit ToolsOzoneModerationDefs.swift
[593/678] Compiling ATProtoKit ToolsOzoneModerationEmitEvent.swift
[594/678] Compiling ATProtoKit ToolsOzoneModerationGetAccountTimeline.swift
[595/678] Compiling ATProtoKit ToolsOzoneModerationGetRecords.swift
[596/678] Compiling ATProtoKit ToolsOzoneModerationGetReporterStats.swift
[597/678] Compiling ATProtoKit ToolsOzoneModerationGetRepos.swift
[598/678] Compiling ATProtoKit ToolsOzoneModerationGetSubjects.swift
[599/678] Compiling ATProtoKit ToolsOzoneModerationListScheduledActions.swift
[600/678] Compiling ATProtoKit ToolsOzoneModerationQueryEvents.swift
[601/678] Compiling ATProtoKit ToolsOzoneModerationQueryStatuses.swift
[602/678] Compiling ATProtoKit ToolsOzoneModerationSearchRepos.swift
[603/678] Compiling ATProtoKit ToolsOzoneQueueAssignModerator.swift
[604/678] Compiling ATProtoKit ToolsOzoneQueueCreateQueue.swift
[605/678] Compiling ATProtoKit ToolsOzoneQueueDefs.swift
[606/678] Compiling ATProtoKit ToolsOzoneQueueDeleteQueue.swift
[607/678] Compiling ATProtoKit AppBskyUnspeccedGetTrends.swift
[608/678] Compiling ATProtoKit AppBskyUnspeccedGetTrendsSkeleton.swift
[609/678] Compiling ATProtoKit AppBskyUnspeccedInitAgeAssurance.swift
[610/678] Compiling ATProtoKit AppBskyUnspeccedSearchActorsSkeleton.swift
[611/678] Compiling ATProtoKit AppBskyUnspeccedSearchPostsSkeleton.swift
[612/678] Compiling ATProtoKit AppBskyUnspeccedStarterPacksSkeleton.swift
[613/678] Compiling ATProtoKit AppBskyVideoDefs.swift
[614/678] Compiling ATProtoKit AppBskyVideoGetJobStatus.swift
[615/678] Compiling ATProtoKit AppBskyVideoGetUploadLimits.swift
[616/678] Compiling ATProtoKit AppBskyVideoUploadVideo.swift
[617/678] Compiling ATProtoKit ChatBskyActorDeclaration.swift
[618/678] Compiling ATProtoKit ChatBskyActorDefs.swift
[619/678] Compiling ATProtoKit ChatBskyActorDeleteAccount.swift
[620/678] Compiling ATProtoKit ChatBskyLexicon.swift
[621/678] Compiling ATProtoKit ChatBskyConvoAcceptConvo.swift
[622/678] Compiling ATProtoKit ChatBskyConvoAddReaction.swift
[623/678] Compiling ATProtoKit ChatBskyConvoDefs.swift
[624/678] Compiling ATProtoKit ChatBskyConvoDeleteMessageForSelf.swift
[625/678] Compiling ATProtoKit ChatBskyConvoGetConvo.swift
[626/678] Compiling ATProtoKit ChatBskyConvoGetConvoAvailability.swift
[627/678] Compiling ATProtoKit ChatBskyConvoGetConvoForMembers.swift
[628/678] Compiling ATProtoKit ChatBskyConvoGetLog.swift
[629/678] Compiling ATProtoKit ChatBskyConvoGetMessages.swift
[630/678] Compiling ATProtoKit ChatBskyConvoLeaveConvo.swift
[631/678] Compiling ATProtoKit ToolsOzoneQueueGetAssignments.swift
[632/678] Compiling ATProtoKit ToolsOzoneQueueListQueues.swift
[633/678] Compiling ATProtoKit ToolsOzoneQueueRouteReports.swift
[634/678] Compiling ATProtoKit ToolsOzoneQueueUnassignModerator.swift
[635/678] Compiling ATProtoKit ToolsOzoneQueueUpdateQueue.swift
[636/678] Compiling ATProtoKit ToolsOzoneReportAssignModerator.swift
[637/678] Compiling ATProtoKit ToolsOzoneReportCloseReports.swift
[638/678] Compiling ATProtoKit ToolsOzoneReportCreateActivity.swift
[639/678] Compiling ATProtoKit ToolsOzoneReportDefs.swift
[640/678] Compiling ATProtoKit ToolsOzoneReportGetAssignments.swift
[641/678] Compiling ATProtoKit ToolsOzoneReportGetHistoricalStats.swift
[642/678] Compiling ATProtoKit ToolsOzoneReportGetLatestReport.swift
[643/678] Compiling ATProtoKit ToolsOzoneReportGetLiveStats.swift
[644/678] Compiling ATProtoKit ToolsOzoneReportGetReport.swift
[645/678] Compiling ATProtoKit ToolsOzoneReportListActivities.swift
[646/678] Compiling ATProtoKit ToolsOzoneReportQueryActivities.swift
[647/678] Compiling ATProtoKit ToolsOzoneReportQueryReports.swift
[648/678] Compiling ATProtoKit ToolsOzoneReportReassignQueue.swift
[649/678] Compiling ATProtoKit ToolsOzoneReportRefreshStats.swift
[650/678] Compiling ATProtoKit ToolsOzoneReportUnassignModerator.swift
[651/678] Compiling ATProtoKit ToolsOzoneSafelinkAddRule.swift
[652/678] Compiling ATProtoKit ToolsOzoneSafelinkDefs.swift
[653/678] Compiling ATProtoKit ToolsOzoneSafelinkQueryEvents.swift
[654/678] Compiling ATProtoKit ToolsOzoneSafelinkQueryRules.swift
[655/678] Compiling ATProtoKit AppBskyDraftUpdateDraft.swift
[656/678] Compiling ATProtoKit AppBskyEmbedDefs.swift
[657/678] Compiling ATProtoKit AppBskyEmbedExternal.swift
[658/678] Compiling ATProtoKit AppBskyEmbedGallery.swift
[659/678] Compiling ATProtoKit AppBskyEmbedGetEmbedExternalView.swift
[660/678] Compiling ATProtoKit AppBskyEmbedImages.swift
[661/678] Compiling ATProtoKit AppBskyEmbedRecord.swift
[662/678] Compiling ATProtoKit AppBskyEmbedRecordWithMedia.swift
[663/678] Compiling ATProtoKit AppBskyEmbedVideo.swift
[664/678] Compiling ATProtoKit AppBskyFeedDefs.swift
[665/678] Compiling ATProtoKit AppBskyFeedDescribeFeedGenerator.swift
[666/678] Compiling ATProtoKit AppBskyFeedGenerator.swift
[667/678] Compiling ATProtoKit AppBskyFeedGetActorFeeds.swift
[668/678] Compiling ATProtoKit AppBskyFeedGetActorLikes.swift
[669/678] Compiling ATProtoKit AppBskyFeedGetAuthorFeed.swift
[670/678] Compiling ATProtoKit AppBskyFeedGetFeed.swift
[671/678] Compiling ATProtoKit AppBskyFeedGetFeedGenerator.swift
[672/678] Compiling ATProtoKit AppBskyFeedGetFeedGenerators.swift
[673/678] Compiling ATProtoKit AppBskyFeedGetFeedSkeleton.swift
[674/678] Compiling ATProtoKit AppBskyFeedGetLikes.swift
[675/678] Compiling ATProtoKit AppBskyFeedGetListFeed.swift
[676/678] Compiling ATProtoKit AppBskyFeedGetPostThread.swift
[677/678] Compiling ATProtoKit AppBskyFeedGetPosts.swift
[678/678] Compiling ATProtoKit AppBskyFeedGetQuotes.swift
BUILD FAILURE 6.1 wasm