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

46 lines
1.7 KiB
Swift

//
// ActivityPoint.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ActivityPoint: Sendable, Codable, ParameterConvertible, Hashable {
/** CostCents is the day's spend in whole US cents. A series is only ever returned for a subject the caller is authorized to see, so this is never withheld: 0 means no spend that day. */
public var costCents: Int64?
/** Day is the UTC calendar day this point covers, \"2006-01-02\". */
public var day: String?
/** Requests is the subject's request count on this day. 0 is a real, quiet day: the series is gap-filled, so every day in the range is present whether or not anything happened. */
public var requests: Int64?
/** Tokens is prompt+completion tokens on this day — normally the heatmap's intensity, scaled against ActivityTotals.MaxTokens. */
public var tokens: Int64?
public init(costCents: Int64? = nil, day: String? = nil, requests: Int64? = nil, tokens: Int64? = nil) {
self.costCents = costCents
self.day = day
self.requests = requests
self.tokens = tokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case costCents
case day
case requests
case tokens
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(costCents, forKey: .costCents)
try container.encodeIfPresent(day, forKey: .day)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(tokens, forKey: .tokens)
}
}