Build Information
Failed to build swift-figma-api, reference 0.4.0 (c266a8), with Swift 6.3 for Wasm on 21 Apr 2026 02:57:10 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
| `- 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/ComponentsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("components")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/FileMetadataEndpoint.swift:33:16: error: cannot find 'URLRequest' in scope
31 | )
32 | }
33 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
34 | }
35 | }
/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/GetActivityLogsEndpoint.swift:50:16: error: cannot find 'URLRequest' in scope
48 | throw URLError(.badURL)
49 | }
50 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
51 | }
52 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("comments")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
[48/100] 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/ComponentsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("components")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/FileMetadataEndpoint.swift:33:16: error: cannot find 'URLRequest' in scope
31 | )
32 | }
33 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
34 | }
35 | }
/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/GetActivityLogsEndpoint.swift:50:16: error: cannot find 'URLRequest' in scope
48 | throw URLError(.badURL)
49 | }
50 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
51 | }
52 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("comments")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
[49/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[50/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[51/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[52/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[53/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[54/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[55/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[56/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[57/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[58/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[59/100] 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/GetVariableActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("variable")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/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/GetWebhookEndpoint.swift:20:16: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("webhooks")
19 | .appendingPathComponent(webhookId)
20 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | }
22 | }
/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/GetWebhookRequestsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(webhookId)
24 | .appendingPathComponent("requests")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/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/GetWebhooksEndpoint.swift:35:16: error: cannot find 'URLRequest' in scope
33 | throw URLError(.badURL)
34 | }
35 | return URLRequest(url: finalURL)
| `- error: cannot find 'URLRequest' in scope
36 | }
37 | }
/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/ImageEndpoint.swift:94:16: error: cannot find 'URLRequest' in scope
92 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for ImageEndpoint"])
93 | }
94 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
95 | }
96 | }
/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/LatestReleaseEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/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/NodesEndpoint.swift:47:16: error: cannot find 'URLRequest' in scope
45 | throw URLError(.badURL, userInfo: [NSLocalizedDescriptionKey: "Invalid URL components for NodesEndpoint"])
46 | }
47 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
48 | }
49 | }
/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")
[60/100] Compiling FigmaAPI PostWebhookEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[61/100] Compiling FigmaAPI PutDevResourceEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[62/100] Compiling FigmaAPI PutWebhookEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[63/100] Compiling FigmaAPI StylesEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[64/100] Compiling FigmaAPI UpdateVariablesEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[65/100] Compiling FigmaAPI VariablesEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[66/100] Compiling FigmaAPI Error+Description.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[67/100] Compiling FigmaAPI FigmaAPIError.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[68/100] Compiling FigmaAPI FigmaClient.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[69/100] Compiling FigmaAPI GitHubClient.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[70/100] Compiling FigmaAPI ActivityLog.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/PostWebhookEndpoint.swift:21:23: error: cannot find 'URLRequest' in scope
19 | .appendingPathComponent("v2")
20 | .appendingPathComponent("webhooks")
21 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
22 | request.httpMethod = "POST"
23 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.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 = "PUT"
28 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:24:23: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("webhooks")
23 | .appendingPathComponent(webhookId)
24 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | request.httpMethod = "PUT"
26 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("styles")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:28:23: error: cannot find 'URLRequest' in scope
26 | .appendingPathComponent("variables")
27 |
28 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
29 | request.httpMethod = "POST"
30 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:26:16: error: cannot find 'URLRequest' in scope
24 | .appendingPathComponent("variables")
25 | .appendingPathComponent("local")
26 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
27 | }
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/FigmaClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init(accessToken: String, timeout: TimeInterval?) {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.httpAdditionalHeaders = ["X-Figma-Token": accessToken]
13 | config.timeoutIntervalForRequest = timeout ?? 30
/host/spi-builder-workspace/Sources/FigmaAPI/GitHubClient.swift:11:46: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
9 |
10 | public init() {
11 | let config = URLSessionConfiguration.ephemeral
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'ephemeral'
12 | config.timeoutIntervalForRequest = 10
13 | super.init(baseURL: Self.gitHubBaseURL, config: config)
[71/100] Compiling FigmaAPI NodeHashableProperties.swift
[72/100] Compiling FigmaAPI PaymentInfo.swift
[73/100] Compiling FigmaAPI PostCommentBody.swift
[74/100] Compiling FigmaAPI PostDevResourceBody.swift
[75/100] Compiling FigmaAPI PostReactionBody.swift
[76/100] Compiling FigmaAPI PostWebhookBody.swift
[77/100] Compiling FigmaAPI Project.swift
[78/100] Compiling FigmaAPI PutDevResourceBody.swift
[79/100] Compiling FigmaAPI PutWebhookBody.swift
[80/100] Compiling FigmaAPI Reaction.swift
[81/100] Compiling FigmaAPI Comment.swift
[82/100] Compiling FigmaAPI ComponentSet.swift
[83/100] Compiling FigmaAPI DevResource.swift
[84/100] Compiling FigmaAPI EmptyResponse.swift
[85/100] Compiling FigmaAPI FigmaClientError.swift
[86/100] Compiling FigmaAPI FileMeta.swift
[87/100] Compiling FigmaAPI FileVersion.swift
[88/100] Compiling FigmaAPI FloatNormalization.swift
[89/100] Compiling FigmaAPI LibraryAnalytics.swift
[90/100] Compiling FigmaAPI Node.swift
[91/100] Compiling FigmaAPI Style.swift
[92/100] Compiling FigmaAPI User.swift
[93/100] Compiling FigmaAPI VariableUpdate.swift
[94/100] Compiling FigmaAPI Variables.swift
[95/100] Compiling FigmaAPI VectorPath.swift
[96/100] Compiling FigmaAPI Webhook.swift
[97/100] Compiling FigmaAPI WebhookRequest.swift
[98/100] Compiling FigmaAPI RateLimitedClient.swift
[99/100] Compiling FigmaAPI RetryPolicy.swift
[100/100] Compiling FigmaAPI SharedRateLimiter.swift
BUILD FAILURE 6.3 wasm