Build Information
Failed to build WOWSQL, reference main (4ee453), with Swift 6.1 for Wasm on 18 Oct 2026 17:42:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WowSQL/wowsql-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/WowSQL/wowsql-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4ee453c Release v3.10.0 with apikey, 2FA, and storage contract fixes.
Cloned https://github.com/WowSQL/wowsql-swift.git
Revision (git rev-parse @):
4ee453c3941aaa29e90c069f5fc6c8fb92d1b423
SUCCESS checkout https://github.com/WowSQL/wowsql-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/WowSQL/wowsql-swift.git
https://github.com/WowSQL/wowsql-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/12] Compiling WOWSQL QueryBuilder.swift
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:246:20: error: type of expression is ambiguous without a type annotation
244 | /// Get first result.
245 | public func first<T: Codable>() async throws -> T? {
246 | return try await limit(1).execute().data.first
| `- error: type of expression is ambiguous without a type annotation
247 | }
248 |
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:246:20: warning: no 'async' operations occur within 'await' expression
244 | /// Get first result.
245 | public func first<T: Codable>() async throws -> T? {
246 | return try await limit(1).execute().data.first
| `- warning: no 'async' operations occur within 'await' expression
247 | }
248 |
/host/spi-builder-workspace/Sources/WOWSQL/QueryBuilder.swift:246:16: warning: no calls to throwing functions occur within 'try' expression
244 | /// Get first result.
245 | public func first<T: Codable>() async throws -> T? {
246 | return try await limit(1).execute().data.first
| `- warning: no calls to throwing functions occur within 'try' expression
247 | }
248 |
[4/12] Compiling WOWSQL Models.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 | /// Close the HTTP session.
455 | public func close() {
456 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 | }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 | extraHeaders: [String: String]? = nil
470 | ) async throws -> [String: AnyCodable] {
471 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
472 | request.httpMethod = method
473 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 | do {
492 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 | guard let httpResponse = response as? HTTPURLResponse else {
[5/12] Compiling WOWSQL ProjectAuthClient.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 | /// Close the HTTP session.
455 | public func close() {
456 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 | }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 | extraHeaders: [String: String]? = nil
470 | ) async throws -> [String: AnyCodable] {
471 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
472 | request.httpMethod = method
473 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 | do {
492 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 | guard let httpResponse = response as? HTTPURLResponse else {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Compiling WOWSQL Client.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 | do {
145 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
[7/12] Compiling WOWSQL Exceptions.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 | do {
145 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
[8/13] Emitting module WOWSQL
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:12:14: warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
10 |
11 | /// Base error for WOWSQL SDK
12 | public class WOWSQLError: Error, LocalizedError {
| `- warning: non-final class 'WOWSQLError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:15:16: warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
13 | public let message: String
14 | public let statusCode: Int?
15 | public let response: [String: Any]?
| `- warning: stored property 'response' of 'Sendable'-conforming class 'WOWSQLError' has non-sendable type '[String : Any]?'; this is an error in the Swift 6 language mode
16 |
17 | public var errorDescription: String? {
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:32:14: warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
30 |
31 | /// Authentication error (401/403)
32 | public class AuthenticationError: WOWSQLError {
| `- warning: non-final class 'AuthenticationError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
33 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
34 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:41:14: warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
39 |
40 | /// Not found error (404)
41 | public class NotFoundError: WOWSQLError {
| `- warning: non-final class 'NotFoundError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
42 | public init(_ message: String, response: [String: Any]? = nil) {
43 | super.init(message, statusCode: 404, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:50:14: warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
48 |
49 | /// Rate limit error (429)
50 | public class RateLimitError: WOWSQLError {
| `- warning: non-final class 'RateLimitError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
51 | public init(_ message: String, response: [String: Any]? = nil) {
52 | super.init(message, statusCode: 429, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:59:14: warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
57 |
58 | /// Network error
59 | public class NetworkError: WOWSQLError {
| `- warning: non-final class 'NetworkError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
60 | public init(_ message: String, underlyingError: Error? = nil) {
61 | super.init(message)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:68:14: warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
66 |
67 | /// Storage error
68 | public class StorageError: WOWSQLError {
| `- warning: non-final class 'StorageError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
69 | public override init(_ message: String, statusCode: Int? = nil, response: [String: Any]? = nil) {
70 | super.init(message, statusCode: statusCode, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:77:14: warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
75 |
76 | /// Storage limit exceeded error (413)
77 | public class StorageLimitExceededError: StorageError {
| `- warning: non-final class 'StorageLimitExceededError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
78 | public let requiredBytes: Int64
79 | public let availableBytes: Int64
/host/spi-builder-workspace/Sources/WOWSQL/Exceptions.swift:91:14: warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
89 |
90 | /// Schema permission error (403) - requires service role key
91 | public class SchemaPermissionError: WOWSQLError {
| `- warning: non-final class 'SchemaPermissionError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
92 | public init(_ message: String = "Schema operations require a SERVICE ROLE key.", response: [String: Any]? = nil) {
93 | super.init(message, statusCode: 403, response: response)
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:310:67: error: cannot find type 'URLRequest' in scope
308 | }
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
311 | var request = URLRequest(url: url)
312 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | }
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | guard let httpResponse = response as? HTTPURLResponse else {
345 | throw NetworkError("Invalid response type")
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
[9/13] Compiling WOWSQL Storage.swift
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:310:67: error: cannot find type 'URLRequest' in scope
308 | }
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
311 | var request = URLRequest(url: url)
312 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | }
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | guard let httpResponse = response as? HTTPURLResponse else {
345 | throw NetworkError("Invalid response type")
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/WOWSQL/Storage.swift:83:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
81 | self.timeout = timeout
82 |
83 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:86:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
86 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
87 | }
88 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:117:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 | let url = self.buildUrl("/api/v1/storage/projects/\(projectSlug)/buckets")
116 | let request = try buildRequest(url: url, method: "GET")
117 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 | try checkResponse(response: response, data: data)
119 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:176:23: error: cannot find 'URLRequest' in scope
174 |
175 | let url = URL(string: urlString)!
176 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
177 | request.httpMethod = "POST"
178 | request.setValue(apiKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:193:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
191 | request.httpBody = body
192 |
193 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
194 | try checkResponse(response: response, data: data)
195 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:236:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
234 | let url = URL(string: urlString)!
235 | let request = try buildRequest(url: url, method: "GET")
236 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
237 | try checkResponse(response: response, data: data)
238 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:255:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
253 | let url = buildUrl("/api/v1/storage/projects/\(projectSlug)/files/\(bucketName)/\(filePath)")
254 | let request = try buildRequest(url: url, method: "GET")
255 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
256 | try checkResponse(response: response, data: data)
257 | return data
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:301:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
299 | /// Close the HTTP session.
300 | public func close() {
301 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
302 | }
303 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:311:23: error: cannot find 'URLRequest' in scope
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
311 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
312 | request.httpMethod = method
313 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:333:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
331 | }
332 |
333 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
334 | try checkResponse(response: response, data: data)
335 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
344 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
345 | throw NetworkError("Invalid response type")
346 | }
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
344 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | throw NetworkError("Invalid response type")
346 | }
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/WOWSQL/Storage.swift:348:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
346 | }
347 |
348 | if !(200...299).contains(httpResponse.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 | let errorDict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
350 | let message = errorDict?["detail"] as? String
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:353:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | ?? errorDict?["error"] as? String
352 | ?? errorDict?["message"] as? String
353 | ?? "Request failed with status \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 |
355 | switch httpResponse.statusCode {
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:355:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
353 | ?? "Request failed with status \(httpResponse.statusCode)"
354 |
355 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
356 | case 401, 403:
357 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:357:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
355 | switch httpResponse.statusCode {
356 | case 401, 403:
357 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
358 | case 404:
359 | throw NotFoundError(message, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:365:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 | throw RateLimitError(message, response: errorDict)
364 | default:
365 | throw StorageError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 | }
[10/13] Compiling WOWSQL Version.swift
[11/13] Compiling WOWSQL Realtime.swift
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:29: error: cannot infer contextual base in reference to member 'goingAway'
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:48: error: 'nil' requires a contextual type
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:71:21: error: cannot infer contextual base in reference to member 'string'
69 | guard let data = try? JSONSerialization.data(withJSONObject: obj),
70 | let text = String(data: data, encoding: .utf8) else { return }
71 | task?.send(.string(text)) { _ in }
| `- error: cannot infer contextual base in reference to member 'string'
72 | }
73 |
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:88:37: error: cannot infer type of closure parameter 'result' without a type annotation
86 |
87 | private func listen() {
88 | task?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
89 | guard let self else { return }
90 | switch result {
[12/13] Compiling WOWSQL Schema.swift
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:73:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
71 | self.timeout = timeout
72 |
73 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:76:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
76 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | }
78 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:113:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 | urlRequest.httpBody = try JSONEncoder().encode(request)
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
116 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:149:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | urlRequest.httpBody = try JSONEncoder().encode(request)
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:150:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
152 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:173:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 | urlRequest.httpBody = try JSONEncoder().encode(["sql": sql])
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:174:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
176 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:272:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
270 | /// Close the HTTP session.
271 | public func close() {
272 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
273 | }
274 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:282:23: error: cannot find 'URLRequest' in scope
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
282 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
283 | request.httpMethod = method
284 | request.setValue(serviceKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:302:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
300 | }
301 |
302 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
303 |
304 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:304:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 | let (data, response) = try await session.data(for: urlRequest)
303 |
304 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | try checkResponse(statusCode: statusCode, data: data)
306 |
[13/13] Compiling WOWSQL WOWSQL.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:8209621f35c5a12749e7df75bbcb99eccb508d0196da99f6ac3bcf5f4827df31
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/11] Emitting module WOWSQL
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:310:67: error: cannot find type 'URLRequest' in scope
308 | }
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
311 | var request = URLRequest(url: url)
312 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | }
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | guard let httpResponse = response as? HTTPURLResponse else {
345 | throw NetworkError("Invalid response type")
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
[3/12] Compiling WOWSQL Schema.swift
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | private let serviceKey: String
33 | private let timeout: TimeInterval
34 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 | /// Initialize schema management client.
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/WOWSQL/Schema.swift:281:67: error: cannot find type 'URLRequest' in scope
279 | }
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
282 | var request = URLRequest(url: url)
283 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:73:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
71 | self.timeout = timeout
72 |
73 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:76:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
74 | config.timeoutIntervalForRequest = timeout
75 | config.timeoutIntervalForResource = timeout
76 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
77 | }
78 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:113:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
111 | urlRequest.httpBody = try JSONEncoder().encode(request)
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:114:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
112 |
113 | let (data, response) = try await session.data(for: urlRequest)
114 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
115 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
116 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:149:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
147 | urlRequest.httpBody = try JSONEncoder().encode(request)
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:150:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
148 |
149 | let (data, response) = try await session.data(for: urlRequest)
150 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
151 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
152 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:173:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
171 | urlRequest.httpBody = try JSONEncoder().encode(["sql": sql])
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:174:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |
173 | let (data, response) = try await session.data(for: urlRequest)
174 | try checkResponse(statusCode: (response as? HTTPURLResponse)?.statusCode ?? 500, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 | return try JSONDecoder().decode(SchemaResponse.self, from: data)
176 | }
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:272:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
270 | /// Close the HTTP session.
271 | public func close() {
272 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
273 | }
274 |
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:282:23: error: cannot find 'URLRequest' in scope
280 |
281 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
282 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
283 | request.httpMethod = method
284 | request.setValue(serviceKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:302:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
300 | }
301 |
302 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
303 |
304 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
/host/spi-builder-workspace/Sources/WOWSQL/Schema.swift:304:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
302 | let (data, response) = try await session.data(for: urlRequest)
303 |
304 | let statusCode = (response as? HTTPURLResponse)?.statusCode ?? 500
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
305 | try checkResponse(statusCode: statusCode, data: data)
306 |
[4/12] Compiling WOWSQL Realtime.swift
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:30:23: error: cannot find type 'URLSessionWebSocketTask' in scope
28 | let projectUrl: String
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
| `- error: cannot find type 'URLSessionWebSocketTask' in scope
31 | private let session = URLSession(configuration: .default)
32 | private var manualClose = false
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:31:54: error: cannot infer contextual base in reference to member 'default'
29 | let apiKey: String
30 | private var task: URLSessionWebSocketTask?
31 | private let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
32 | private var manualClose = false
33 | private var subs: [(schema: String, table: String, event: String, cb: (RealtimeChange) -> Void)] = []
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:29: error: cannot infer contextual base in reference to member 'goingAway'
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: cannot infer contextual base in reference to member 'goingAway'
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:64:48: error: 'nil' requires a contextual type
62 | public func disconnect() {
63 | manualClose = true
64 | task?.cancel(with: .goingAway, reason: nil)
| `- error: 'nil' requires a contextual type
65 | task = nil
66 | }
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:71:21: error: cannot infer contextual base in reference to member 'string'
69 | guard let data = try? JSONSerialization.data(withJSONObject: obj),
70 | let text = String(data: data, encoding: .utf8) else { return }
71 | task?.send(.string(text)) { _ in }
| `- error: cannot infer contextual base in reference to member 'string'
72 | }
73 |
/host/spi-builder-workspace/Sources/WOWSQL/Realtime.swift:88:37: error: cannot infer type of closure parameter 'result' without a type annotation
86 |
87 | private func listen() {
88 | task?.receive { [weak self] result in
| `- error: cannot infer type of closure parameter 'result' without a type annotation
89 | guard let self else { return }
90 | switch result {
[5/12] Compiling WOWSQL Storage.swift
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:32:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | private let apiKey: String
31 | private let timeout: TimeInterval
32 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 |
34 | /// Initialize the storage client.
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/WOWSQL/Storage.swift:310:67: error: cannot find type 'URLRequest' in scope
308 | }
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
311 | var request = URLRequest(url: url)
312 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:343:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 | }
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
344 | guard let httpResponse = response as? HTTPURLResponse else {
345 | throw NetworkError("Invalid response type")
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/WOWSQL/Storage.swift:83:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
81 | self.timeout = timeout
82 |
83 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:86:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
84 | config.timeoutIntervalForRequest = timeout
85 | config.timeoutIntervalForResource = timeout
86 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
87 | }
88 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:117:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
115 | let url = self.buildUrl("/api/v1/storage/projects/\(projectSlug)/buckets")
116 | let request = try buildRequest(url: url, method: "GET")
117 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
118 | try checkResponse(response: response, data: data)
119 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:176:23: error: cannot find 'URLRequest' in scope
174 |
175 | let url = URL(string: urlString)!
176 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
177 | request.httpMethod = "POST"
178 | request.setValue(apiKey, forHTTPHeaderField: "apikey")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:193:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
191 | request.httpBody = body
192 |
193 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
194 | try checkResponse(response: response, data: data)
195 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:236:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
234 | let url = URL(string: urlString)!
235 | let request = try buildRequest(url: url, method: "GET")
236 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
237 | try checkResponse(response: response, data: data)
238 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:255:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
253 | let url = buildUrl("/api/v1/storage/projects/\(projectSlug)/files/\(bucketName)/\(filePath)")
254 | let request = try buildRequest(url: url, method: "GET")
255 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
256 | try checkResponse(response: response, data: data)
257 | return data
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:301:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
299 | /// Close the HTTP session.
300 | public func close() {
301 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
302 | }
303 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:311:23: error: cannot find 'URLRequest' in scope
309 |
310 | private func buildRequest(url: URL, method: String) throws -> URLRequest {
311 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
312 | request.httpMethod = method
313 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:333:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
331 | }
332 |
333 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
334 | try checkResponse(response: response, data: data)
335 |
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
344 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
345 | throw NetworkError("Invalid response type")
346 | }
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:344:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |
343 | private func checkResponse(response: URLResponse, data: Data) throws {
344 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
345 | throw NetworkError("Invalid response type")
346 | }
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/WOWSQL/Storage.swift:348:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
346 | }
347 |
348 | if !(200...299).contains(httpResponse.statusCode) {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
349 | let errorDict = try? JSONSerialization.jsonObject(with: data) as? [String: Any]
350 | let message = errorDict?["detail"] as? String
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:353:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
351 | ?? errorDict?["error"] as? String
352 | ?? errorDict?["message"] as? String
353 | ?? "Request failed with status \(httpResponse.statusCode)"
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
354 |
355 | switch httpResponse.statusCode {
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:355:33: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
353 | ?? "Request failed with status \(httpResponse.statusCode)"
354 |
355 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
356 | case 401, 403:
357 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:357:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
355 | switch httpResponse.statusCode {
356 | case 401, 403:
357 | throw AuthenticationError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
358 | case 404:
359 | throw NotFoundError(message, response: errorDict)
/host/spi-builder-workspace/Sources/WOWSQL/Storage.swift:365:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
363 | throw RateLimitError(message, response: errorDict)
364 | default:
365 | throw StorageError(message, statusCode: httpResponse.statusCode, response: errorDict)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
366 | }
367 | }
[6/12] Compiling WOWSQL Version.swift
[7/12] Compiling WOWSQL WOWSQL.swift
[8/12] Compiling WOWSQL QueryBuilder.swift
[9/12] Compiling WOWSQL Models.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 | /// Close the HTTP session.
455 | public func close() {
456 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 | }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 | extraHeaders: [String: String]? = nil
470 | ) async throws -> [String: AnyCodable] {
471 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
472 | request.httpMethod = method
473 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 | do {
492 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 | guard let httpResponse = response as? HTTPURLResponse else {
[10/12] Compiling WOWSQL ProjectAuthClient.swift
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | private let apiKey: String?
29 | private let timeout: TimeInterval
30 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | private let storage: TokenStorage
32 | private var _accessToken: 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/WOWSQL/ProjectAuthClient.swift:63:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
61 | self.storage = tokenStorage ?? MemoryTokenStorage()
62 |
63 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:66:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
64 | config.timeoutIntervalForRequest = timeout
65 | config.timeoutIntervalForResource = timeout
66 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
67 |
68 | self._accessToken = storage.getAccessToken()
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:456:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
454 | /// Close the HTTP session.
455 | public func close() {
456 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
457 | }
458 |
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:471:23: error: cannot find 'URLRequest' in scope
469 | extraHeaders: [String: String]? = nil
470 | ) async throws -> [String: AnyCodable] {
471 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
472 | request.httpMethod = method
473 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/ProjectAuthClient.swift:492:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
490 |
491 | do {
492 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
493 |
494 | guard let httpResponse = response as? HTTPURLResponse else {
[11/12] Compiling WOWSQL Client.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 | do {
145 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 | guard let httpResponse = response as? HTTPURLResponse else {
[12/12] Compiling WOWSQL Exceptions.swift
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:31:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | private let apiKey: String
30 | private let timeout: TimeInterval
31 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | /// Initialize the client for DATABASE OPERATIONS.
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/WOWSQL/Client.swift:125:103: error: cannot find type 'URLRequest' in scope
123 | // MARK: - Internal Request Methods
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
126 | var request = URLRequest(url: url)
127 | request.httpMethod = method
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:78:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
76 | self.timeout = timeout
77 |
78 | let config = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:81:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
79 | config.timeoutIntervalForRequest = timeout
80 | config.timeoutIntervalForResource = timeout
81 | self.session = URLSession(configuration: config)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
82 | }
83 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:120:17: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 | /// Close the client session (invalidates all outstanding tasks).
119 | public func close() {
120 | session.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 | }
122 |
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:126:23: error: cannot find 'URLRequest' in scope
124 |
125 | internal func buildRequest(url: URL, method: String, body: [String: AnyCodable]? = nil) throws -> URLRequest {
126 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
127 | request.httpMethod = method
128 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/WOWSQL/Client.swift:145:54: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
143 |
144 | do {
145 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
146 |
147 | guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.1 wasm