Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

65 lines
2.3 KiB
Swift

//
// EnrollReq.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct EnrollReq: Sendable, Codable, ParameterConvertible, Hashable {
/** Account is the provider-side account identifier. */
public var account: String?
/** Host is the machine's human hostname label. */
public var host: String?
/** Kind decides how the account's inference BILLS and defaults to subscription: a subscription account bills the user's own monthly plan and is metered here for visibility only, while an apikey account bills through commerce on the gateway path. */
public var kind: String?
/** Machine is the stable machine identifier. Required, length-bounded. */
public var machine: String?
/** OS is the machine's operating system label. */
public var os: String?
/** Plan is the provider plan label (e.g. \"Claude Max\"). */
public var plan: String?
/** Provider is the AI provider the account belongs to. Required, length-bounded. */
public var provider: String?
public var usage: JSONValue?
public init(account: String? = nil, host: String? = nil, kind: String? = nil, machine: String? = nil, os: String? = nil, plan: String? = nil, provider: String? = nil, usage: JSONValue? = nil) {
self.account = account
self.host = host
self.kind = kind
self.machine = machine
self.os = os
self.plan = plan
self.provider = provider
self.usage = usage
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case host
case kind
case machine
case os
case plan
case provider
case usage
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(account, forKey: .account)
try container.encodeIfPresent(host, forKey: .host)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(machine, forKey: .machine)
try container.encodeIfPresent(os, forKey: .os)
try container.encodeIfPresent(plan, forKey: .plan)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(usage, forKey: .usage)
}
}