The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NotionSwift, reference main (3dd240), with Swift 6.1 for Wasm on 29 May 2025 16:33:46 UTC.

Build Command

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

Build Log

    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 35 |         public static let strikethrough = Annotations(strikethrough: true)
 36 |         public static let underline = Annotations(underline: true)
/host/spi-builder-workspace/Sources/NotionSwift/Models/RichText.swift:35:27: warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
  6 |
  7 | public struct RichText {
  8 |     public struct Annotations: Equatable {
    |                   `- note: consider making struct 'Annotations' conform to the 'Sendable' protocol
  9 |         public let bold: Bool
 10 |         public let italic: Bool
    :
 33 |         public static let bold = Annotations(bold: true)
 34 |         public static let italic = Annotations(italic: true)
 35 |         public static let strikethrough = Annotations(strikethrough: true)
    |                           |- warning: static property 'strikethrough' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'strikethrough' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 36 |         public static let underline = Annotations(underline: true)
 37 |         public static let code = Annotations(code: true)
/host/spi-builder-workspace/Sources/NotionSwift/Models/RichText.swift:36:27: warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
  6 |
  7 | public struct RichText {
  8 |     public struct Annotations: Equatable {
    |                   `- note: consider making struct 'Annotations' conform to the 'Sendable' protocol
  9 |         public let bold: Bool
 10 |         public let italic: Bool
    :
 34 |         public static let italic = Annotations(italic: true)
 35 |         public static let strikethrough = Annotations(strikethrough: true)
 36 |         public static let underline = Annotations(underline: true)
    |                           |- warning: static property 'underline' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'underline' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |         public static let code = Annotations(code: true)
 38 |     }
/host/spi-builder-workspace/Sources/NotionSwift/Models/RichText.swift:37:27: warning: static property 'code' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
  6 |
  7 | public struct RichText {
  8 |     public struct Annotations: Equatable {
    |                   `- note: consider making struct 'Annotations' conform to the 'Sendable' protocol
  9 |         public let bold: Bool
 10 |         public let italic: Bool
    :
 35 |         public static let strikethrough = Annotations(strikethrough: true)
 36 |         public static let underline = Annotations(underline: true)
 37 |         public static let code = Annotations(code: true)
    |                           |- warning: static property 'code' is not concurrency-safe because non-'Sendable' type 'RichText.Annotations' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: add '@MainActor' to make static property 'code' part of global actor 'MainActor'
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     }
 39 |
[58/64] 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 |         }
[59/64] 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 |         }
[60/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 |         }
[61/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 |         }
[62/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 |         }
[63/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 |         }
[64/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 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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 DatabaseQueryParams.swift
[11/63] Compiling NotionSwift DatabaseSort.swift
[12/63] Compiling NotionSwift DatabaseUpdateRequest.swift
[13/63] Compiling NotionSwift CompountFilterType.swift
[14/63] Compiling NotionSwift DatabaseFilter.swift
[15/63] Compiling NotionSwift DatabaseFilterType.swift
[16/63] Compiling NotionSwift DatabasePropertyFilter+Encodable.swift
[17/63] Compiling NotionSwift DatabasePropertyFilter.swift
[18/63] Compiling NotionSwift AccessKeyProvider.swift
[19/63] Compiling NotionSwift EntityIdentifier.swift
[20/63] Compiling NotionSwift Logger.swift
[21/63] Compiling NotionSwift Types.swift
[22/63] Compiling NotionSwift Environment.swift
[23/63] Compiling NotionSwift Block.swift
[24/63] Compiling NotionSwift BlockColor.swift
[25/63] Compiling NotionSwift BlockType+Builders.swift
[26/63] Compiling NotionSwift DatabaseParent.swift
[27/63] Compiling NotionSwift DatabaseProperty.swift
[28/63] Compiling NotionSwift DatabasePropertyType.swift
[29/63] Compiling NotionSwift DateRange.swift
[30/63] Compiling NotionSwift DateValue.swift
[31/63] Compiling NotionSwift ErrorResponse.swift
[32/63] Compiling NotionSwift FileFile.swift
[33/63] Compiling NotionSwift IconFile.swift
[34/63] Compiling NotionSwift Mention.swift
[35/63] Compiling NotionSwift NotionLink.swift
[36/63] Compiling NotionSwift Page.swift
[37/63] Compiling NotionSwift PageParentType.swift
[38/63] Compiling NotionSwift PageProperty.swift
[39/63] Compiling NotionSwift PartialUser.swift
[40/63] Compiling NotionSwift BaseQueryParams.swift
[41/63] Compiling NotionSwift DatabaseCreateRequest.swift
[42/63] Compiling NotionSwift PageCreateRequest.swift
[43/63] Compiling NotionSwift PageUpdateRequest.swift
[44/63] Compiling NotionSwift SearchRequest.swift
[45/63] Compiling NotionSwift ListResponse.swift
[46/63] Compiling NotionSwift SearchResponse.swift
[47/63] Compiling NotionSwift RichText+extensions.swift
[48/63] Compiling NotionSwift RichText.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