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.
71 lines
3.1 KiB
Swift
71 lines
3.1 KiB
Swift
//
|
|
// Blueprint.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Blueprint: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Brand is the white-label key this playbook serves. Empty is the shared default every unbranded deployment falls back to. */
|
|
public var brand: String?
|
|
/** Enabled is the whole-playbook lever. Absent reads as ON; an explicit false makes resolution skip this playbook entirely and fall through to the next tier, rather than serving an empty journey. */
|
|
public var enabled: Bool?
|
|
/** Principles are the fixed 64-archetype spine a tactic files under. It is authored data an operator organises the corpus by; nothing in the checklist engine reads it. */
|
|
public var principles: [Principle]?
|
|
/** Sections are the journey's ordered phases. */
|
|
public var sections: [Section]?
|
|
/** Steps are every checklist item, disabled ones included — this is the authored document, not the projection an org runs. */
|
|
public var steps: [JourneyStep]?
|
|
/** Strategies are the tactics corpus the recommendation reads narrow. */
|
|
public var strategies: [Strategy]?
|
|
/** Templates are the reusable prompts and snippets steps reference by id. */
|
|
public var templates: [Page]?
|
|
/** Title is the playbook's name as a person reads it. */
|
|
public var title: String?
|
|
/** Version is the playbook's own name for this edition of its content, chosen by whoever authored it. It travels onto every journey projected from it. The store's numeric revision is a separate value and lives beside it. */
|
|
public var version: String?
|
|
|
|
public init(brand: String? = nil, enabled: Bool? = nil, principles: [Principle]? = nil, sections: [Section]? = nil, steps: [JourneyStep]? = nil, strategies: [Strategy]? = nil, templates: [Page]? = nil, title: String? = nil, version: String? = nil) {
|
|
self.brand = brand
|
|
self.enabled = enabled
|
|
self.principles = principles
|
|
self.sections = sections
|
|
self.steps = steps
|
|
self.strategies = strategies
|
|
self.templates = templates
|
|
self.title = title
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case brand
|
|
case enabled
|
|
case principles
|
|
case sections
|
|
case steps
|
|
case strategies
|
|
case templates
|
|
case title
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(brand, forKey: .brand)
|
|
try container.encodeIfPresent(enabled, forKey: .enabled)
|
|
try container.encodeIfPresent(principles, forKey: .principles)
|
|
try container.encodeIfPresent(sections, forKey: .sections)
|
|
try container.encodeIfPresent(steps, forKey: .steps)
|
|
try container.encodeIfPresent(strategies, forKey: .strategies)
|
|
try container.encodeIfPresent(templates, forKey: .templates)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|