The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AnthropicSwiftSDK, reference 0.14.0 (164609), with Swift 6.2 for Android on 16 Jul 2025 17:05:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

18 |     ///   - apiKey: The API key for authentication.
19 |     ///   - session: The URL session for network requests.
20 |     init(apiKey: String, session: URLSession) {
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.apiKey = apiKey
22 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let apiKey: String
 15 |     /// The URL session used for network requests.
 16 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:23:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ///   - apiKey: The API key for authentication.
 22 |     ///   - session: The URL session for network requests.
 23 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         self.apiKey = apiKey
 25 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:139:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |         }
138 |
139 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
141 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:140:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |
139 |         guard httpResponse.statusCode == 200 else {
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 |         }
142 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public struct Messages {
 11 |     private let apiKey: String
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     init(apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:14:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let session: URLSession
 13 |
 14 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         self.apiKey = apiKey
 16 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:24:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     /// - Parameter apiKey: API key to access Anthropic API.
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:25:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
27 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:26:66: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
   |                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |     }
28 | }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:17:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     case unknownStreamingResponseLine(String)
16 |     /// URLRequest could not be cast to HTTPURLRequest
17 |     case cannotHandleURLResponse(URLResponse)
   |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     /// The DataLine string returned from Stream could not be cast to the Data attribute.
19 |     case cannotHandleDataOfDataLine(String)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[31/105] Compiling AnthropicSwiftSDK AnthropicAPIError.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct APIKeys {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:54: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationInvites {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationMembers {
 10 |     let apiKey: String
 11 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:13:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     let session: URLSession
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = apiKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct WorkspaceMembers {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct Workspaces {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     private let apiKey: String
12 |     /// The URL session used for network requests.
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:20:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ///   - apiKey: The API key for authentication.
19 |     ///   - session: The URL session for network requests.
20 |     init(apiKey: String, session: URLSession) {
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.apiKey = apiKey
22 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let apiKey: String
 15 |     /// The URL session used for network requests.
 16 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:23:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ///   - apiKey: The API key for authentication.
 22 |     ///   - session: The URL session for network requests.
 23 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         self.apiKey = apiKey
 25 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:139:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |         }
138 |
139 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
141 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:140:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |
139 |         guard httpResponse.statusCode == 200 else {
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 |         }
142 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public struct Messages {
 11 |     private let apiKey: String
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     init(apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:14:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let session: URLSession
 13 |
 14 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         self.apiKey = apiKey
 16 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:24:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     /// - Parameter apiKey: API key to access Anthropic API.
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:25:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
27 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:26:66: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
   |                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |     }
28 | }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:17:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     case unknownStreamingResponseLine(String)
16 |     /// URLRequest could not be cast to HTTPURLRequest
17 |     case cannotHandleURLResponse(URLResponse)
   |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     /// The DataLine string returned from Stream could not be cast to the Data attribute.
19 |     case cannotHandleDataOfDataLine(String)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[32/105] Compiling AnthropicSwiftSDK AnthropicVersion.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct APIKeys {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:54: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationInvites {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationMembers {
 10 |     let apiKey: String
 11 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:13:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     let session: URLSession
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = apiKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct WorkspaceMembers {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct Workspaces {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     private let apiKey: String
12 |     /// The URL session used for network requests.
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:20:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ///   - apiKey: The API key for authentication.
19 |     ///   - session: The URL session for network requests.
20 |     init(apiKey: String, session: URLSession) {
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.apiKey = apiKey
22 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let apiKey: String
 15 |     /// The URL session used for network requests.
 16 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:23:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ///   - apiKey: The API key for authentication.
 22 |     ///   - session: The URL session for network requests.
 23 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         self.apiKey = apiKey
 25 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:139:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |         }
138 |
139 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
141 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:140:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |
139 |         guard httpResponse.statusCode == 200 else {
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 |         }
142 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public struct Messages {
 11 |     private let apiKey: String
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     init(apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:14:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let session: URLSession
 13 |
 14 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         self.apiKey = apiKey
 16 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:24:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     /// - Parameter apiKey: API key to access Anthropic API.
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:25:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
27 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:26:66: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
   |                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |     }
28 | }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:17:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     case unknownStreamingResponseLine(String)
16 |     /// URLRequest could not be cast to HTTPURLRequest
17 |     case cannotHandleURLResponse(URLResponse)
   |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     /// The DataLine string returned from Stream could not be cast to the Data attribute.
19 |     case cannotHandleDataOfDataLine(String)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[33/105] Compiling AnthropicSwiftSDK ClientError.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct APIKeys {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:54: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationInvites {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationMembers {
 10 |     let apiKey: String
 11 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:13:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     let session: URLSession
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = apiKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct WorkspaceMembers {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct Workspaces {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     private let apiKey: String
12 |     /// The URL session used for network requests.
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:20:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ///   - apiKey: The API key for authentication.
19 |     ///   - session: The URL session for network requests.
20 |     init(apiKey: String, session: URLSession) {
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.apiKey = apiKey
22 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let apiKey: String
 15 |     /// The URL session used for network requests.
 16 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:23:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ///   - apiKey: The API key for authentication.
 22 |     ///   - session: The URL session for network requests.
 23 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         self.apiKey = apiKey
 25 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:135:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         let (data, response) = try await client.send(request: request)
134 |
135 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |             throw ClientError.cannotHandleURLResponse(response)
137 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:139:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
137 |         }
138 |
139 |         guard httpResponse.statusCode == 200 else {
    |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
141 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:140:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
138 |
139 |         guard httpResponse.statusCode == 200 else {
140 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
    |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 |         }
142 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public struct Messages {
 11 |     private let apiKey: String
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     init(apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:14:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let session: URLSession
 13 |
 14 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         self.apiKey = apiKey
 16 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:24:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 |     /// - Parameter apiKey: API key to access Anthropic API.
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
   |                                                            `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:25:72: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |     public init(apiKey: String) {
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
   |                                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
27 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:26:66: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         self.messages = Messages(apiKey: apiKey, session: .shared)
25 |         self.messageBatches = MessageBatches(apiKey: apiKey, session: .shared)
26 |         self.countTokens = CountTokens(apiKey: apiKey, session: .shared)
   |                                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |     }
28 | }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:17:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     case unknownStreamingResponseLine(String)
16 |     /// URLRequest could not be cast to HTTPURLRequest
17 |     case cannotHandleURLResponse(URLResponse)
   |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     /// The DataLine string returned from Stream could not be cast to the Data attribute.
19 |     case cannotHandleDataOfDataLine(String)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[34/105] Compiling AnthropicSwiftSDK ImageContent.swift
[35/105] Compiling AnthropicSwiftSDK ToolResultContent.swift
[36/105] Compiling AnthropicSwiftSDK ToolUseContent.swift
[37/105] Compiling AnthropicSwiftSDK Message.swift
[38/105] Compiling AnthropicSwiftSDK MetaData.swift
[39/105] Compiling AnthropicSwiftSDK Model.swift
[40/105] Compiling AnthropicSwiftSDK Role.swift
[41/105] Compiling AnthropicSwiftSDK StopReason.swift
[42/105] Compiling AnthropicSwiftSDK ContentBlockDelta.swift
[43/105] Compiling AnthropicSwiftSDK ContentBlockDeltaType.swift
[44/105] Compiling AnthropicSwiftSDK MessageDelta.swift
[45/105] Compiling AnthropicSwiftSDK StreamingError.swift
[46/105] Compiling AnthropicSwiftSDK GetWorkspaceRequest.swift
[47/105] Compiling AnthropicSwiftSDK UpdateWorkspaceRequest.swift
[48/105] Compiling AnthropicSwiftSDK APIKeyResponse.swift
[49/105] Compiling AnthropicSwiftSDK BatchResponse.swift
[50/105] Compiling AnthropicSwiftSDK BatchResultResponse.swift
[51/105] Compiling AnthropicSwiftSDK CountTokenResponse.swift
[52/105] Compiling AnthropicSwiftSDK InvitationRemoveResponse.swift
[53/105] Compiling AnthropicSwiftSDK InvitationResponse.swift
[54/105] Compiling AnthropicSwiftSDK MessagesResponse.swift
[55/105] Compiling AnthropicSwiftSDK ObjectListResponse.swift
[56/105] Compiling AnthropicSwiftSDK OrganizationMemberRemoveResponse.swift
[57/105] Compiling AnthropicSwiftSDK OrganizationMemberResponse.swift
[58/105] Compiling AnthropicSwiftSDK Invitation.swift
[59/105] Compiling AnthropicSwiftSDK OrganizationRole.swift
[60/105] Compiling AnthropicSwiftSDK Registration.swift
[61/105] Compiling AnthropicSwiftSDK WorkspaceRole.swift
[62/105] Compiling AnthropicSwiftSDK BatchParameter.swift
[63/105] Compiling AnthropicSwiftSDK BatchRequestCounts.swift
[64/105] Compiling AnthropicSwiftSDK BatchResultType.swift
[65/105] Compiling AnthropicSwiftSDK BatchType.swift
[66/105] Compiling AnthropicSwiftSDK MessageBatch.swift
[67/105] Compiling AnthropicSwiftSDK ProcessingStatus.swift
[68/105] Compiling AnthropicSwiftSDK Content.swift
[69/105] Compiling AnthropicSwiftSDK DocumentContent.swift
[70/105] Compiling AnthropicSwiftSDK StreamingEvent.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[71/105] Compiling AnthropicSwiftSDK SystemPrompt.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[72/105] Compiling AnthropicSwiftSDK TokenUsage.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[73/105] Compiling AnthropicSwiftSDK BashTool.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[74/105] Compiling AnthropicSwiftSDK ComputerTool.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[75/105] Compiling AnthropicSwiftSDK FunctionTool.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[76/105] Compiling AnthropicSwiftSDK TextEditorTool.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[77/105] Compiling AnthropicSwiftSDK Tool.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[78/105] Compiling AnthropicSwiftSDK ToolChoice.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[79/105] Compiling AnthropicSwiftSDK AnthropicAPIClient.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[80/105] Compiling AnthropicSwiftSDK StreamingResponse+Extension.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[81/105] Compiling AnthropicSwiftSDK AnthropicHeaderProvider.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:52:34: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
50 |         }
51 |
52 |         return try await session.data(for: urlRequest)
   |                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
53 |     }
54 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:58:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
56 |         let (data, response) = try await self.send(request: request)
57 |
58 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |             throw ClientError.cannotHandleURLResponse(response)
60 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:62:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 |         }
61 |
62 |         guard httpResponse.statusCode == 200 else {
   |                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
64 |         }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:63:70: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 |
62 |         guard httpResponse.statusCode == 200 else {
63 |             throw AnthropicAPIError(fromHttpStatusCode: httpResponse.statusCode)
   |                                                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         }
65 |
[82/105] Compiling AnthropicSwiftSDK DeleteOrganizationInviteRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[83/105] Compiling AnthropicSwiftSDK GetOrganizationInviteRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[84/105] Compiling AnthropicSwiftSDK GetOrganizationMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[85/105] Compiling AnthropicSwiftSDK RemoveOrganizationMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[86/105] Compiling AnthropicSwiftSDK UpdateOrganizationMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[87/105] Compiling AnthropicSwiftSDK Request.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[88/105] Compiling AnthropicSwiftSDK CreateWorkspaceMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[89/105] Compiling AnthropicSwiftSDK DeleteWorkspaceMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[90/105] Compiling AnthropicSwiftSDK GetWorkspaceMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[91/105] Compiling AnthropicSwiftSDK UpdateWorkspaceMemberRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[92/105] Compiling AnthropicSwiftSDK ArchiveWorkspaceRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[93/105] Compiling AnthropicSwiftSDK CreateWorkspaceRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:61:23: error: cannot find 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
61 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
62 |         request.httpMethod = method.rawValue
63 |         if let body {
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:68:60: error: cannot infer contextual base in reference to member 'init'
66 |
67 |         if let queries {
68 |             request.url?.append(queryItems: queries.map { .init(name: $0.key, value: $0.value.description) })
   |                                                            `- error: cannot infer contextual base in reference to member 'init'
69 |         }
70 |
[94/105] Compiling AnthropicSwiftSDK StreamingResponse.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[95/105] Compiling AnthropicSwiftSDK WorkspaceMemberRemoveResponse.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[96/105] Compiling AnthropicSwiftSDK WorkspaceMemberResponse.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[97/105] Compiling AnthropicSwiftSDK WorkspaceResponse.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[98/105] Compiling AnthropicSwiftSDK AnthropicStreamingParser.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[99/105] Compiling AnthropicSwiftSDK StreamingDataLineParser.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[100/105] Compiling AnthropicSwiftSDK StreamingEventLineParser.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[101/105] Compiling AnthropicSwiftSDK StreamingResponseParser.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[102/105] Compiling AnthropicSwiftSDK AnthropicJSONDecoder.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[103/105] Compiling AnthropicSwiftSDK AnthropicJSONEncoder.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[104/105] Compiling AnthropicSwiftSDK AnyDecodable.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
[105/105] Compiling AnthropicSwiftSDK InputJSONDeltaAccumulator.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift:16:39: warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
14 |             let task = Task {
15 |                 var currentEvent: StreamingEvent?
16 |                 for try await line in stream {
   |                                       `- warning: capture of non-sendable type 'T.AsyncIterator.Type' in an isolated closure
17 |                     do {
18 |                         let lineType = try StreamingResponseParser.parse(line: line)
BUILD FAILURE 6.2 android