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.
56 lines
1.6 KiB
Swift
56 lines
1.6 KiB
Swift
//
|
|
// Preset.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Preset: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** the blend — model ids from the arena */
|
|
public var arms: [String]?
|
|
/** served as enso-<name> */
|
|
public var name: String?
|
|
/** why this blend (audit) */
|
|
public var note: String?
|
|
/** scoping org (never cross-tenant) */
|
|
public var owner: String?
|
|
/** fan-out width (>=1) */
|
|
public var panel: Int64?
|
|
/** escalation order over arms */
|
|
public var rank: [String]?
|
|
|
|
public init(arms: [String]? = nil, name: String? = nil, note: String? = nil, owner: String? = nil, panel: Int64? = nil, rank: [String]? = nil) {
|
|
self.arms = arms
|
|
self.name = name
|
|
self.note = note
|
|
self.owner = owner
|
|
self.panel = panel
|
|
self.rank = rank
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case arms
|
|
case name
|
|
case note
|
|
case owner
|
|
case panel
|
|
case rank
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(arms, forKey: .arms)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(note, forKey: .note)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(panel, forKey: .panel)
|
|
try container.encodeIfPresent(rank, forKey: .rank)
|
|
}
|
|
}
|
|
|