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.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// BuildOut.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BuildOut: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Bytes is the size of the bundled CommonJS the runtime will execute. */
|
|
public var bytes: Int64?
|
|
/** Generated is whether a model wrote the source from a spec, rather than the caller posting the source itself. */
|
|
public var generated: Bool?
|
|
/** Plugin is the plugin as stored, with its derived id and build time. */
|
|
public var plugin: AuthoredPlugin?
|
|
|
|
public init(bytes: Int64? = nil, generated: Bool? = nil, plugin: AuthoredPlugin? = nil) {
|
|
self.bytes = bytes
|
|
self.generated = generated
|
|
self.plugin = plugin
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case bytes
|
|
case generated
|
|
case plugin
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(bytes, forKey: .bytes)
|
|
try container.encodeIfPresent(generated, forKey: .generated)
|
|
try container.encodeIfPresent(plugin, forKey: .plugin)
|
|
}
|
|
}
|
|
|