mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
46 lines
1.6 KiB
Swift
46 lines
1.6 KiB
Swift
//
|
|
// ProjectsBuildSite.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ProjectsBuildSite: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Brief is what the site should be, in plain language. It is the whole input the model gets and it is size-bounded. */
|
|
public var brief: String?
|
|
/** Model names which model writes the site. Absent takes the deployment's default — this route spends inference on the caller's org either way. */
|
|
public var model: String?
|
|
/** Name is the site's display name. Taken from what the model writes when omitted. */
|
|
public var name: String?
|
|
/** Slug is the handle and public host label to publish under. Derived from the name, or from the brief, when omitted. */
|
|
public var slug: String?
|
|
|
|
public init(brief: String? = nil, model: String? = nil, name: String? = nil, slug: String? = nil) {
|
|
self.brief = brief
|
|
self.model = model
|
|
self.name = name
|
|
self.slug = slug
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case brief
|
|
case model
|
|
case name
|
|
case slug
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(brief, forKey: .brief)
|
|
try container.encodeIfPresent(model, forKey: .model)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
}
|
|
}
|
|
|