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.
54 lines
1.9 KiB
Swift
54 lines
1.9 KiB
Swift
//
|
|
// Section.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Section: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Detail is what this phase of the journey is for, in prose. */
|
|
public var detail: String?
|
|
/** Enabled is the admin lever. Absent reads as ON, so only an explicit false turns a phase off — and it takes every step filed under it out of the journey, not just the heading. */
|
|
public var enabled: Bool?
|
|
/** ID is the slug a step's `section` names to file itself under this phase. */
|
|
public var id: String?
|
|
/** Order places the phase in the journey, ascending. Ties fall back to authoring order, and an omitted order sorts as 0 — ahead of everything. */
|
|
public var order: Int64?
|
|
/** Title is the phase heading a person reads above its steps. */
|
|
public var title: String?
|
|
|
|
public init(detail: String? = nil, enabled: Bool? = nil, id: String? = nil, order: Int64? = nil, title: String? = nil) {
|
|
self.detail = detail
|
|
self.enabled = enabled
|
|
self.id = id
|
|
self.order = order
|
|
self.title = title
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case detail
|
|
case enabled
|
|
case id
|
|
case order
|
|
case title
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(detail, forKey: .detail)
|
|
try container.encodeIfPresent(enabled, forKey: .enabled)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(order, forKey: .order)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension Section: Identifiable {}
|