Build Information
Failed to build swift-figma-api, reference main (c266a8), with Swift 6.3 for Wasm on 21 Apr 2026 02:58:04 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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
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 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")
[57/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")
[58/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")
[59/100] Compiling FigmaAPI GetComponentActionsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[60/100] Compiling FigmaAPI GetComponentEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[61/100] Compiling FigmaAPI GetComponentSetEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[62/100] Compiling FigmaAPI GetComponentUsagesEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[63/100] Compiling FigmaAPI GetDevResourcesEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[64/100] Compiling FigmaAPI GetFileComponentSetsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[65/100] Compiling FigmaAPI GetFileMetaEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[66/100] Compiling FigmaAPI GetFileVersionsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[67/100] Compiling FigmaAPI GetImageFillsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[68/100] Compiling FigmaAPI GetMeEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
[69/100] Compiling FigmaAPI GetPaymentsEndpoint.swift
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/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/GetComponentActionsEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("actions")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("components")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:24:16: error: cannot find 'URLRequest' in scope
22 | .appendingPathComponent("component_sets")
23 | .appendingPathComponent(key)
24 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
25 | }
26 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:27:16: error: cannot find 'URLRequest' in scope
25 | .appendingPathComponent("component")
26 | .appendingPathComponent("usages")
27 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
28 | }
29 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("dev_resources")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("component_sets")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:20:23: error: cannot find 'URLRequest' in scope
18 | .appendingPathComponent("files")
19 | .appendingPathComponent(fileId)
20 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
21 | request.httpMethod = "HEAD"
22 | return request
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
27 | throw URLError(.badServerResponse)
28 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:26:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
26 | guard let http = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | throw URLError(.badServerResponse)
28 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:30:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
28 | }
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
32 | )
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:31:27: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
29 | return FileMeta(
30 | lastModified: http.value(forHTTPHeaderField: "Last-Modified"),
31 | version: http.value(forHTTPHeaderField: "X-Figma-Version")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
32 | )
33 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("versions")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:25:16: error: cannot find 'URLRequest' in scope
23 | .appendingPathComponent(fileId)
24 | .appendingPathComponent("images")
25 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
26 | }
27 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:13:16: error: cannot find 'URLRequest' in scope
11 | public func makeRequest(baseURL: URL) -> URLRequest {
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
14 | }
15 | }
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.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 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[70/100] Emitting module FigmaAPI
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:25:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | public class BaseClient: Client, @unchecked Sendable {
24 | private let baseURL: URL
25 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let redirectGuard: RedirectGuardDelegate
27 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:28:39: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | private let redirectGuard: RedirectGuardDelegate
27 |
28 | public init(baseURL: URL, config: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | self.baseURL = baseURL
30 | redirectGuard = RedirectGuardDelegate()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:53:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | private func extractRetryAfter(from response: HTTPURLResponse) -> TimeInterval? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | guard let retryAfterString = response.value(forHTTPHeaderField: "Retry-After") else {
55 | return nil
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:79:46: error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ///
78 | /// Fail-closed: if either host is nil, headers are stripped (safe default).
79 | final class RedirectGuardDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable {
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
80 | static let sensitiveHeaders = ["X-Figma-Token", "Authorization"]
81 |
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:86:29: error: cannot find type 'URLRequest' in scope
84 | task: URLSessionTask,
85 | willPerformHTTPRedirection _: HTTPURLResponse,
86 | newRequest request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
87 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
88 | ) {
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:87:49: error: cannot find type 'URLRequest' in scope
85 | willPerformHTTPRedirection _: HTTPURLResponse,
86 | newRequest request: URLRequest,
87 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
| `- error: cannot find type 'URLRequest' in scope
88 | ) {
89 | var redirectRequest = request
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:83:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
81 |
82 | func urlSession(
83 | _: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
84 | task: URLSessionTask,
85 | willPerformHTTPRedirection _: HTTPURLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:84:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
82 | func urlSession(
83 | _: URLSession,
84 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
85 | willPerformHTTPRedirection _: HTTPURLResponse,
86 | newRequest request: URLRequest,
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Client.swift:85:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
83 | _: URLSession,
84 | task: URLSessionTask,
85 | willPerformHTTPRedirection _: HTTPURLResponse,
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
86 | newRequest request: URLRequest,
87 | completionHandler: @escaping @Sendable (URLRequest?) -> Void
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/BaseEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | extension BaseEndpoint {
26 | public func content(from _: URLResponse?, with body: Data) throws -> Content {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | do {
28 | // Models use explicit CodingKeys for snake_case mapping
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/ComponentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | /// - Returns: Resource request.
14 | /// - Throws: Any error creating request.
15 | func makeRequest(baseURL: URL) throws -> URLRequest
| `- error: cannot find type 'URLRequest' in scope
16 |
17 | /// Obtain new content from response with body.
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let url = baseURL
20 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteCommentEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | if body.isEmpty { return EmptyResponse() }
32 | return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:18:46: error: cannot find type 'URLRequest' in scope
16 | }
17 |
18 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
19 | let url = baseURL
20 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteDevResourceEndpoint.swift:30:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | if body.isEmpty { return EmptyResponse() }
32 | return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:20:53: error: cannot find type 'URLRequest' in scope
18 | }
19 |
20 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
21 | let url = baseURL
22 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteReactionEndpoint.swift:40:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | }
39 |
40 | public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 | if body.isEmpty { return EmptyResponse() }
42 | return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:16:46: error: cannot find type 'URLRequest' in scope
14 | }
15 |
16 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
17 | let url = baseURL
18 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/DeleteWebhookEndpoint.swift:26:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func content(from _: URLResponse?, with body: Data) throws -> EmptyResponse {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | if body.isEmpty { return EmptyResponse() }
28 | return try YYJSONDecoder().decode(EmptyResponse.self, from: body)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/Endpoint.swift:24:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | /// - Returns: A new endpoint content.
23 | /// - Throws: Any error creating content.
24 | func content(from response: URLResponse?, with body: Data) throws -> Content
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | }
26 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/FileMetadataEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetActivityLogsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetCommentsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentSetEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetComponentUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetDevResourcesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileComponentSetsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileMetaEndpoint.swift:25:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func content(from response: URLResponse?, with body: Data) throws -> FileMeta {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | guard let http = response as? HTTPURLResponse else {
27 | throw URLError(.badServerResponse)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetFileVersionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetImageFillsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetMeEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("v1").appendingPathComponent("me")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPaymentsEndpoint.swift:33:53: error: cannot find type 'URLRequest' in scope
31 | }
32 |
33 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
34 | let url = baseURL
35 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetProjectFilesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetPublishedVariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetReactionsEndpoint.swift:21:46: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetStyleUsagesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamComponentSetsEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamComponentsEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamProjectsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamStylesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetTeamWebhooksEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetVariableActionsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhookEndpoint.swift:15:46: error: cannot find type 'URLRequest' in scope
13 | }
14 |
15 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
16 | let url = baseURL
17 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhookRequestsEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/GetWebhooksEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/ImageEndpoint.swift:82:53: error: cannot find type 'URLRequest' in scope
80 | }
81 |
82 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
83 | let url = baseURL
84 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/LatestReleaseEndpoint.swift:11:46: error: cannot find type 'URLRequest' in scope
9 | public init() {}
10 |
11 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
12 | let url = baseURL.appendingPathComponent("repos/DesignPipe/exfig/releases/latest")
13 | return URLRequest(url: url)
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/NodesEndpoint.swift:29:53: error: cannot find type 'URLRequest' in scope
27 | }
28 |
29 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
30 | let url = baseURL
31 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostCommentEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostReactionEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PostWebhookEndpoint.swift:17:53: error: cannot find type 'URLRequest' in scope
15 | }
16 |
17 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
18 | let url = baseURL
19 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutDevResourceEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/PutWebhookEndpoint.swift:19:53: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v2")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/StylesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/UpdateVariablesEndpoint.swift:21:53: error: cannot find type 'URLRequest' in scope
19 | }
20 |
21 | public func makeRequest(baseURL: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
22 | let url = baseURL
23 | .appendingPathComponent("v1")
/host/spi-builder-workspace/Sources/FigmaAPI/Endpoint/VariablesEndpoint.swift:19:46: error: cannot find type 'URLRequest' in scope
17 | }
18 |
19 | public func makeRequest(baseURL: URL) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
20 | let url = baseURL
21 | .appendingPathComponent("v1")
[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