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
1.9 KiB
Swift

//
// AccountsTotal.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AccountsTotal: Sendable, Codable, ParameterConvertible, Hashable {
/** Accounts is how many linked accounts the total folds. */
public var accounts: Int64?
/** CompletionTokens is the total completion-token count. */
public var completionTokens: Int64?
/** CostCents is the total cost in cents. */
public var costCents: Int64?
/** PromptTokens is the total prompt-token count. */
public var promptTokens: Int64?
/** Requests is the total request count the gateway routed. */
public var requests: Int64?
/** TotalTokens is the total token count. */
public var totalTokens: Int64?
public init(accounts: Int64? = nil, completionTokens: Int64? = nil, costCents: Int64? = nil, promptTokens: Int64? = nil, requests: Int64? = nil, totalTokens: Int64? = nil) {
self.accounts = accounts
self.completionTokens = completionTokens
self.costCents = costCents
self.promptTokens = promptTokens
self.requests = requests
self.totalTokens = totalTokens
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accounts
case completionTokens
case costCents
case promptTokens
case requests
case totalTokens
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accounts, forKey: .accounts)
try container.encodeIfPresent(completionTokens, forKey: .completionTokens)
try container.encodeIfPresent(costCents, forKey: .costCents)
try container.encodeIfPresent(promptTokens, forKey: .promptTokens)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(totalTokens, forKey: .totalTokens)
}
}