Files
zeekay 87d088ed73 Regenerate against the current cloud document
The lock sat at 574d1f1d while the product moved on. The team surface
stopped at rooms — no messages path, no way to open one — so anything
built on this client had to reach past it with its own HTTP calls, which
is the duplication a generated client exists to prevent.
2026-09-01 02:21:56 -07:00

36 lines
1.3 KiB
Swift

//
// Roster.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Roster: Sendable, Codable, ParameterConvertible, Hashable {
/** Chains is `[]` where the registry answered and named none, and `null` where it did not answer — never absent, because a missing key and an empty list read alike and only one of them means \"there are none\". Each row carries its OWN reach for its figures, so a chain whose indexer is down is one row saying so. */
public var chains: [Market]?
/** Reach is how far the read of the REGISTRY got. It governs the list: a registry that did not answer yields no rows, and the reason it did not is here rather than in an empty array a caller would read as \"no chains exist\". */
public var reach: Reach?
public init(chains: [Market]? = nil, reach: Reach? = nil) {
self.chains = chains
self.reach = reach
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case chains
case reach
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(chains, forKey: .chains)
try container.encodeIfPresent(reach, forKey: .reach)
}
}