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.4 KiB
Swift

//
// ProviderRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ProviderRow: Sendable, Codable, ParameterConvertible, Hashable {
/** CostCents is what they cost the org, in US cents. */
public var costCents: Int64?
/** Provider is the upstream the requests were routed to, e.g. anthropic. */
public var provider: String?
/** Requests is how many completions the org made against that provider. */
public var requests: Int64?
/** Tokens is the total tokens those completions consumed, prompt plus completion. */
public var tokens: Int64?
public init(costCents: Int64? = nil, provider: String? = nil, requests: Int64? = nil, tokens: Int64? = nil) {
self.costCents = costCents
self.provider = provider
self.requests = requests
self.tokens = tokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case costCents
case provider
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(provider, forKey: .provider)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(tokens, forKey: .tokens)
}
}