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

56 lines
2.3 KiB
Swift

//
// MetricRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct MetricRow: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when version 1 was written, RFC 3339 UTC. */
public var createdAt: String?
/** CurrentVer is the version number served as current. It always equals `versions`: numbering is dense from 1, and deleting a prompt takes its whole history with it rather than leaving a gap. */
public var currentVersion: Int64?
/** LastUpdatedAt is when the newest version was appended, RFC 3339 UTC — the age of the template you would get today. */
public var lastUpdatedAt: String?
/** Name is the prompt this row is about — its org-unique handle. */
public var name: String?
/** Type is the current version's kind. */
public var type: String?
/** Versions is how many revisions the prompt has, COUNTED in the store and uncapped — so it can exceed the 100 entries a list row or a detail response carries. Note the type: here `versions` is a number, while on a list row it is the list of version numbers. */
public var versions: Int64?
public init(createdAt: String? = nil, currentVersion: Int64? = nil, lastUpdatedAt: String? = nil, name: String? = nil, type: String? = nil, versions: Int64? = nil) {
self.createdAt = createdAt
self.currentVersion = currentVersion
self.lastUpdatedAt = lastUpdatedAt
self.name = name
self.type = type
self.versions = versions
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case currentVersion
case lastUpdatedAt
case name
case type
case versions
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(currentVersion, forKey: .currentVersion)
try container.encodeIfPresent(lastUpdatedAt, forKey: .lastUpdatedAt)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(type, forKey: .type)
try container.encodeIfPresent(versions, forKey: .versions)
}
}