The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WebClient, reference main (a9550d), with Swift 6.0 for macOS (SPM) on 16 Jan 2026 23:01:10 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64

Build Log

    |                             `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 59 |         _ data: Data,
 60 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/CacheInterceptor.swift:198:29: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that handles cache lookups and conditional requests.
    :
196 |     }
197 |
198 |     public nonisolated func intercept(
    |                             |- error: method cannot be declared public because its parameter uses an internal type
    |                             `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
199 |         _ data: Data,
200 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:31:27: error: static property 'now' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: static property 'now' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 29 |         data: Data,
 30 |         response: HTTPURLResponse,
 31 |         cachedAt: Date = .now,
    |                           `- error: static property 'now' is internal and cannot be referenced from a default argument value
 32 |         ttl: Duration,
 33 |         etag: String? = nil,
Foundation.Date:19:23: note: static property 'now' is not '@usableFromInline' or public
17 |     public static let distantPast: Date
18 |     @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
19 |     public static var now: Date { get }
   |                       `- note: static property 'now' is not '@usableFromInline' or public
20 |     public func hash(into hasher: inout Hasher)
21 |     public func compare(_ other: Date) -> ComparisonResult
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:6:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
  4 | public struct CacheEntry: Sendable {
  5 |     /// The cached response data.
  6 |     public let data: Data
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
  7 |
  8 |     /// The HTTP response associated with the cached data.
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:9:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
  7 |
  8 |     /// The HTTP response associated with the cached data.
  9 |     public let response: HTTPURLResponse
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
 10 |
 11 |     /// The time when this entry was cached.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:12:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 10 |
 11 |     /// The time when this entry was cached.
 12 |     public let cachedAt: Date
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
 13 |
 14 |     /// The time-to-live for this entry.
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:28:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 26 |     }
 27 |
 28 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 29 |         data: Data,
 30 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:65:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 63 |     /// - Parameter request: The URL request to look up.
 64 |     /// - Returns: The cached entry if available and not expired, nil otherwise.
 65 |     func get(for request: URLRequest) async -> CacheEntry?
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 66 |
 67 |     /// Stores a response in the cache.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:71:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 69 |     ///   - entry: The cache entry to store.
 70 |     ///   - request: The URL request associated with this response.
 71 |     func set(_ entry: CacheEntry, for request: URLRequest) async
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 72 |
 73 |     /// Removes a cached response for the given request.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:75:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 73 |     /// Removes a cached response for the given request.
 74 |     /// - Parameter request: The URL request to remove from cache.
 75 |     func remove(for request: URLRequest) async
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 76 |
 77 |     /// Removes all cached responses.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:101:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 99 |     }
100 |
101 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
102 |         let key = cacheKey(for: request)
103 |         guard let entry = cache[key] else { return nil }
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:119:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
117 |     }
118 |
119 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
120 |         let key = cacheKey(for: request)
121 |         let entrySize = entry.data.count
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:146:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
144 |     }
145 |
146 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
147 |         let key = cacheKey(for: request)
148 |         if let removed = cache.removeValue(forKey: key) {
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:193:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
191 |     ///   - directory: The directory to store cached files. Defaults to system caches directory.
192 |     ///   - maxSize: Maximum total size in bytes. Defaults to 100MB.
193 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
194 |         directory: URL? = nil,
195 |         maxSize: Int = 100 * 1024 * 1024
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:209:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
207 |     }
208 |
209 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
210 |         let fileURL = cacheFileURL(for: request)
211 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:261:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
259 |     }
260 |
261 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
262 |         let fileURL = cacheFileURL(for: request)
263 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:288:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
286 |     }
287 |
288 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
289 |         let fileURL = cacheFileURL(for: request)
290 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:390:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
388 |     ///   - diskDirectory: Directory for disk cache.
389 |     ///   - diskMaxSize: Maximum size of disk cache in bytes.
390 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
391 |         memoryMaxEntries: Int = 50,
392 |         memoryMaxSize: Int = 25 * 1024 * 1024,
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:400:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
398 |     }
399 |
400 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
401 |         // Try memory first
402 |         if let entry = await memoryCache.get(for: request) {
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:416:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
414 |     }
415 |
416 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
417 |         await memoryCache.set(entry, for: request)
418 |         await diskCache.set(entry, for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:421:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
419 |     }
420 |
421 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
422 |         await memoryCache.remove(for: request)
423 |         await diskCache.remove(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
[20/31] Compiling WebClient RetryPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/CacheInterceptor.swift:17:29: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that handles cache lookups and conditional requests.
    :
 15 |     }
 16 |
 17 |     public nonisolated func intercept(
    |                             |- error: method cannot be declared public because its parameter uses an internal type
    |                             `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 18 |         _ request: URLRequest,
 19 |         context _: RequestContext
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/CacheInterceptor.swift:58:29: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that handles cache lookups and conditional requests.
    :
 56 |     }
 57 |
 58 |     public nonisolated func intercept(
    |                             |- error: method cannot be declared public because its parameter uses an internal type
    |                             `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 59 |         _ data: Data,
 60 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/CacheInterceptor.swift:198:29: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that handles cache lookups and conditional requests.
    :
196 |     }
197 |
198 |     public nonisolated func intercept(
    |                             |- error: method cannot be declared public because its parameter uses an internal type
    |                             `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
199 |         _ data: Data,
200 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:31:27: error: static property 'now' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: static property 'now' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 29 |         data: Data,
 30 |         response: HTTPURLResponse,
 31 |         cachedAt: Date = .now,
    |                           `- error: static property 'now' is internal and cannot be referenced from a default argument value
 32 |         ttl: Duration,
 33 |         etag: String? = nil,
Foundation.Date:19:23: note: static property 'now' is not '@usableFromInline' or public
17 |     public static let distantPast: Date
18 |     @available(macOS 12, iOS 15, tvOS 15, watchOS 8, *)
19 |     public static var now: Date { get }
   |                       `- note: static property 'now' is not '@usableFromInline' or public
20 |     public func hash(into hasher: inout Hasher)
21 |     public func compare(_ other: Date) -> ComparisonResult
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:6:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
  4 | public struct CacheEntry: Sendable {
  5 |     /// The cached response data.
  6 |     public let data: Data
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
  7 |
  8 |     /// The HTTP response associated with the cached data.
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:9:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
  7 |
  8 |     /// The HTTP response associated with the cached data.
  9 |     public let response: HTTPURLResponse
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
 10 |
 11 |     /// The time when this entry was cached.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:12:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 10 |
 11 |     /// The time when this entry was cached.
 12 |     public let cachedAt: Date
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
 13 |
 14 |     /// The time-to-live for this entry.
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:28:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 26 |     }
 27 |
 28 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 29 |         data: Data,
 30 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:65:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 63 |     /// - Parameter request: The URL request to look up.
 64 |     /// - Returns: The cached entry if available and not expired, nil otherwise.
 65 |     func get(for request: URLRequest) async -> CacheEntry?
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 66 |
 67 |     /// Stores a response in the cache.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:71:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 69 |     ///   - entry: The cache entry to store.
 70 |     ///   - request: The URL request associated with this response.
 71 |     func set(_ entry: CacheEntry, for request: URLRequest) async
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 72 |
 73 |     /// Removes a cached response for the given request.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:75:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 73 |     /// Removes a cached response for the given request.
 74 |     /// - Parameter request: The URL request to remove from cache.
 75 |     func remove(for request: URLRequest) async
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 76 |
 77 |     /// Removes all cached responses.
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:101:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
 99 |     }
100 |
101 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
102 |         let key = cacheKey(for: request)
103 |         guard let entry = cache[key] else { return nil }
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:119:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
117 |     }
118 |
119 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
120 |         let key = cacheKey(for: request)
121 |         let entrySize = entry.data.count
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:146:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
144 |     }
145 |
146 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
147 |         let key = cacheKey(for: request)
148 |         if let removed = cache.removeValue(forKey: key) {
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:193:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
191 |     ///   - directory: The directory to store cached files. Defaults to system caches directory.
192 |     ///   - maxSize: Maximum total size in bytes. Defaults to 100MB.
193 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
194 |         directory: URL? = nil,
195 |         maxSize: Int = 100 * 1024 * 1024
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:209:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
207 |     }
208 |
209 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
210 |         let fileURL = cacheFileURL(for: request)
211 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:261:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
259 |     }
260 |
261 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
262 |         let fileURL = cacheFileURL(for: request)
263 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:288:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
286 |     }
287 |
288 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
289 |         let fileURL = cacheFileURL(for: request)
290 |         let metadataURL = metadataFileURL(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:390:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
388 |     ///   - diskDirectory: Directory for disk cache.
389 |     ///   - diskMaxSize: Maximum size of disk cache in bytes.
390 |     public init(
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
391 |         memoryMaxEntries: Int = 50,
392 |         memoryMaxSize: Int = 25 * 1024 * 1024,
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:400:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
398 |     }
399 |
400 |     public func get(for request: URLRequest) async -> CacheEntry? {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
401 |         // Try memory first
402 |         if let entry = await memoryCache.get(for: request) {
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:416:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
414 |     }
415 |
416 |     public func set(_ entry: CacheEntry, for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
417 |         await memoryCache.set(entry, for: request)
418 |         await diskCache.set(entry, for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Caching/ResponseCache.swift:421:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A cache entry containing the cached response data and metadata.
    :
419 |     }
420 |
421 |     public func remove(for request: URLRequest) async {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
422 |         await memoryCache.remove(for: request)
423 |         await diskCache.remove(for: request)
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
[21/31] Compiling WebClient PinningSessionDelegate.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:39:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: class 'URLSession' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 37 |     // MARK: - URLSessionDelegate
 38 |
 39 |     public func urlSession(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'URLSession' is imported by this file as 'internal' from 'Foundation'
 40 |         _: URLSession,
 41 |         didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:12: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: type declared here
 3 |     open class var shared: URLSession { get }
 4 |     @available(swift, obsoleted: 3, renamed: "shared")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:16:20: error: class cannot be declared public because its superclass is internal
  1 | import Foundation
    | `- note: class 'NSObject' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 14 | /// let client = WebClient(configuration: config, certificatePinning: pinning)
 15 | /// ```
 16 | public final class PinningSessionDelegate: NSObject, URLSessionDelegate, Sendable {
    |                    |- error: class cannot be declared public because its superclass is internal
    |                    `- note: class 'NSObject' is imported by this file as 'internal' from 'Foundation'
 17 |     /// The certificate pinning configuration.
 18 |     private let pinning: CertificatePinning
ObjectiveC.NSObject:2:12: note: type declared here
  1 | @available(macOS 10.0, *)
  2 | open class NSObject : NSObjectProtocol {
    |            `- note: type declared here
  3 |     open class func load()
  4 |     open class func initialize()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:16:54: error: cannot use protocol 'URLSessionDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import Foundation
    | `- note: protocol 'URLSessionDelegate' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 14 | /// let client = WebClient(configuration: config, certificatePinning: pinning)
 15 | /// ```
 16 | public final class PinningSessionDelegate: NSObject, URLSessionDelegate, Sendable {
    |                                                      `- error: cannot use protocol 'URLSessionDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
 17 |     /// The certificate pinning configuration.
 18 |     private let pinning: CertificatePinning
Foundation.URLSessionDelegate:2:17: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | public protocol URLSessionDelegate : NSObjectProtocol, Sendable {
   |                 `- note: type declared here
 3 |     optional func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?)
 4 |     @available(swift, obsoleted: 3, renamed: "urlSession(_:didBecomeInvalidWithError:)")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:101:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: class 'URLSession' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 99 |     // MARK: - URLSessionTaskDelegate
100 |
101 |     public func urlSession(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'URLSession' is imported by this file as 'internal' from 'Foundation'
102 |         _: URLSession,
103 |         task _: URLSessionTask,
Foundation.URLSession:2:12: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: type declared here
 3 |     open class var shared: URLSession { get }
 4 |     @available(swift, obsoleted: 3, renamed: "shared")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:78:20: error: class cannot be declared public because its superclass is internal
  1 | import Foundation
    | `- note: class 'NSObject' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 76 | /// Use this when you need different pinning configurations for different requests
 77 | /// within the same session.
 78 | public final class PinningTaskDelegate: NSObject, URLSessionTaskDelegate, Sendable {
    |                    |- error: class cannot be declared public because its superclass is internal
    |                    `- note: class 'NSObject' is imported by this file as 'internal' from 'Foundation'
 79 |     /// The certificate pinning configuration.
 80 |     private let pinning: CertificatePinning
ObjectiveC.NSObject:2:12: note: type declared here
  1 | @available(macOS 10.0, *)
  2 | open class NSObject : NSObjectProtocol {
    |            `- note: type declared here
  3 |     open class func load()
  4 |     open class func initialize()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:78:51: error: cannot use protocol 'URLSessionTaskDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import Foundation
    | `- note: protocol 'URLSessionTaskDelegate' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 76 | /// Use this when you need different pinning configurations for different requests
 77 | /// within the same session.
 78 | public final class PinningTaskDelegate: NSObject, URLSessionTaskDelegate, Sendable {
    |                                                   `- error: cannot use protocol 'URLSessionTaskDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
 79 |     /// The certificate pinning configuration.
 80 |     private let pinning: CertificatePinning
Foundation.URLSessionTaskDelegate:2:17: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | public protocol URLSessionTaskDelegate : URLSessionDelegate {
   |                 `- note: type declared here
 3 |     @available(macOS 13.0, *)
 4 |     optional func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask)
[22/31] Compiling WebClient MockWebClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:39:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: class 'URLSession' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 37 |     // MARK: - URLSessionDelegate
 38 |
 39 |     public func urlSession(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'URLSession' is imported by this file as 'internal' from 'Foundation'
 40 |         _: URLSession,
 41 |         didReceive challenge: URLAuthenticationChallenge,
Foundation.URLSession:2:12: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: type declared here
 3 |     open class var shared: URLSession { get }
 4 |     @available(swift, obsoleted: 3, renamed: "shared")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:16:20: error: class cannot be declared public because its superclass is internal
  1 | import Foundation
    | `- note: class 'NSObject' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 14 | /// let client = WebClient(configuration: config, certificatePinning: pinning)
 15 | /// ```
 16 | public final class PinningSessionDelegate: NSObject, URLSessionDelegate, Sendable {
    |                    |- error: class cannot be declared public because its superclass is internal
    |                    `- note: class 'NSObject' is imported by this file as 'internal' from 'Foundation'
 17 |     /// The certificate pinning configuration.
 18 |     private let pinning: CertificatePinning
ObjectiveC.NSObject:2:12: note: type declared here
  1 | @available(macOS 10.0, *)
  2 | open class NSObject : NSObjectProtocol {
    |            `- note: type declared here
  3 |     open class func load()
  4 |     open class func initialize()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:16:54: error: cannot use protocol 'URLSessionDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import Foundation
    | `- note: protocol 'URLSessionDelegate' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 14 | /// let client = WebClient(configuration: config, certificatePinning: pinning)
 15 | /// ```
 16 | public final class PinningSessionDelegate: NSObject, URLSessionDelegate, Sendable {
    |                                                      `- error: cannot use protocol 'URLSessionDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
 17 |     /// The certificate pinning configuration.
 18 |     private let pinning: CertificatePinning
Foundation.URLSessionDelegate:2:17: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | public protocol URLSessionDelegate : NSObjectProtocol, Sendable {
   |                 `- note: type declared here
 3 |     optional func urlSession(_ session: URLSession, didBecomeInvalidWithError error: (any Error)?)
 4 |     @available(swift, obsoleted: 3, renamed: "urlSession(_:didBecomeInvalidWithError:)")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:101:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: class 'URLSession' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 99 |     // MARK: - URLSessionTaskDelegate
100 |
101 |     public func urlSession(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'URLSession' is imported by this file as 'internal' from 'Foundation'
102 |         _: URLSession,
103 |         task _: URLSessionTask,
Foundation.URLSession:2:12: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | open class URLSession : NSObject, @unchecked Sendable {
   |            `- note: type declared here
 3 |     open class var shared: URLSession { get }
 4 |     @available(swift, obsoleted: 3, renamed: "shared")
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:78:20: error: class cannot be declared public because its superclass is internal
  1 | import Foundation
    | `- note: class 'NSObject' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 76 | /// Use this when you need different pinning configurations for different requests
 77 | /// within the same session.
 78 | public final class PinningTaskDelegate: NSObject, URLSessionTaskDelegate, Sendable {
    |                    |- error: class cannot be declared public because its superclass is internal
    |                    `- note: class 'NSObject' is imported by this file as 'internal' from 'Foundation'
 79 |     /// The certificate pinning configuration.
 80 |     private let pinning: CertificatePinning
ObjectiveC.NSObject:2:12: note: type declared here
  1 | @available(macOS 10.0, *)
  2 | open class NSObject : NSObjectProtocol {
    |            `- note: type declared here
  3 |     open class func load()
  4 |     open class func initialize()
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/PinningSessionDelegate.swift:78:51: error: cannot use protocol 'URLSessionTaskDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import Foundation
    | `- note: protocol 'URLSessionTaskDelegate' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A URLSession delegate that performs certificate pinning validation.
    :
 76 | /// Use this when you need different pinning configurations for different requests
 77 | /// within the same session.
 78 | public final class PinningTaskDelegate: NSObject, URLSessionTaskDelegate, Sendable {
    |                                                   `- error: cannot use protocol 'URLSessionTaskDelegate' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
 79 |     /// The certificate pinning configuration.
 80 |     private let pinning: CertificatePinning
Foundation.URLSessionTaskDelegate:2:17: note: type declared here
 1 | @available(macOS 10.9, *)
 2 | public protocol URLSessionTaskDelegate : URLSessionDelegate {
   |                 `- note: type declared here
 3 |     @available(macOS 13.0, *)
 4 |     optional func urlSession(_ session: URLSession, didCreateTask task: URLSessionTask)
[23/31] Compiling WebClient RequestProviding.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
 67 |     ///
 68 |     /// Defaults to `nil`.
 69 |     var queryItems: [URLQueryItem]? { get }
    |         |- error: property cannot be declared public because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
 70 |
 71 |     /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
112 |     var method: HTTPMethod { .get }
113 |     var pathComponents: [PathComponent]? { nil }
114 |     var queryItems: [URLQueryItem]? { nil }
    |         |- error: property must be declared internal because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 |     var headers: [String: String]? { nil }
116 |     var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
136 |     ///   - defaultEncoder: Default encoder to use if none specified.
137 |     /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 |     func urlRequest(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' is not '@usableFromInline' or public
 3 |     public struct OutputFormatting : OptionSet, Sendable {
 4 |         public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 |     open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 |     open var userInfo: [CodingUserInfoKey : Any] { get set }
47 |     public init()
   |            `- note: initializer 'init()' is not '@usableFromInline' or public
48 |     open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 |     @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
37 |     ///   - response: The HTTP response.
38 |     /// - Returns: The decoded success value.
39 |     func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 |     /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
44 |     ///   - response: The HTTP response.
45 |     /// - Returns: The decoded failure value.
46 |     func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 |         try decoder.decode(Success.self, from: data)
60 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
62 |
63 | public extension ResponseHandling where Success == Void {
64 |     func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 |         ()
66 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
70 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 |         try decoder.decode(Failure.self, from: data)
80 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
82 |
83 | public extension ResponseHandling where Failure == Void {
84 |     func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 |         ()
86 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
90 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 52 |     /// - Parameter data: The error response body.
 53 |     /// - Returns: The decoded failure, or `nil` if decoding fails.
 54 |     func decodeFailure(from data: Data) -> Failure?
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 55 | }
 56 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 58 |
 59 | public extension StreamingEndpoint {
 60 |     func decodeFailure(from _: Data) -> Failure? { nil }
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 61 | }
 62 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[24/31] Compiling WebClient ResponseHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
 67 |     ///
 68 |     /// Defaults to `nil`.
 69 |     var queryItems: [URLQueryItem]? { get }
    |         |- error: property cannot be declared public because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
 70 |
 71 |     /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
112 |     var method: HTTPMethod { .get }
113 |     var pathComponents: [PathComponent]? { nil }
114 |     var queryItems: [URLQueryItem]? { nil }
    |         |- error: property must be declared internal because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 |     var headers: [String: String]? { nil }
116 |     var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
136 |     ///   - defaultEncoder: Default encoder to use if none specified.
137 |     /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 |     func urlRequest(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' is not '@usableFromInline' or public
 3 |     public struct OutputFormatting : OptionSet, Sendable {
 4 |         public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 |     open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 |     open var userInfo: [CodingUserInfoKey : Any] { get set }
47 |     public init()
   |            `- note: initializer 'init()' is not '@usableFromInline' or public
48 |     open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 |     @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
37 |     ///   - response: The HTTP response.
38 |     /// - Returns: The decoded success value.
39 |     func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 |     /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
44 |     ///   - response: The HTTP response.
45 |     /// - Returns: The decoded failure value.
46 |     func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 |         try decoder.decode(Success.self, from: data)
60 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
62 |
63 | public extension ResponseHandling where Success == Void {
64 |     func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 |         ()
66 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
70 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 |         try decoder.decode(Failure.self, from: data)
80 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
82 |
83 | public extension ResponseHandling where Failure == Void {
84 |     func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 |         ()
86 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
90 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 52 |     /// - Parameter data: The error response body.
 53 |     /// - Returns: The decoded failure, or `nil` if decoding fails.
 54 |     func decodeFailure(from data: Data) -> Failure?
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 55 | }
 56 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 58 |
 59 | public extension StreamingEndpoint {
 60 |     func decodeFailure(from _: Data) -> Failure? { nil }
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 61 | }
 62 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[25/31] Compiling WebClient StreamingEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:69:9: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
 67 |     ///
 68 |     /// Defaults to `nil`.
 69 |     var queryItems: [URLQueryItem]? { get }
    |         |- error: property cannot be declared public because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
 70 |
 71 |     /// HTTP headers specific to this endpoint.
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:114:9: error: property must be declared internal because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'URLQueryItem' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
112 |     var method: HTTPMethod { .get }
113 |     var pathComponents: [PathComponent]? { nil }
114 |     var queryItems: [URLQueryItem]? { nil }
    |         |- error: property must be declared internal because its type uses an internal type
    |         `- note: struct 'URLQueryItem' is imported by this file as 'internal' from 'Foundation'
115 |     var headers: [String: String]? { nil }
116 |     var body: (any Encodable & Sendable)? { nil }
Foundation.URLQueryItem:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLQueryItem : Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public var name: String
 4 |     public var value: String?
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:138:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
136 |     ///   - defaultEncoder: Default encoder to use if none specified.
137 |     /// - Returns: A configured `URLRequest`, or `nil` if the URL couldn't be constructed.
138 |     func urlRequest(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: class 'JSONEncoder' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: class 'JSONEncoder' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:2:12: note: class 'JSONEncoder' is not '@usableFromInline' or public
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | open class JSONEncoder {
   |            `- note: class 'JSONEncoder' is not '@usableFromInline' or public
 3 |     public struct OutputFormatting : OptionSet, Sendable {
 4 |         public let rawValue: UInt
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/RequestProviding.swift:141:40: error: initializer 'init()' is internal and cannot be referenced from a default argument value
  1 | import Foundation
    | `- note: initializer 'init()' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol that defines how an endpoint constructs its HTTP request.
    :
139 |         relativeTo baseURL: URL,
140 |         defaultHeaders: [String: String] = [:],
141 |         defaultEncoder: any Encoding = JSONEncoder()
    |                                        `- error: initializer 'init()' is internal and cannot be referenced from a default argument value
142 |     ) -> URLRequest? {
143 |         // Build URL with path and query items
Foundation.JSONEncoder:47:12: note: initializer 'init()' is not '@usableFromInline' or public
45 |     open var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }
46 |     open var userInfo: [CodingUserInfoKey : Any] { get set }
47 |     public init()
   |            `- note: initializer 'init()' is not '@usableFromInline' or public
48 |     open func encode<T>(_ value: T) throws -> Data where T : Encodable
49 |     @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:39:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
37 |     ///   - response: The HTTP response.
38 |     /// - Returns: The decoded success value.
39 |     func decodeSuccess(from data: Data, response: HTTPURLResponse) throws -> Success
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |
41 |     /// Decodes a failure response (error body from server).
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:46:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
44 |     ///   - response: The HTTP response.
45 |     /// - Returns: The decoded failure value.
46 |     func decodeFailure(from data: Data, response: HTTPURLResponse) throws -> Failure
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
47 | }
48 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:58:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
56 |
57 | public extension ResponseHandling where Success: Decodable {
58 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
59 |         try decoder.decode(Success.self, from: data)
60 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:64:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
62 |
63 | public extension ResponseHandling where Success == Void {
64 |     func decodeSuccess(from _: Data, response _: HTTPURLResponse) throws -> Success {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
65 |         ()
66 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:69:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
67 | }
68 |
69 | public extension ResponseHandling where Success == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
70 |     func decodeSuccess(from data: Data, response _: HTTPURLResponse) throws -> Success {
71 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:78:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
76 |
77 | public extension ResponseHandling where Failure: Decodable {
78 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
79 |         try decoder.decode(Failure.self, from: data)
80 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:84:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
82 |
83 | public extension ResponseHandling where Failure == Void {
84 |     func decodeFailure(from _: Data, response _: HTTPURLResponse) throws -> Failure {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
85 |         ()
86 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/ResponseHandling.swift:89:8: error: extension cannot be declared public because its generic requirement uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol that defines how an endpoint handles HTTP responses.
   :
87 | }
88 |
89 | public extension ResponseHandling where Failure == Data {
   |        `- error: extension cannot be declared public because its generic requirement uses an internal type
90 |     func decodeFailure(from data: Data, response _: HTTPURLResponse) throws -> Failure {
91 |         data
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:54:10: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 52 |     /// - Parameter data: The error response body.
 53 |     /// - Returns: The decoded failure, or `nil` if decoding fails.
 54 |     func decodeFailure(from data: Data) -> Failure?
    |          |- error: method cannot be declared public because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 55 | }
 56 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Protocols/StreamingEndpoint.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A protocol for endpoints that return streaming responses.
    :
 58 |
 59 | public extension StreamingEndpoint {
 60 |     func decodeFailure(from _: Data) -> Failure? { nil }
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
 61 | }
 62 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[26/31] Compiling WebClient DownloadEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
29 |
30 |     /// Decodes a failure response from error data.
31 |     func decodeFailure(from data: Data) -> Failure?
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
33 |
34 | public extension DownloadEndpoint {
35 |     func decodeFailure(from _: Data) -> Failure? { nil }
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 |     func decodeFailure(from data: Data) -> Failure? {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |         try? JSONDecoder().decode(Failure.self, from: data)
41 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
47 | public struct DownloadResult: Sendable {
48 |     /// The downloaded data.
49 |     public let data: Data
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 |     /// The HTTP response.
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
50 |
51 |     /// The HTTP response.
52 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
57 |     }
58 |
59 |     public init(data: Data, response: HTTPURLResponse) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 |         self.data = data
61 |         self.response = response
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
68 | public struct FileDownloadResult: Sendable {
69 |     /// The URL where the file was saved.
70 |     public let fileURL: URL
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 |     /// The HTTP response.
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
71 |
72 |     /// The HTTP response.
73 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
76 |     public let bytesDownloaded: Int64
77 |
78 |     public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 |         self.fileURL = fileURL
80 |         self.response = response
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 91 | public final class ProgressTracker: ObservableObject, Sendable {
 92 |     /// The current progress.
 93 |     @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 94 |
 95 |     /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 94 |
 95 |     /// Whether the transfer is in progress.
 96 |     @Published public private(set) var isTransferring: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 97 |
 98 |     /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 97 |
 98 |     /// Whether the transfer completed successfully.
 99 |     @Published public private(set) var isCompleted: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 |     /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
100 |
101 |     /// The error if the transfer failed.
102 |     @Published public private(set) var error: (any Error)?
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 |     public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
 58 |     /// - Returns: The file download result.
 59 |     /// - Throws: `WebClientError<E.Failure>` on failure.
 60 |     func download<E: DownloadEndpoint>(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
 61 |         _ endpoint: E,
 62 |         to fileURL: URL,
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 |     /// The HTTP response.
381 |     public let response: HTTPURLResponse
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 |     /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
394 |
395 |     /// An async sequence of data chunks.
396 |     public var chunks: AsyncThrowingStream<Data, any Error> {
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 |         AsyncThrowingStream { continuation in
398 |             Task {
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[27/31] Compiling WebClient DownloadProgress.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
29 |
30 |     /// Decodes a failure response from error data.
31 |     func decodeFailure(from data: Data) -> Failure?
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
33 |
34 | public extension DownloadEndpoint {
35 |     func decodeFailure(from _: Data) -> Failure? { nil }
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 |     func decodeFailure(from data: Data) -> Failure? {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |         try? JSONDecoder().decode(Failure.self, from: data)
41 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
47 | public struct DownloadResult: Sendable {
48 |     /// The downloaded data.
49 |     public let data: Data
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 |     /// The HTTP response.
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
50 |
51 |     /// The HTTP response.
52 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
57 |     }
58 |
59 |     public init(data: Data, response: HTTPURLResponse) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 |         self.data = data
61 |         self.response = response
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
68 | public struct FileDownloadResult: Sendable {
69 |     /// The URL where the file was saved.
70 |     public let fileURL: URL
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 |     /// The HTTP response.
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
71 |
72 |     /// The HTTP response.
73 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
76 |     public let bytesDownloaded: Int64
77 |
78 |     public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 |         self.fileURL = fileURL
80 |         self.response = response
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 91 | public final class ProgressTracker: ObservableObject, Sendable {
 92 |     /// The current progress.
 93 |     @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 94 |
 95 |     /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 94 |
 95 |     /// Whether the transfer is in progress.
 96 |     @Published public private(set) var isTransferring: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 97 |
 98 |     /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 97 |
 98 |     /// Whether the transfer completed successfully.
 99 |     @Published public private(set) var isCompleted: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 |     /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
100 |
101 |     /// The error if the transfer failed.
102 |     @Published public private(set) var error: (any Error)?
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 |     public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
 58 |     /// - Returns: The file download result.
 59 |     /// - Throws: `WebClientError<E.Failure>` on failure.
 60 |     func download<E: DownloadEndpoint>(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
 61 |         _ endpoint: E,
 62 |         to fileURL: URL,
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 |     /// The HTTP response.
381 |     public let response: HTTPURLResponse
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 |     /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
394 |
395 |     /// An async sequence of data chunks.
396 |     public var chunks: AsyncThrowingStream<Data, any Error> {
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 |         AsyncThrowingStream { continuation in
398 |             Task {
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[28/31] Compiling WebClient WebClient+Download.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:31:10: error: method cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
29 |
30 |     /// Decodes a failure response from error data.
31 |     func decodeFailure(from data: Data) -> Failure?
   |          |- error: method cannot be declared public because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
32 | }
33 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:35:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
33 |
34 | public extension DownloadEndpoint {
35 |     func decodeFailure(from _: Data) -> Failure? { nil }
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
36 | }
37 |
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:39:10: error: method must be declared internal because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
37 |
38 | public extension DownloadEndpoint where Failure: Decodable {
39 |     func decodeFailure(from data: Data) -> Failure? {
   |          |- error: method must be declared internal because its parameter uses an internal type
   |          `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
40 |         try? JSONDecoder().decode(Failure.self, from: data)
41 |     }
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:49:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
47 | public struct DownloadResult: Sendable {
48 |     /// The downloaded data.
49 |     public let data: Data
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
50 |
51 |     /// The HTTP response.
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:52:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
50 |
51 |     /// The HTTP response.
52 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
53 |
54 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:59:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
57 |     }
58 |
59 |     public init(data: Data, response: HTTPURLResponse) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
60 |         self.data = data
61 |         self.response = response
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:70:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
68 | public struct FileDownloadResult: Sendable {
69 |     /// The URL where the file was saved.
70 |     public let fileURL: URL
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
71 |
72 |     /// The HTTP response.
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:73:16: error: property cannot be declared public because its type uses an internal type
 1 | import Foundation
   | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
71 |
72 |     /// The HTTP response.
73 |     public let response: HTTPURLResponse
   |                |- error: property cannot be declared public because its type uses an internal type
   |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
74 |
75 |     /// The total bytes downloaded.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadEndpoint.swift:78:12: error: initializer cannot be declared public because its parameter uses an internal type
 1 | import Foundation
   | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
 2 |
 3 | /// A protocol for endpoints that support download progress tracking.
   :
76 |     public let bytesDownloaded: Int64
77 |
78 |     public init(fileURL: URL, response: HTTPURLResponse, bytesDownloaded: Int64) {
   |            |- error: initializer cannot be declared public because its parameter uses an internal type
   |            `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
79 |         self.fileURL = fileURL
80 |         self.response = response
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:93:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 91 | public final class ProgressTracker: ObservableObject, Sendable {
 92 |     /// The current progress.
 93 |     @Published public private(set) var progress: TransferProgress = .init(bytesTransferred: 0, totalBytes: nil)
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 94 |
 95 |     /// Whether the transfer is in progress.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:96:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 94 |
 95 |     /// Whether the transfer is in progress.
 96 |     @Published public private(set) var isTransferring: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
 97 |
 98 |     /// Whether the transfer completed successfully.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:99:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
 97 |
 98 |     /// Whether the transfer completed successfully.
 99 |     @Published public private(set) var isCompleted: Bool = false
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
100 |
101 |     /// The error if the transfer failed.
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/DownloadProgress.swift:102:40: error: property cannot be declared public because its property wrapper type uses an internal type
  1 | import Foundation
    | `- note: type alias 'Published' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// Represents the progress of a download or upload operation.
    :
100 |
101 |     /// The error if the transfer failed.
102 |     @Published public private(set) var error: (any Error)?
    |                                        |- error: property cannot be declared public because its property wrapper type uses an internal type
    |                                        `- note: type alias 'Published' is imported by this file as 'internal' from 'Foundation'
103 |
104 |     public init() {}
Foundation.Published:2:18: note: type declared here
1 | @available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
2 | public typealias Published = Published
  |                  `- note: type declared here
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:60:10: error: method must be declared internal because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URL' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
 58 |     /// - Returns: The file download result.
 59 |     /// - Throws: `WebClientError<E.Failure>` on failure.
 60 |     func download<E: DownloadEndpoint>(
    |          |- error: method must be declared internal because its parameter uses an internal type
    |          `- note: struct 'URL' is imported by this file as 'internal' from 'Foundation'
 61 |         _ endpoint: E,
 62 |         to fileURL: URL,
Foundation.URL:2:15: note: type declared here
  1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
  2 | public struct URL : Equatable, Sendable, Hashable {
    |               `- note: type declared here
  3 |     public typealias BookmarkResolutionOptions = NSURL.BookmarkResolutionOptions
  4 |     public typealias BookmarkCreationOptions = NSURL.BookmarkCreationOptions
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:381:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: class 'HTTPURLResponse' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
379 | public struct DownloadStream<Failure: Sendable>: Sendable {
380 |     /// The HTTP response.
381 |     public let response: HTTPURLResponse
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: class 'HTTPURLResponse' is imported by this file as 'internal' from 'Foundation'
382 |
383 |     /// The total expected bytes, if known.
Foundation.HTTPURLResponse:2:12: note: type declared here
 1 | @available(macOS 10.2, *)
 2 | open class HTTPURLResponse : URLResponse, @unchecked Sendable {
   |            `- note: type declared here
 3 |     @available(macOS 10.7, *)
 4 |     public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String : String]?)
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Progress/WebClient+Download.swift:396:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | // MARK: - WebClient Download Extension
    :
394 |
395 |     /// An async sequence of data chunks.
396 |     public var chunks: AsyncThrowingStream<Data, any Error> {
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
397 |         AsyncThrowingStream { continuation in
398 |             Task {
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
[29/31] Compiling WebClient RateLimitInterceptor.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
 53 |     }
 54 |
 55 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 56 |         _ request: URLRequest,
 57 |         context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
103 |     }
104 |
105 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 |         _ data: Data,
107 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
163 |
164 |     /// The rate limit reset time, if provided by the server.
165 |     public let resetTime: Date?
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 |     /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
166 |
167 |     /// Creates a rate limited error.
168 |     public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 |         self.retryAfter = retryAfter
170 |         self.remaining = remaining
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
 77 |     ///   - host: The host being connected to.
 78 |     /// - Returns: `true` if validation passes, `false` otherwise.
 79 |     public func validate(serverTrust: SecTrust, host: String) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
 80 |         guard let pin = pin(for: host) else {
 81 |             // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
212 |
213 |     /// Checks if a certificate matches this pin.
214 |     public func matches(certificate: SecCertificate) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 |         // Check public key hashes
216 |         if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
235 |
236 |     /// Extracts and hashes the public key from a certificate.
237 |     public static func publicKeyHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 |         guard let publicKey = SecCertificateCopyKey(certificate) else {
239 |             return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
250 |
251 |     /// Hashes the entire certificate.
252 |     public static func certificateHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 |         let data = SecCertificateCopyData(certificate) as Data
254 |         let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import CryptoKit
  2 | import Foundation
    | `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
    |                                    `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 |     public var errorDescription: String? {
276 |         "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
  |                 `- note: type declared here
3 |     var errorDescription: String? { get }
4 |     var failureReason: String? { get }
[30/31] Compiling WebClient RateLimiter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
 53 |     }
 54 |
 55 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 56 |         _ request: URLRequest,
 57 |         context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
103 |     }
104 |
105 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 |         _ data: Data,
107 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
163 |
164 |     /// The rate limit reset time, if provided by the server.
165 |     public let resetTime: Date?
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 |     /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
166 |
167 |     /// Creates a rate limited error.
168 |     public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 |         self.retryAfter = retryAfter
170 |         self.remaining = remaining
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
 77 |     ///   - host: The host being connected to.
 78 |     /// - Returns: `true` if validation passes, `false` otherwise.
 79 |     public func validate(serverTrust: SecTrust, host: String) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
 80 |         guard let pin = pin(for: host) else {
 81 |             // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
212 |
213 |     /// Checks if a certificate matches this pin.
214 |     public func matches(certificate: SecCertificate) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 |         // Check public key hashes
216 |         if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
235 |
236 |     /// Extracts and hashes the public key from a certificate.
237 |     public static func publicKeyHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 |         guard let publicKey = SecCertificateCopyKey(certificate) else {
239 |             return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
250 |
251 |     /// Hashes the entire certificate.
252 |     public static func certificateHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 |         let data = SecCertificateCopyData(certificate) as Data
254 |         let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import CryptoKit
  2 | import Foundation
    | `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
    |                                    `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 |     public var errorDescription: String? {
276 |         "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
  |                 `- note: type declared here
3 |     var errorDescription: String? { get }
4 |     var failureReason: String? { get }
[31/31] Compiling WebClient CertificatePinning.swift
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:55:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'URLRequest' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
 53 |     }
 54 |
 55 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'URLRequest' is imported by this file as 'internal' from 'Foundation'
 56 |         _ request: URLRequest,
 57 |         context: RequestContext
Foundation.URLRequest:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct URLRequest : ReferenceConvertible, Equatable, Hashable, Sendable {
   |               `- note: type declared here
 3 |     public typealias ReferenceType = NSURLRequest
 4 |     public typealias CachePolicy = NSURLRequest.CachePolicy
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:105:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Data' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
103 |     }
104 |
105 |     public func intercept(
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: struct 'Data' is imported by this file as 'internal' from 'Foundation'
106 |         _ data: Data,
107 |         response: HTTPURLResponse,
Foundation.Data:2:23: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | @frozen public struct Data : Equatable, Hashable, RandomAccessCollection, MutableCollection, RangeReplaceableCollection, MutableDataProtocol, ContiguousBytes, Sendable {
   |                       `- note: type declared here
 3 |     public typealias Index = Int
 4 |     public typealias Indices = Range<Int>
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:165:16: error: property cannot be declared public because its type uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
163 |
164 |     /// The rate limit reset time, if provided by the server.
165 |     public let resetTime: Date?
    |                |- error: property cannot be declared public because its type uses an internal type
    |                `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
166 |
167 |     /// Creates a rate limited error.
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/RateLimiting/RateLimitInterceptor.swift:168:12: error: initializer cannot be declared public because its parameter uses an internal type
  1 | import Foundation
    | `- note: struct 'Date' imported as 'internal' from 'Foundation' here
  2 |
  3 | /// A request interceptor that enforces rate limiting before requests are sent.
    :
166 |
167 |     /// Creates a rate limited error.
168 |     public init(retryAfter: Duration? = nil, remaining: Int? = nil, resetTime: Date? = nil) {
    |            |- error: initializer cannot be declared public because its parameter uses an internal type
    |            `- note: struct 'Date' is imported by this file as 'internal' from 'Foundation'
169 |         self.retryAfter = retryAfter
170 |         self.remaining = remaining
Foundation.Date:2:15: note: type declared here
 1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
 2 | public struct Date : Comparable, Hashable, Equatable, Sendable {
   |               `- note: type declared here
 3 |     public static let timeIntervalBetween1970AndReferenceDate: Double
 4 |     public static var timeIntervalSinceReferenceDate: TimeInterval { get }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:79:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecTrust' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
 77 |     ///   - host: The host being connected to.
 78 |     /// - Returns: `true` if validation passes, `false` otherwise.
 79 |     public func validate(serverTrust: SecTrust, host: String) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecTrust' is imported by this file as 'internal' from 'Foundation'
 80 |         guard let pin = pin(for: host) else {
 81 |             // No pin for this host
Security.SecTrust:1:14: note: type declared here
1 | public class SecTrust : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:214:17: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
212 |
213 |     /// Checks if a certificate matches this pin.
214 |     public func matches(certificate: SecCertificate) -> Bool {
    |                 |- error: method cannot be declared public because its parameter uses an internal type
    |                 `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
215 |         // Check public key hashes
216 |         if !publicKeyHashes.isEmpty {
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:237:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
235 |
236 |     /// Extracts and hashes the public key from a certificate.
237 |     public static func publicKeyHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
238 |         guard let publicKey = SecCertificateCopyKey(certificate) else {
239 |             return nil
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:252:24: error: method cannot be declared public because its parameter uses an internal type
  1 | import CryptoKit
  2 | import Foundation
    | `- note: class 'SecCertificate' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
250 |
251 |     /// Hashes the entire certificate.
252 |     public static func certificateHash(for certificate: SecCertificate) -> String? {
    |                        |- error: method cannot be declared public because its parameter uses an internal type
    |                        `- note: class 'SecCertificate' is imported by this file as 'internal' from 'Foundation'
253 |         let data = SecCertificateCopyData(certificate) as Data
254 |         let hash = SHA256.hash(data: data)
Security.SecCertificate:1:14: note: type declared here
1 | public class SecCertificate : _CFObject {
  |              `- note: type declared here
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/WebClient/Security/CertificatePinning.swift:274:36: error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
  1 | import CryptoKit
  2 | import Foundation
    | `- note: protocol 'LocalizedError' imported as 'internal' from 'Foundation' here
  3 |
  4 | /// Configuration for SSL/TLS certificate pinning.
    :
272 | }
273 |
274 | extension CertificatePinningError: LocalizedError {
    |                                    `- error: cannot use protocol 'LocalizedError' in a public or '@usableFromInline' conformance; 'Foundation' was not imported publicly
275 |     public var errorDescription: String? {
276 |         "Certificate pinning failed for \(host): \(reason)"
Foundation.LocalizedError:2:17: note: type declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, *)
2 | public protocol LocalizedError : Error {
  |                 `- note: type declared here
3 |     var errorDescription: String? { get }
4 |     var failureReason: String? { get }
BUILD FAILURE 6.0 macosSpm