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.
51 lines
1.8 KiB
Swift
51 lines
1.8 KiB
Swift
//
|
|
// TierLimits.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct TierLimits: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var allowedModels: [String]?
|
|
public var dailyCreditsCents: Int64?
|
|
public var displayName: String?
|
|
public var maxAgents: Int64?
|
|
public var name: String?
|
|
/** UnlimitedAgents reports that MaxAgents 0 means \"no ceiling\" rather than \"no agents\" — the reading a bare zero cannot carry. */
|
|
public var unlimitedAgents: Bool?
|
|
|
|
public init(allowedModels: [String]? = nil, dailyCreditsCents: Int64? = nil, displayName: String? = nil, maxAgents: Int64? = nil, name: String? = nil, unlimitedAgents: Bool? = nil) {
|
|
self.allowedModels = allowedModels
|
|
self.dailyCreditsCents = dailyCreditsCents
|
|
self.displayName = displayName
|
|
self.maxAgents = maxAgents
|
|
self.name = name
|
|
self.unlimitedAgents = unlimitedAgents
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case allowedModels
|
|
case dailyCreditsCents
|
|
case displayName
|
|
case maxAgents
|
|
case name
|
|
case unlimitedAgents
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(allowedModels, forKey: .allowedModels)
|
|
try container.encodeIfPresent(dailyCreditsCents, forKey: .dailyCreditsCents)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(maxAgents, forKey: .maxAgents)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(unlimitedAgents, forKey: .unlimitedAgents)
|
|
}
|
|
}
|
|
|