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.
46 lines
1.6 KiB
Swift
46 lines
1.6 KiB
Swift
//
|
|
// BlueprintView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct BlueprintView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Blueprint is the whole authored document, including items disabled for the org-facing reads, with every enabled flag written out explicitly. */
|
|
public var blueprint: Blueprint?
|
|
/** Brand is the key this blueprint is stored under — the deployment's brand, or \"\" for the shared base blueprint it falls back to. */
|
|
public var brand: String?
|
|
/** Counts summarises how many items each collection holds. */
|
|
public var counts: BlueprintCounts?
|
|
/** Version is the active stored version number (1 is the seed). Each edit appends a new one; nothing is ever overwritten. */
|
|
public var version: Int64?
|
|
|
|
public init(blueprint: Blueprint? = nil, brand: String? = nil, counts: BlueprintCounts? = nil, version: Int64? = nil) {
|
|
self.blueprint = blueprint
|
|
self.brand = brand
|
|
self.counts = counts
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case blueprint
|
|
case brand
|
|
case counts
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(blueprint, forKey: .blueprint)
|
|
try container.encodeIfPresent(brand, forKey: .brand)
|
|
try container.encodeIfPresent(counts, forKey: .counts)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|