Build Information
Failed to build Typesense, reference v1.1.0-rc.1 (8057f2
), with Swift 6.1 for Wasm on 29 May 2025 22:24:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[112/117] Compiling Typesense Collection.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[113/117] Compiling Typesense Collections.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[114/117] Compiling Typesense Configuration.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[115/117] Compiling Typesense ConversationModel.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[116/117] Compiling Typesense ConversationModels.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
[117/117] Compiling Typesense Conversations.swift
/host/spi-builder-workspace/Sources/Typesense/Alias.swift:14:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func upsert(name: String, collection: CollectionAliasSchema) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let schemaData = try encoder.encode(collection)
16 | let (data, response) = try await apiCall.put(endPoint: endpointPath(name), body: schemaData)
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/Typesense/Alias.swift:24:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func retrieve(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.get(endPoint: endpointPath(name))
26 | if let result = data {
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/Typesense/Alias.swift:33:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionAliasesResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Alias.swift:42:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func delete(name: String) async throws -> (CollectionAlias?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 | let (data, response) = try await apiCall.delete(endPoint: endpointPath(name))
44 | if let result = data {
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/Typesense/AnalyticsEvents.swift:14:125: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func create<T: Encodable>(params: AnalyticsEventCreateSchema<T>) async throws -> (AnalyticsEventCreateResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let json = try encoder.encode(params)
16 | let (data, response) = try await self.apiCall.post(endPoint: AnalyticsEvents.resourcePath, body: json)
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/Typesense/AnalyticsRule.swift:14:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | }
13 |
14 | public func retrieve() async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
16 | if let result = data {
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/Typesense/AnalyticsRule.swift:23:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | }
22 |
23 | public func delete() async throws -> (AnalyticsRuleDeleteResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
25 | if let result = data {
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/Typesense/AnalyticsRules.swift:15:92: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func upsert(params: AnalyticsRuleSchema) async throws -> (AnalyticsRuleSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let ruleData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(params.name), body: ruleData)
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/Typesense/AnalyticsRules.swift:26:79: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 | }
25 |
26 | public func retrieveAll() async throws -> (AnalyticsRulesRetrieveSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
28 | if let result = data {
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/Typesense/ApiCall.swift:39:96: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | //Various request types' implementation
38 |
39 | func get(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | let (data, response) = try await self.performRequest(requestType: RequestType.get, endpoint: endPoint, queryParameters: queryParameters)
41 | return (data, response)
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/Typesense/ApiCall.swift:44:99: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | }
43 |
44 | func delete(endPoint: String, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | let (data, response) = try await self.performRequest(requestType: RequestType.delete, endpoint: endPoint, queryParameters: queryParameters)
46 | return (data, response)
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/Typesense/ApiCall.swift:49:109: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | }
48 |
49 | func post(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | let (data, response) = try await self.performRequest(requestType: RequestType.post, endpoint: endPoint, body: body, queryParameters: queryParameters)
51 | return (data, response)
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/Typesense/ApiCall.swift:54:108: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func put(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | let (data, response) = try await self.performRequest(requestType: RequestType.put, endpoint: endPoint, body: body, queryParameters: queryParameters)
56 | return (data, response)
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/Typesense/ApiCall.swift:59:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | }
58 |
59 | func patch(endPoint: String, body: Data, queryParameters: [URLQueryItem]? = nil) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 | let (data, response) = try await self.performRequest(requestType: RequestType.patch, endpoint: endPoint, body: body, queryParameters: queryParameters)
61 | return (data, response)
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/Typesense/ApiCall.swift:65:151: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
63 |
64 | //Actual API Call
65 | func performRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | let requestNumber = Date().millisecondsSince1970
67 | logger.log("Request #\(requestNumber): Performing \(requestType.rawValue) request: /\(endpoint)")
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/Typesense/ApiCall.swift:118:158: error: cannot find type 'URLRequest' in scope
116 |
117 | //Bundles a URL Request
118 | func prepareRequest(requestType: RequestType, endpoint: String, body: Data? = nil, queryParameters: [URLQueryItem]? = nil, selectedNode: Node) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
119 |
120 | let urlString = uriFor(endpoint: endpoint, node: selectedNode)
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:79:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 | do {
79 | let (data, response) = try await URLSession.shared.data(for: request)
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 | if let res = response as? HTTPURLResponse {
81 | if (res.statusCode >= 1 && res.statusCode <= 499) {
/host/spi-builder-workspace/Sources/Typesense/ApiCall.swift:140:23: error: cannot find 'URLRequest' in scope
138 | }
139 |
140 | var request = URLRequest(url: validURLWithComponents)
| `- error: cannot find 'URLRequest' in scope
141 | request.httpMethod = requestType.rawValue
142 |
/host/spi-builder-workspace/Sources/Typesense/ApiKeys.swift:15:77: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(_ keySchema: ApiKeySchema) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/ApiKeys.swift:31:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | }
30 |
31 | public func retrieve(id: Int) async throws -> (ApiKey?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/ApiKeys.swift:42:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
40 | }
41 |
42 | public func retrieve() async throws -> (ApiKeysResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let (data, response) = try await apiCall.get(endPoint: "\(RESOURCEPATH)")
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/Typesense/ApiKeys.swift:53:57: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | public func delete(id: Int) async throws -> (Data?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 |
55 | let (data, response) = try await apiCall.delete(endPoint: "\(RESOURCEPATH)/\(id)")
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/Typesense/Collection.swift:24:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | }
23 |
24 | public func delete() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | let (data, response) = try await apiCall.delete(endPoint: endpointPath())
26 | if let result = data {
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/Typesense/Collection.swift:33:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | }
32 |
33 | public func retrieve() async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | let (data, response) = try await apiCall.get(endPoint: endpointPath())
35 | if let result = data {
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/Typesense/Collections.swift:15:88: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(schema: CollectionSchema) async throws -> (CollectionResponse?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | var schemaData: Data? = nil
17 |
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/Typesense/Collections.swift:30:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | public func retrieveAll() async throws -> ([CollectionResponse]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | let (data, response) = try await apiCall.get(endPoint: Collections.RESOURCEPATH)
32 |
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/Typesense/ConversationModel.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func update(params: ConversationModelUpdateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.put(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModel.swift:25:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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/Typesense/ConversationModel.swift:34:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 | }
33 |
34 | public func delete() async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | let (data, response) = try await self.apiCall.delete(endPoint: endpointPath())
36 | if let result = data {
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/Typesense/ConversationModels.swift:15:106: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
15 | public func create(params: ConversationModelCreateSchema) async throws -> (ConversationModelSchema?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | let schemaData = try encoder.encode(params)
17 | let (data, response) = try await self.apiCall.post(endPoint: endpointPath(), body: schemaData)
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/Typesense/ConversationModels.swift:25:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 | }
24 |
25 | public func retrieve() async throws -> ([ConversationModelSchema]?, URLResponse?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 | let (data, response) = try await self.apiCall.get(endPoint: endpointPath())
27 | if let result = data {
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
BUILD FAILURE 6.1 wasm