mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
41 lines
1.4 KiB
Swift
41 lines
1.4 KiB
Swift
//
|
|
// PricingModelList.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PricingModelList: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Models are the catalog entries visible to the caller, each an opaque object exactly as the pricing source emits it, with any admin override merged on top. An admin additionally sees hidden entries, each annotated under \"_overlay\". */
|
|
public var models: [[String: JSONValue]]?
|
|
/** Total is how many models this answer carries — recounted over the visible set, not the catalog's own total. */
|
|
public var total: Int64?
|
|
/** Updated is when the catalog was last refreshed, as the pricing source recorded it. */
|
|
public var updated: JSONValue?
|
|
|
|
public init(models: [[String: JSONValue]]? = nil, total: Int64? = nil, updated: JSONValue? = nil) {
|
|
self.models = models
|
|
self.total = total
|
|
self.updated = updated
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case models
|
|
case total
|
|
case updated
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(models, forKey: .models)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
try container.encodeIfPresent(updated, forKey: .updated)
|
|
}
|
|
}
|
|
|