The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NotionSwift, reference 0.9.0 (fdaf1f), with Swift 6.1 for Wasm on 29 May 2025 16:33:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[28/64] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[29/64] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[30/64] Compiling NotionSwift URLBuilder.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[31/64] Compiling NotionSwift NotionClient+Blocks.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[32/64] Compiling NotionSwift NotionClient+Database.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[33/64] Compiling NotionSwift AccessKeyProvider.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[34/64] Compiling NotionSwift EntityIdentifier.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[35/64] Compiling NotionSwift Logger.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[36/64] Compiling NotionSwift Types.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[37/64] Compiling NotionSwift Environment.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[38/64] Compiling NotionSwift Block.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[39/64] Compiling NotionSwift BlockColor.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[40/64] Compiling NotionSwift BlockType+Builders.swift
/host/spi-builder-workspace/Sources/NotionSwift/Environment.swift:10:16: warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 | public struct NotionSwiftEnvironment {
10 |     static var log = Logger(handler: EmptyLogHandler(), level: .info)
   |                |- warning: static property 'log' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'log' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'log' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static var logHandler: LoggerHandler {
12 |         get { log.handler }
[41/64] Compiling NotionSwift Mention.swift
[42/64] Compiling NotionSwift NotionLink.swift
[43/64] Compiling NotionSwift Page.swift
[44/64] Compiling NotionSwift PageParentType.swift
[45/64] Compiling NotionSwift PageProperty.swift
[46/64] Compiling NotionSwift PartialUser.swift
[47/64] Compiling NotionSwift BaseQueryParams.swift
[48/64] Compiling NotionSwift DatabaseCreateRequest.swift
[49/64] Compiling NotionSwift DatabaseParent.swift
[50/64] Compiling NotionSwift DatabaseProperty.swift
[51/64] Compiling NotionSwift DatabasePropertyType.swift
[52/64] Compiling NotionSwift DateRange.swift
[53/64] Compiling NotionSwift DateValue.swift
[54/64] Compiling NotionSwift ErrorResponse.swift
[55/64] Compiling NotionSwift FileFile.swift
[56/64] Compiling NotionSwift IconFile.swift
[57/64] Compiling NotionSwift BlockType+Values.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[58/64] Compiling NotionSwift BlockType.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[59/64] Compiling NotionSwift ReadBlock.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[60/64] Compiling NotionSwift UpdateBlock.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[61/64] Compiling NotionSwift WriteBlock+Builders.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[62/64] Compiling NotionSwift WriteBlock.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[63/64] Compiling NotionSwift CoverFile.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
[64/64] Compiling NotionSwift Database.swift
/host/spi-builder-workspace/Sources/NotionSwift/Models/Blocks/BlockType+Values.swift:17:27: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
  7 | public extension BlockType {
  8 |
  9 |     struct ChildrenBlockValue {
    |            `- note: consider making struct 'ChildrenBlockValue' conform to the 'Sendable' protocol
 10 |         /// field used only for encoding for adding/appending new blocks
 11 |         public let children: [BlockType]?
    :
 15 |         }
 16 |
 17 |         public static let none = ChildrenBlockValue(children: nil)
    |                           |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'BlockType.ChildrenBlockValue' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |     }
 19 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/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/56] Emitting module NotionSwift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[3/63] Compiling NotionSwift NotionClient+Pages.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[4/63] Compiling NotionSwift NotionClient+Search.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[5/63] Compiling NotionSwift NotionClient+Users.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[6/63] Compiling NotionSwift NotionClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[7/63] Compiling NotionSwift NotionClientError.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[8/63] Compiling NotionSwift NotionClientType+Combine.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[9/63] Compiling NotionSwift NotionClientType.swift
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/NotionClient.swift:19:58: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
17 |     public init(
18 |         accessKeyProvider: AccessKeyProvider,
19 |         sessionConfiguration: URLSessionConfiguration = .default
   |                                                          `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
20 |     ) {
21 |         self.accessKeyProvider = accessKeyProvider
[10/63] Compiling NotionSwift AccessKeyProvider.swift
[11/63] Compiling NotionSwift EntityIdentifier.swift
[12/63] Compiling NotionSwift Logger.swift
[13/63] Compiling NotionSwift Types.swift
[14/63] Compiling NotionSwift Environment.swift
[15/63] Compiling NotionSwift Block.swift
[16/63] Compiling NotionSwift BlockColor.swift
[17/63] Compiling NotionSwift BlockType+Builders.swift
[18/63] Compiling NotionSwift PageCreateRequest.swift
[19/63] Compiling NotionSwift PageUpdateRequest.swift
[20/63] Compiling NotionSwift SearchRequest.swift
[21/63] Compiling NotionSwift ListResponse.swift
[22/63] Compiling NotionSwift SearchResponse.swift
[23/63] Compiling NotionSwift RichText+extensions.swift
[24/63] Compiling NotionSwift RichText.swift
[25/63] Compiling NotionSwift DatabaseQueryParams.swift
[26/63] Compiling NotionSwift DatabaseSort.swift
[27/63] Compiling NotionSwift DatabaseUpdateRequest.swift
[28/63] Compiling NotionSwift CompountFilterType.swift
[29/63] Compiling NotionSwift DatabaseFilter.swift
[30/63] Compiling NotionSwift DatabaseFilterType.swift
[31/63] Compiling NotionSwift DatabasePropertyFilter+Encodable.swift
[32/63] Compiling NotionSwift DatabasePropertyFilter.swift
[33/63] Compiling NotionSwift DatabaseParent.swift
[34/63] Compiling NotionSwift DatabaseProperty.swift
[35/63] Compiling NotionSwift DatabasePropertyType.swift
[36/63] Compiling NotionSwift DateRange.swift
[37/63] Compiling NotionSwift DateValue.swift
[38/63] Compiling NotionSwift ErrorResponse.swift
[39/63] Compiling NotionSwift FileFile.swift
[40/63] Compiling NotionSwift IconFile.swift
[41/63] Compiling NotionSwift Mention.swift
[42/63] Compiling NotionSwift NotionLink.swift
[43/63] Compiling NotionSwift Page.swift
[44/63] Compiling NotionSwift PageParentType.swift
[45/63] Compiling NotionSwift PageProperty.swift
[46/63] Compiling NotionSwift PartialUser.swift
[47/63] Compiling NotionSwift BaseQueryParams.swift
[48/63] Compiling NotionSwift DatabaseCreateRequest.swift
[49/63] Compiling NotionSwift BlockType+Values.swift
[50/63] Compiling NotionSwift BlockType.swift
[51/63] Compiling NotionSwift ReadBlock.swift
[52/63] Compiling NotionSwift UpdateBlock.swift
[53/63] Compiling NotionSwift WriteBlock+Builders.swift
[54/63] Compiling NotionSwift WriteBlock.swift
[55/63] Compiling NotionSwift CoverFile.swift
[56/63] Compiling NotionSwift Database.swift
[57/63] Compiling NotionSwift User.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[58/63] Compiling NotionSwift DateFormatter+ISO8601Full.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[59/63] Compiling NotionSwift NetworkClient.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[60/63] Compiling NotionSwift NetworkClientHelpers.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[61/63] Compiling NotionSwift URLBuilder.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[62/63] Compiling NotionSwift NotionClient+Blocks.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
[63/63] Compiling NotionSwift NotionClient+Database.swift
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:63:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let encoder: JSONEncoder
 62 |     private let decoder: JSONDecoder
 63 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
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/NotionSwift/Network/NetworkClient.swift:65:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 63 |     private let session: URLSession
 64 |
 65 |     public init(sessionConfiguration: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 66 |         encoder = JSONEncoder()
 67 |         encoder.dateEncodingStrategy = .formatted(DateFormatter.iso8601Full)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:179:10: error: cannot find type 'URLRequest' in scope
177 |         url: URL,
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
    |          `- error: cannot find type 'URLRequest' in scope
180 |         var request = URLRequest(url: url)
181 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:190:18: error: cannot find type 'URLRequest' in scope
188 |
189 |     private func executeRequest<T: Decodable>(
190 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
191 |         completed: @escaping (Result<T, NotionClientError>) -> Void
192 |     ) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:72:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 70 |         decoder.dateDecodingStrategy = .formatted(DateFormatter.iso8601Full)
 71 |
 72 |         session = .init(configuration: sessionConfiguration)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 73 |     }
 74 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:81:45: error: cannot infer contextual base in reference to member 'GET'
 79 |     ) {
 80 |
 81 |         let request = buildRequest(method: .GET, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'GET'
 82 |         executeRequest(request: request, completed: completed)
 83 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:91:45: error: cannot infer contextual base in reference to member 'POST'
 89 |         completed: @escaping (Result<R, NotionClientError>) -> Void
 90 |     ) {
 91 |         var request = buildRequest(method: .POST, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'POST'
 92 |         let requestBody: Data
 93 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:113:45: error: cannot infer contextual base in reference to member 'PATCH'
111 |         completed: @escaping (Result<R, NotionClientError>) -> Void
112 |     ) {
113 |         var request = buildRequest(method: .PATCH, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'PATCH'
114 |         let requestBody: Data
115 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:155:45: error: cannot infer contextual base in reference to member 'DELETE'
153 |         completed: @escaping (Result<R, NotionClientError>) -> Void
154 |     ) {
155 |         var request = buildRequest(method: .DELETE, url: url, headers: headers)
    |                                             `- error: cannot infer contextual base in reference to member 'DELETE'
156 |         if let body = body {
157 |             let requestBody: Data
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:180:23: error: cannot find 'URLRequest' in scope
178 |         headers: Network.HTTPHeaders
179 |     ) -> URLRequest {
180 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
181 |         request.httpMethod = method.rawValue
182 |         for item in headers {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:214:13: error: cannot find 'DispatchQueue' in scope
212 |             }
213 |
214 |             DispatchQueue.main.async {
    |             `- error: cannot find 'DispatchQueue' in scope
215 |                 guard let completeResult = completeResult else {
216 |                     fatalError("Something is wrong, no result!")
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:194:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
192 |     ) {
193 |         Environment.log.debug("Request: \(request.httpMethod ?? "") \(request.url?.absoluteString ?? "")")
194 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
195 |             var completeResult: Result<T, NotionClientError>?
196 |
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClient.swift:197:84: error: argument type '_' expected to be an instance of a class or class-constrained type
195 |             var completeResult: Result<T, NotionClientError>?
196 |
197 |             if let error = NetworkClientHelpers.extractError(data: data, response: response, error: error) {
    |                                                                                    `- error: argument type '_' expected to be an instance of a class or class-constrained type
198 |                 completeResult = .failure(error)
199 |             } else if let data = data {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:11:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public enum NetworkClientHelpers {
11 |     public static func extractError(data: Data?, response: URLResponse?, error: Error?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |         if let error = error {
13 |             return .genericError(error)
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/NotionSwift/Network/NetworkClientHelpers.swift:19:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     }
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         guard let response = response as? HTTPURLResponse else {
21 |             return .unsupportedResponseError
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/NotionSwift/Network/NetworkClientHelpers.swift:20:39: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                       `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
21 |             return .unsupportedResponseError
22 |         }
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:20:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |
19 |     public static func extractError(data: Data?, response: URLResponse?) -> NotionClientError? {
20 |         guard let response = response as? HTTPURLResponse else {
   |                                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |             return .unsupportedResponseError
22 |         }
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/NotionSwift/Network/NetworkClientHelpers.swift:24:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
22 |         }
23 |
24 |         if (400..<503).contains(response.statusCode) {
   |                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
25 |             if let data = data {
26 |                 if let err = try? JSONDecoder().decode(ErrorResponse.self, from: data) {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:29:82: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
27 |                     return .apiError(status: err.status, code: err.code, message: err.message)
28 |                 } else {
29 |                     return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
/host/spi-builder-workspace/Sources/NotionSwift/Network/NetworkClientHelpers.swift:32:78: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
30 |                 }
31 |             } else {
32 |                 return .genericError(Network.Errors.HTTPError(code: response.statusCode))
   |                                                                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
33 |             }
34 |         }
BUILD FAILURE 6.1 wasm