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

64 lines
2.3 KiB
Swift

//
// IndexerView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct IndexerView: Sendable, Codable, ParameterConvertible, Hashable {
/** Chain is the chain this indexer indexes, as the indexer names it. */
public var chain: String?
/** Height is the latest INDEXED block height, as a decimal string. Absent when nothing has been indexed yet. */
public var height: String?
/** ID identifies the indexer: its chain name, else its chain id, else the brand. */
public var id: String?
/** Lag is how far behind the chain HEAD this indexer is. The indexer REST does not expose the head, so it is always absent rather than a fabricated zero. */
public var lag: String?
/** Network is the deployment's network tier: mainnet, testnet or devnet. */
public var network: String?
/** Status is \"degraded\" when /health explicitly reports unhealthy, else \"active\". */
public var status: String?
/** UpdatedAt is the latest indexed block's timestamp, RFC 3339 UTC. */
public var updatedAt: String?
public init(chain: String? = nil, height: String? = nil, id: String? = nil, lag: String? = nil, network: String? = nil, status: String? = nil, updatedAt: String? = nil) {
self.chain = chain
self.height = height
self.id = id
self.lag = lag
self.network = network
self.status = status
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case chain
case height
case id
case lag
case network
case status
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(chain, forKey: .chain)
try container.encodeIfPresent(height, forKey: .height)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(lag, forKey: .lag)
try container.encodeIfPresent(network, forKey: .network)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension IndexerView: Identifiable {}