Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

91 lines
3.9 KiB
Swift

//
// ReferenceSet.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ReferenceSet: Sendable, Codable, ParameterConvertible, Hashable {
/** Age is how long ago that was. */
public var age: String?
/** AsOf is when the OLDEST contributing publisher was current, RFC 3339. The oldest and not the newest: a set is exactly as fresh as its weakest source. */
public var asOf: String?
/** Keys is how many members the baseline carries. */
public var keys: Int64?
/** Kind is how the baseline comes to exist: fetch (downloaded from a publisher), local (computed here), attest (held by the component that screens against it, freshness reported), or gap (declared and NOT held, because the source needs a licence we do not have). */
public var kind: String?
/** Match is how a key is tested: exact, domain, net, digits, pattern or range. */
public var match: String?
/** MaxAge is how old this set may be before it is stale. */
public var maxAge: String?
/** Overrides is how many entries YOUR org has laid over this baseline. */
public var overrides: Int64?
/** Refusal names why the set cannot be relied on, when it cannot: never loaded, held elsewhere, or a licence we do not hold. Non-empty means a lookup against this set will not answer, rather than answering clean. */
public var refusal: String?
/** Set is the name this set is addressed by. */
public var _set: String?
/** Sources is each contributing publisher, its licence and its own freshness. */
public var sources: [ReferenceSource]?
/** Stale is whether it is past that bound. A stale set still answers and says so, because yesterday's list beats none. */
public var stale: Bool?
/** Version is the exact baseline consulted — every contributing publisher and its content digest. A decision records this and an auditor resolves it back. */
public var version: String?
/** What the set holds, in one sentence. */
public var what: String?
public init(age: String? = nil, asOf: String? = nil, keys: Int64? = nil, kind: String? = nil, match: String? = nil, maxAge: String? = nil, overrides: Int64? = nil, refusal: String? = nil, _set: String? = nil, sources: [ReferenceSource]? = nil, stale: Bool? = nil, version: String? = nil, what: String? = nil) {
self.age = age
self.asOf = asOf
self.keys = keys
self.kind = kind
self.match = match
self.maxAge = maxAge
self.overrides = overrides
self.refusal = refusal
self._set = _set
self.sources = sources
self.stale = stale
self.version = version
self.what = what
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case age
case asOf
case keys
case kind
case match
case maxAge
case overrides
case refusal
case _set = "set"
case sources
case stale
case version
case what
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(age, forKey: .age)
try container.encodeIfPresent(asOf, forKey: .asOf)
try container.encodeIfPresent(keys, forKey: .keys)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(match, forKey: .match)
try container.encodeIfPresent(maxAge, forKey: .maxAge)
try container.encodeIfPresent(overrides, forKey: .overrides)
try container.encodeIfPresent(refusal, forKey: .refusal)
try container.encodeIfPresent(_set, forKey: ._set)
try container.encodeIfPresent(sources, forKey: .sources)
try container.encodeIfPresent(stale, forKey: .stale)
try container.encodeIfPresent(version, forKey: .version)
try container.encodeIfPresent(what, forKey: .what)
}
}