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.4 KiB
Swift
46 lines
1.4 KiB
Swift
//
|
|
// McpCatalogSync.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct McpCatalogSync: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Added is how many listings the catalog did not have before. */
|
|
public var added: Int64?
|
|
/** Registry is the upstream this pass read. */
|
|
public var registry: String?
|
|
/** Total is how many listings the catalog holds now. */
|
|
public var total: Int64?
|
|
/** Updated is how many the publisher has changed since we last looked. */
|
|
public var updated: Int64?
|
|
|
|
public init(added: Int64? = nil, registry: String? = nil, total: Int64? = nil, updated: Int64? = nil) {
|
|
self.added = added
|
|
self.registry = registry
|
|
self.total = total
|
|
self.updated = updated
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case added
|
|
case registry
|
|
case total
|
|
case updated
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(added, forKey: .added)
|
|
try container.encodeIfPresent(registry, forKey: .registry)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(updated, forKey: .updated)
|
|
}
|
|
}
|
|
|