mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
46 lines
1.5 KiB
Swift
46 lines
1.5 KiB
Swift
//
|
|
// McpCatalog.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct McpCatalog: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Catalog is this page of listings, featured first, then by name. */
|
|
public var catalog: [MCPListing]?
|
|
/** Limit is the page size that was actually applied — the default or the clamp, when the request asked for neither or for too much. */
|
|
public var limit: Int64?
|
|
/** Offset is where this page started, so a caller pages from what the server did rather than from what it asked for. */
|
|
public var offset: Int64?
|
|
/** Total is how many listings the filter matched, which is more than this page holds whenever there is a next one. */
|
|
public var total: Int64?
|
|
|
|
public init(catalog: [MCPListing]? = nil, limit: Int64? = nil, offset: Int64? = nil, total: Int64? = nil) {
|
|
self.catalog = catalog
|
|
self.limit = limit
|
|
self.offset = offset
|
|
self.total = total
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case catalog
|
|
case limit
|
|
case offset
|
|
case total
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(catalog, forKey: .catalog)
|
|
try container.encodeIfPresent(limit, forKey: .limit)
|
|
try container.encodeIfPresent(offset, forKey: .offset)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
}
|
|
}
|
|
|