Build Information
Failed to build Swiki, reference 1.0.6 (44ff74), with Swift 6.3 for Wasm on 16 Jul 2026 06:15:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[191/285] Compiling Swiki SwikiAbuseRequestReviewPayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[192/285] Compiling Swiki SwikiAbuseRequestSpoilerPayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[193/285] Compiling Swiki SwikiClubUpdatePayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[194/285] Compiling Swiki SwikiCommentCreatePayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[195/285] Compiling Swiki SwikiCommentUpdatePayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[196/285] Compiling Swiki EpisodeNotificationPayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[197/285] Compiling Swiki SwikiFavoritesLinkedTypeCreate.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[198/285] Compiling Swiki SwikiMessageCreatePayload.swift
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:262:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
260 | )
261 |
262 | let (initialData, initialResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 | do {
264 | (initialData, initialResponse) = try await perform(request: initialRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:281:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
282 | logFailure(
283 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:281:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
279 | }
280 |
281 | guard let initialHTTPResponse = initialResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
282 | logFailure(
283 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:297:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
295 | }
296 |
297 | if initialHTTPResponse.statusCode == 401,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
298 | let oauthClient,
299 | try await oauthClient.refreshTokenIfPossible() {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:309:53: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
307 | url: url,
308 | attempt: 1,
309 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
310 | requestBodyBytes: bodyData?.count,
311 | responseBodyBytes: initialData.count,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:333:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
331 | )
332 |
333 | let (retryData, retryResponse): (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
334 | do {
335 | (retryData, retryResponse) = try await perform(request: retryRequest)
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/Swiki/HTTP/SwikiHTTPTransport.swift:352:57: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
353 | logFailure(
354 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:352:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 | }
351 |
352 | guard let retryHTTPResponse = retryResponse as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
353 | logFailure(
354 | requestID: requestID,
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/Swiki/HTTP/SwikiHTTPTransport.swift:368:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 |
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:370:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
368 | guard (200...299).contains(retryHTTPResponse.statusCode) else {
369 | let responseBody = retryData.isEmpty ? nil : String(data: retryData, encoding: .utf8)
370 | let error = SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
371 | logFailure(
372 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:377:51: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
375 | url: url,
376 | attempt: 2,
377 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
378 | bodyData: bodyData,
379 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:383:72: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
381 | error: error
382 | )
383 | throw SwikiClientError.badStatusCode(retryHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
384 | }
385 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:392:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
390 | url: url,
391 | attempt: 2,
392 | statusCode: retryHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
393 | bodyData: bodyData,
394 | responseData: retryData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:400:56: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
398 | }
399 |
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:402:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
400 | guard (200...299).contains(initialHTTPResponse.statusCode) else {
401 | let responseBody = initialData.isEmpty ? nil : String(data: initialData, encoding: .utf8)
402 | let error = SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
403 | logFailure(
404 | requestID: requestID,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:409:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
407 | url: url,
408 | attempt: 1,
409 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
410 | bodyData: bodyData,
411 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:415:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
413 | error: error
414 | )
415 | throw SwikiClientError.badStatusCode(initialHTTPResponse.statusCode, responseBody)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
416 | }
417 |
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:424:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
422 | url: url,
423 | attempt: 1,
424 | statusCode: initialHTTPResponse.statusCode,
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
425 | bodyData: bodyData,
426 | responseData: initialData,
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:439:23: error: cannot find 'URLRequest' in scope
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
439 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
440 | request.httpMethod = method.rawValue
441 | request.setValue(configuration.userAgent, forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:475:40: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
475 | try await self.session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
476 | }
477 | }
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:479:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
477 | }
478 |
479 | return try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
480 | }
481 |
[199/285] Compiling Swiki SwikiV1CharactersClient.swift
[200/285] Compiling Swiki SwikiV1ClubsClient.swift
[201/285] Compiling Swiki SwikiV1CommentsClient.swift
[202/285] Compiling Swiki SwikiV1ConstantsClient.swift
[203/285] Compiling Swiki SwikiV1DialogsClient.swift
[204/285] Compiling Swiki SwikiV1FavoritesClient.swift
[205/285] Compiling Swiki SwikiV1ForumsClient.swift
[211/285] Compiling Swiki SwikiV1BansClient.swift
[212/285] Compiling Swiki SwikiV1CalendarsClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[213/285] Emitting module Swiki
/host/spi-builder-workspace/Sources/Swiki/Auth/SwikiOAuthClient.swift:10:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public let baseURL: URL
9 |
10 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | private let tokenStore: (any SwikiOAuthTokenStore)?
12 | private var token: SwikiOAuthToken?
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/Swiki/Auth/SwikiOAuthClient.swift:21:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | baseURL: URL = SwikiConstant.baseDomen,
20 | tokenStore: (any SwikiOAuthTokenStore)? = nil,
21 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | ) {
23 | self.credentials = credentials
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/Swiki/Auth/SwikiOAuthClient.swift:21:32: error: value of type '_' expected to be instance of class or class-constrained type
19 | baseURL: URL = SwikiConstant.baseDomen,
20 | tokenStore: (any SwikiOAuthTokenStore)? = nil,
21 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
22 | ) {
23 | self.credentials = credentials
/host/spi-builder-workspace/Sources/Swiki/Auth/SwikiOAuthClient.swift:21:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | baseURL: URL = SwikiConstant.baseDomen,
20 | tokenStore: (any SwikiOAuthTokenStore)? = nil,
21 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | ) {
23 | self.credentials = credentials
/host/spi-builder-workspace/Sources/Swiki/Auth/SwikiOAuthClient.swift:191:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
189 | credentials: SwikiOAuthCredentials,
190 | baseURL: URL,
191 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | grantType: String,
193 | extra: [String: String]
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | private let oauthClient: SwikiOAuthClient?
62 |
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/Swiki/HTTP/SwikiHTTPTransport.swift:65:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 | init(
64 | configuration: SwikiConfiguration,
65 | session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | oauthClient: SwikiOAuthClient? = nil
67 | ) {
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/Swiki/HTTP/SwikiHTTPTransport.swift:209:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | contentType: String? = nil,
208 | bodyData: Data?
209 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
210 | let fullPath = makePath(path: path, id: id, route: route)
211 | guard let url = makeURL(version: version, path: fullPath, query: query) else {
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/Swiki/HTTP/SwikiHTTPTransport.swift:228:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
226 | bodyData: Data?,
227 | operationName: String?
228 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 | try await executeAuthenticated(
230 | url: configuration.graphQLURL,
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/Swiki/HTTP/SwikiHTTPTransport.swift:244:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | bodyData: Data?,
243 | kind: RequestKind
244 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
245 | let requestID = String(UUID().uuidString.prefix(8))
246 | let initialRequest = try await buildRequest(
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/Swiki/HTTP/SwikiHTTPTransport.swift:438:23: error: cannot find type 'URLRequest' in scope
436 | contentType: String? = nil,
437 | bodyData: Data?
438 | ) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
439 | var request = URLRequest(url: url)
440 | request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:35: error: cannot find type 'URLRequest' in scope
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
/host/spi-builder-workspace/Sources/Swiki/HTTP/SwikiHTTPTransport.swift:472:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
470 |
471 | @SwikiActor
472 | private func perform(request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
473 | if configuration.isRpsRpmRestrictionsEnabled {
474 | return try await SwikiActor.shared.submit {
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/Swiki/HTTP/SwikiHTTPTransport.swift:60:17: error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
58 |
59 | private let configuration: SwikiConfiguration
60 | private let session: URLSession
| `- error: stored property 'session' of 'Sendable'-conforming class 'SwikiHTTPTransport' has non-Sendable type 'AnyObject'
61 | private let oauthClient: SwikiOAuthClient?
62 |
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[214/286] Wrapping AST for ArgumentParser for debugging
[216/289] Compiling Swiki SwikiV1ClubsQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[217/289] Compiling Swiki SwikiV1CommentsQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[218/289] Compiling Swiki SwikiV1HistoryQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[219/289] Compiling Swiki SwikiV1MangasQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[220/289] Compiling Swiki SwikiV1PeopleQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[221/289] Compiling Swiki SwikiV1TopicsQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[222/289] Compiling Swiki SwikiV1UsersQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[223/289] Compiling Swiki SwikiV2EpisodeNotificationsQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[224/289] Compiling Swiki SwikiV2UserRatesQuery.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[225/289] Compiling Swiki Swiki.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[226/289] Compiling Swiki SwikiActor.swift
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
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/Swiki/Swiki.swift:27:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
/host/spi-builder-workspace/Sources/Swiki/Swiki.swift:27:32: error: value of type '_' expected to be instance of class or class-constrained type
25 | public init(
26 | configuration: SwikiConfiguration,
27 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
28 | ) {
29 | let oauthClient: SwikiOAuthClient?
[227/289] Compiling Swiki SwikiMessageMarkReadPayload 2.swift
[228/289] Compiling Swiki SwikiMessageMarkReadPayload.swift
[229/289] Compiling Swiki SwikiMessageUpdatePayload.swift
[230/289] Compiling Swiki SwikiMessageUpdatePayloadBody.swift
[231/289] Compiling Swiki SwikiReviewCreatePayload.swift
[232/289] Compiling Swiki SwikiReviewCreatePayloadBody.swift
[233/289] Compiling Swiki SwikiReviewOpinion.swift
[234/289] Compiling Swiki SwikiStyleCreatePayload.swift
[235/289] Compiling Swiki SwikiStylePreviewPayload.swift
[236/289] Compiling Swiki SwikiStyleUpdatePayload.swift
[237/289] Compiling Swiki SwikiTopicCreatePayload.swift
[247/289] Compiling Swiki SwikiV1FriendsClient.swift
[248/289] Compiling Swiki SwikiV1GenresClient.swift
[249/289] Compiling Swiki SwikiV1IgnoresClient.swift
[250/289] Compiling Swiki SwikiV1MangasClient.swift
[251/289] Compiling Swiki SwikiV1MessagesClient.swift
[252/289] Compiling Swiki SwikiV1PeopleClient.swift
[253/289] Compiling Swiki SwikiV1PublishersClient.swift
[254/289] Compiling Swiki SwikiV1RanobeClient.swift
[255/289] Compiling Swiki SwikiV1ReviewsClient.swift
[256/289] Compiling Swiki SwikiV1StatsClient.swift
[257/289] Compiling Swiki SwikiV1StudiosClient.swift
[258/289] Compiling Swiki SwikiV1StylesClient.swift
[259/289] Compiling Swiki SwikiV1TopicIgnoresClient.swift
[260/289] Compiling Swiki SwikiV1TopicsClient.swift
[261/289] Compiling Swiki SwikiV1UserImagesClient.swift
[262/289] Compiling Swiki SwikiTopicUpdatePayload.swift
[263/289] Compiling Swiki SwikiUserImagePayload.swift
[264/289] Compiling Swiki SwikiUserRatesCreatePayload.swift
[265/289] Compiling Swiki SwikiUserRatesCreatePayloadBody.swift
[266/289] Compiling Swiki SwikiVideosCreatePayload.swift
[267/289] Compiling Swiki Limits.swift
[268/289] Compiling Swiki SwikiQueryConvertible.swift
[269/289] Compiling Swiki SwikiQueryFilter.swift
[270/289] Compiling Swiki SwikiV1AchievementsQuery.swift
[271/289] Compiling Swiki SwikiV1AnimesQuery.swift
[272/289] Compiling Swiki SwikiV1CharactersQuery.swift
[273/289] Compiling Swiki SwikiV1UserRatesClient.swift
[274/289] Compiling Swiki SwikiV1UsersClient.swift
[275/289] Compiling Swiki SwikiV1VideosClient.swift
[276/289] Compiling Swiki SwikiV1Client.swift
[277/289] Compiling Swiki SwikiV2AbuseRequestsClient.swift
[278/289] Compiling Swiki SwikiV2EpisodeNotificationsClient.swift
[279/289] Compiling Swiki SwikiV2TopicIgnoreClient.swift
[280/289] Compiling Swiki SwikiV2UserIgnoreClient.swift
[281/289] Compiling Swiki SwikiV2UserRatesClient.swift
[282/289] Compiling Swiki SwikiV2Client.swift
[283/289] Compiling Swiki SwikiConfiguration.swift
[284/289] Emitting module SwikiGraphQLOperationGenerator
BUILD FAILURE 6.3 wasm