The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build AnthropicSwiftSDK, reference main (d511e8), with Swift 6.1 for Android on 30 May 2025 02:03:31 UTC.

Build Command

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

Build Log

    |                                        `- 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
[48/102] Compiling AnthropicSwiftSDK CountTokens.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
[49/102] Compiling AnthropicSwiftSDK MessageBatches.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
[50/102] Compiling AnthropicSwiftSDK Messages.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
[51/102] Compiling AnthropicSwiftSDK Anthropic.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
[52/102] 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
[53/102] 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
[54/102] 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
[55/102] Compiling AnthropicSwiftSDK GetWorkspaceRequest.swift
[56/102] Compiling AnthropicSwiftSDK UpdateWorkspaceRequest.swift
[57/102] Compiling AnthropicSwiftSDK APIKeyResponse.swift
[58/102] Compiling AnthropicSwiftSDK BatchResponse.swift
[59/102] Compiling AnthropicSwiftSDK BatchResultResponse.swift
[60/102] Compiling AnthropicSwiftSDK CountTokenResponse.swift
[61/102] Compiling AnthropicSwiftSDK InvitationRemoveResponse.swift
[62/102] Compiling AnthropicSwiftSDK InvitationResponse.swift
[63/102] Compiling AnthropicSwiftSDK MessagesResponse.swift
[64/102] Compiling AnthropicSwiftSDK ObjectListResponse.swift
[65/102] Compiling AnthropicSwiftSDK OrganizationMemberRemoveResponse.swift
[66/102] Compiling AnthropicSwiftSDK OrganizationMemberResponse.swift
[67/102] Compiling AnthropicSwiftSDK AuthenticationHeaderProvider.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[68/102] Compiling AnthropicSwiftSDK ObjectListable.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[69/102] Compiling AnthropicSwiftSDK GetAPIKeyRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[70/102] Compiling AnthropicSwiftSDK UpdateAPIKeyRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[71/102] Compiling AnthropicSwiftSDK CountTokenRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[72/102] Compiling AnthropicSwiftSDK ListObjectRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[73/102] Compiling AnthropicSwiftSDK CancelMessageBatchRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[74/102] Compiling AnthropicSwiftSDK MessageBatchesRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[75/102] Compiling AnthropicSwiftSDK RetrieveMessageBatchResultsRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[76/102] Compiling AnthropicSwiftSDK RetrieveMessageBatchesRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[77/102] Compiling AnthropicSwiftSDK MessagesRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[78/102] Compiling AnthropicSwiftSDK CreateOrganizationInviteRequest.swift
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
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
[79/102] Compiling AnthropicSwiftSDK ImageContent.swift
[80/102] Compiling AnthropicSwiftSDK ToolResultContent.swift
[81/102] Compiling AnthropicSwiftSDK ToolUseContent.swift
[82/102] Compiling AnthropicSwiftSDK Message.swift
[83/102] Compiling AnthropicSwiftSDK MetaData.swift
[84/102] Compiling AnthropicSwiftSDK Model.swift
[85/102] Compiling AnthropicSwiftSDK Role.swift
[86/102] Compiling AnthropicSwiftSDK StopReason.swift
[87/102] Compiling AnthropicSwiftSDK ContentBlockDelta.swift
[88/102] Compiling AnthropicSwiftSDK ContentBlockDeltaType.swift
[89/102] Compiling AnthropicSwiftSDK MessageDelta.swift
[90/102] Compiling AnthropicSwiftSDK StreamingError.swift
[91/102] Compiling AnthropicSwiftSDK StreamingResponse.swift
[92/102] Compiling AnthropicSwiftSDK WorkspaceMemberRemoveResponse.swift
[93/102] Compiling AnthropicSwiftSDK WorkspaceMemberResponse.swift
[94/102] Compiling AnthropicSwiftSDK WorkspaceResponse.swift
[95/102] Compiling AnthropicSwiftSDK AnthropicStreamingParser.swift
[96/102] Compiling AnthropicSwiftSDK StreamingDataLineParser.swift
[97/102] Compiling AnthropicSwiftSDK StreamingEventLineParser.swift
[98/102] Compiling AnthropicSwiftSDK StreamingResponseParser.swift
[99/102] Compiling AnthropicSwiftSDK AnthropicJSONDecoder.swift
[100/102] Compiling AnthropicSwiftSDK AnthropicJSONEncoder.swift
[101/102] Compiling AnthropicSwiftSDK AnyDecodable.swift
[102/102] Compiling AnthropicSwiftSDK InputJSONDeltaAccumulator.swift
BUILD FAILURE 6.1 android