Build Information
Failed to build swift-figma-api, reference main (c266a8), with Swift 6.1 for Wasm on 1 Apr 2026 20:50:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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>&1Build Log
/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")
[51/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")
[52/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")
[53/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")
[54/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")
[55/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")
[56/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")
[57/97] Compiling FigmaAPI NodeHashableProperties.swift
[58/97] Compiling FigmaAPI PaymentInfo.swift
[59/97] Compiling FigmaAPI PostCommentBody.swift
[60/97] Compiling FigmaAPI PostDevResourceBody.swift
[61/97] Compiling FigmaAPI PostReactionBody.swift
[62/97] Compiling FigmaAPI PostWebhookBody.swift
[63/97] Compiling FigmaAPI Project.swift
[64/97] Compiling FigmaAPI PutDevResourceBody.swift
[65/97] Compiling FigmaAPI PutWebhookBody.swift
[66/97] Compiling FigmaAPI Reaction.swift
[67/97] Compiling FigmaAPI GetVariableActionsEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[68/97] Compiling FigmaAPI GetWebhookEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[69/97] Compiling FigmaAPI GetWebhookRequestsEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[70/97] Compiling FigmaAPI GetWebhooksEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[71/97] Compiling FigmaAPI ImageEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[72/97] Compiling FigmaAPI LatestReleaseEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[73/97] Compiling FigmaAPI NodesEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[74/97] Compiling FigmaAPI PaginationParams.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[75/97] Compiling FigmaAPI PostCommentEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[76/97] Compiling FigmaAPI PostDevResourceEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[77/97] Compiling FigmaAPI PostReactionEndpoint.swift
/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/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/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/PostCommentEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("comments")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostDevResourceEndpoint.swift:26:23: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("dev_resources")
25 |
26 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | request.httpMethod = "POST"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/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/PostReactionEndpoint.swift:30:23: error: cannot find 'URLRequest' in scope
28 | .appendingPathComponent("reactions")
29 |
30 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
31 | request.httpMethod = "POST"
32 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
[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