Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

71 lines
2.7 KiB
Swift

//
// ClaimRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ClaimRow: Sendable, Codable, ParameterConvertible, Hashable {
/** At is when a stored row was recorded. Zero for a seed row. */
public var at: Date?
/** Benchmark is the canonical test id the claim is about, from /catalog. */
public var benchmark: String?
/** By is who recorded it, when the caller said. */
public var by: String?
/** Model is the system the score is claimed for. */
public var model: String?
/** Origin is \"seed\" for a compiled row and \"stored\" for one written through this surface. It is the difference between what we shipped and what an operator has since corrected. */
public var origin: String?
/** Protocol records HOW it was scored — provider-reported, agentic, third-party-leaderboard — so a provider card is never read as a measurement. */
public var _protocol: String?
/** Provider is who the claim belongs to — the lab or leaderboard whose number this is. */
public var provider: String?
/** Score is the reported aggregate, as a percentage. */
public var score: Double?
/** Source is the citation the row was read from. */
public var source: String?
public init(at: Date? = nil, benchmark: String? = nil, by: String? = nil, model: String? = nil, origin: String? = nil, _protocol: String? = nil, provider: String? = nil, score: Double? = nil, source: String? = nil) {
self.at = at
self.benchmark = benchmark
self.by = by
self.model = model
self.origin = origin
self._protocol = _protocol
self.provider = provider
self.score = score
self.source = source
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case at
case benchmark
case by
case model
case origin
case _protocol = "protocol"
case provider
case score
case source
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(benchmark, forKey: .benchmark)
try container.encodeIfPresent(by, forKey: .by)
try container.encodeIfPresent(model, forKey: .model)
try container.encodeIfPresent(origin, forKey: .origin)
try container.encodeIfPresent(_protocol, forKey: ._protocol)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(score, forKey: .score)
try container.encodeIfPresent(source, forKey: .source)
}
}