The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-figma-api, reference 0.4.0 (c266a8), with Swift 6.1 for Wasm on 1 Apr 2026 20:43:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[60/97] Compiling FigmaAPI DeleteDevResourceEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[61/97] Compiling FigmaAPI DeleteReactionEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[62/97] Compiling FigmaAPI DeleteWebhookEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[63/97] Compiling FigmaAPI Endpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[64/97] Compiling FigmaAPI FileMetadataEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[65/97] Compiling FigmaAPI GetActivityLogsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[66/97] Compiling FigmaAPI GetCommentsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Client.swift:31:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:31:93: error: 'nil' requires a contextual type
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
 31 |         session = URLSession(configuration: config, delegate: redirectGuard, delegateQueue: nil)
    |                                                                                             `- error: 'nil' requires a contextual type
 32 |     }
 33 |
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:36:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 34 |     public func request<T: Endpoint>(_ endpoint: T) async throws -> T.Content {
 35 |         let request = try endpoint.makeRequest(baseURL: baseURL)
 36 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 37 |
 38 |         // Check for HTTP errors (especially 429 rate limit)
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:54:47: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
    |                                               `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
 55 |             return nil
 56 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:91:33: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 89 |         var redirectRequest = request
 90 |
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
    |                                 `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:93:35: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 91 |         let originalHost = task.originalRequest?.url?.host?.lowercased()
 92 |         let redirectHost = request.url?.host?.lowercased()
 93 |         let originalScheme = task.originalRequest?.url?.scheme?.lowercased()
    |                                   `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
 94 |         let redirectScheme = request.url?.scheme?.lowercased()
 95 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:102:42: error: 'nil' requires a contextual type
100 |         if originalHost == nil || redirectHost == nil || hostChanged || schemeDowngraded {
101 |             for header in Self.sensitiveHeaders {
102 |                 redirectRequest.setValue(nil, forHTTPHeaderField: header)
    |                                          `- error: 'nil' requires a contextual type
103 |             }
104 |         }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("comments")
24 |             .appendingPathComponent(commentId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:25:23: error: cannot find 'URLRequest' in scope
23 |             .appendingPathComponent("dev_resources")
24 |             .appendingPathComponent(resourceId)
25 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
26 |         request.httpMethod = "DELETE"
27 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:35:23: error: cannot find 'URLRequest' in scope
33 |             throw URLError(.badURL)
34 |         }
35 |         var request = URLRequest(url: finalURL)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = "DELETE"
37 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 |             .appendingPathComponent("webhooks")
20 |             .appendingPathComponent(webhookId)
21 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
22 |         request.httpMethod = "DELETE"
23 |         return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
error: emit-module command failed with exit code 1 (use -v to see invocation)
[67/97] Emitting module FigmaAPI
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 | public class BaseClient: Client, @unchecked Sendable {
 24 |     private let baseURL: URL
 25 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
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/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 26 |     private let redirectGuard: RedirectGuardDelegate
 27 |
 28 |     public init(baseURL: URL, config: URLSessionConfiguration) {
    |                                       `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |         self.baseURL = baseURL
 30 |         redirectGuard = RedirectGuardDelegate()
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/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |     }
 52 |
 53 |     private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
    |                                                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 54 |         guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
 55 |             return nil
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/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
 77 | ///
 78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
 79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
    |                                              `- error: cannot find type 'URLSessionTaskDelegate' in scope
 80 |     static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
 81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
    |                             `- error: cannot find type 'URLRequest' in scope
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
 88 |     ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
    |                                                 `- error: cannot find type 'URLRequest' in scope
 88 |     ) {
 89 |         var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |
 82 |     func urlSession(
 83 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
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/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 82 |     func urlSession(
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
    |               `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
 86 |         newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         _: URLSession,
 84 |         task: URLSessionTask,
 85 |         willPerformHTTPRedirection _: HTTPURLResponse,
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         newRequest request: URLRequest,
 87 |         completionHandler: @escaping @Sendable (URLRequest?) -> Void
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/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 |     public func content(from _: URLResponse?, with body: Data) throws -> Content {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         do {
28 |             // Models use explicit CodingKeys for snake_case mapping
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/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     /// - Returns: Resource request.
14 |     /// - Throws: Any error creating request.
15 |     func makeRequest(baseURL: URL) throws -> URLRequest
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |
17 |     /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 |     }
17 |
18 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
19 |         let url = baseURL
20 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         if body.isEmpty { return EmptyResponse() }
32 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 |     }
19 |
20 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
21 |         let url = baseURL
22 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     }
39 |
40 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |         if body.isEmpty { return EmptyResponse() }
42 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 |     }
15 |
16 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
17 |         let url = baseURL
18 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |     }
25 |
26 |     public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         if body.isEmpty { return EmptyResponse() }
28 |         return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
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/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |     /// - Returns: A new endpoint content.
23 |     /// - Throws: Any error creating content.
24 |     func content(from response: URLResponse?, with body: Data) throws -> Content
   |                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
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/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     }
14 |
15 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |         let url = baseURL
17 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |     }
24 |
25 |     public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
   |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |         guard let http = response as? HTTPURLResponse else {
27 |             throw URLError(.badServerResponse)
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/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
12 |         let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 |         return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 |     }
32 |
33 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
34 |         let url = baseURL
35 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetProjectFilesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPublishedVariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetReactionsEndpoint.swift:21:46: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamComponentSetsEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamComponentsEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamProjectsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamStylesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamWebhooksEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetVariableActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhookEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 |     }
14 |
15 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
16 |         let url = baseURL
17 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhookRequestsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhooksEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/ImageEndpoint.swift:82:53: error: cannot find type 'URLRequest' in scope
 80 |     }
 81 |
 82 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
    |                                                     `- error: cannot find type 'URLRequest' in scope
 83 |         let url = baseURL
 84 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/LatestReleaseEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
 9 |     public init() {}
10 |
11 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
12 |         let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 |         return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/NodesEndpoint.swift:29:53: error: cannot find type 'URLRequest' in scope
27 |     }
28 |
29 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
30 |         let url = baseURL
31 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostCommentEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostReactionEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 |     }
16 |
17 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
18 |         let url = baseURL
19 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 |     }
20 |
21 |     public func makeRequest(baseURL: URL) throws -> URLRequest {
   |                                                     `- error: cannot find type 'URLRequest' in scope
22 |         let url = baseURL
23 |             .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 |     }
18 |
19 |     public func makeRequest(baseURL: URL) -> URLRequest {
   |                                              `- error: cannot find type 'URLRequest' in scope
20 |         let url = baseURL
21 |             .appendingPathComponent("v1")
[68/97] Compiling FigmaAPI NodeHashableProperties.swift
[69/97] Compiling FigmaAPI PaymentInfo.swift
[70/97] Compiling FigmaAPI PostCommentBody.swift
[71/97] Compiling FigmaAPI PostDevResourceBody.swift
[72/97] Compiling FigmaAPI PostReactionBody.swift
[73/97] Compiling FigmaAPI PostWebhookBody.swift
[74/97] Compiling FigmaAPI Project.swift
[75/97] Compiling FigmaAPI PutDevResourceBody.swift
[76/97] Compiling FigmaAPI PutWebhookBody.swift
[77/97] Compiling FigmaAPI Reaction.swift
[78/97] Compiling FigmaAPI Comment.swift
[79/97] Compiling FigmaAPI ComponentSet.swift
[80/97] Compiling FigmaAPI DevResource.swift
[81/97] Compiling FigmaAPI EmptyResponse.swift
[82/97] Compiling FigmaAPI FigmaClientError.swift
[83/97] Compiling FigmaAPI FileMeta.swift
[84/97] Compiling FigmaAPI FileVersion.swift
[85/97] Compiling FigmaAPI FloatNormalization.swift
[86/97] Compiling FigmaAPI LibraryAnalytics.swift
[87/97] Compiling FigmaAPI Node.swift
[88/97] Compiling FigmaAPI Style.swift
[89/97] Compiling FigmaAPI User.swift
[90/97] Compiling FigmaAPI VariableUpdate.swift
[91/97] Compiling FigmaAPI Variables.swift
[92/97] Compiling FigmaAPI VectorPath.swift
[93/97] Compiling FigmaAPI Webhook.swift
[94/97] Compiling FigmaAPI WebhookRequest.swift
[95/97] Compiling FigmaAPI RateLimitedClient.swift
[96/97] Compiling FigmaAPI RetryPolicy.swift
[97/97] Compiling FigmaAPI SharedRateLimiter.swift
BUILD FAILURE 6.1 wasm