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.
69 lines
2.5 KiB
Swift
69 lines
2.5 KiB
Swift
//
|
|
// TrustEdit.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct TrustEdit: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Body replaces the item's content. */
|
|
public var body: String?
|
|
/** Document replaces the file the item points at — this is how a report is superseded by its next edition. The new document must already exist in the caller org's own store. */
|
|
public var document: String?
|
|
/** Framework replaces the standard it speaks to. */
|
|
public var framework: String?
|
|
/** ID is the item to change, taken from the path. */
|
|
public var id: String?
|
|
/** Name replaces its title. */
|
|
public var name: String?
|
|
/** Retired withdraws the item, or true→false restores it. A retired item leaves the public centre at once and can no longer be granted; grants already made over it stand, because they are part of the record. */
|
|
public var retired: Bool?
|
|
/** Summary replaces the line about it. */
|
|
public var summary: String?
|
|
/** Tier moves it between public and gated. Moving an auditor-signed item to public is refused. */
|
|
public var tier: String?
|
|
|
|
public init(body: String? = nil, document: String? = nil, framework: String? = nil, id: String? = nil, name: String? = nil, retired: Bool? = nil, summary: String? = nil, tier: String? = nil) {
|
|
self.body = body
|
|
self.document = document
|
|
self.framework = framework
|
|
self.id = id
|
|
self.name = name
|
|
self.retired = retired
|
|
self.summary = summary
|
|
self.tier = tier
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case body
|
|
case document
|
|
case framework
|
|
case id
|
|
case name
|
|
case retired
|
|
case summary
|
|
case tier
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(body, forKey: .body)
|
|
try container.encodeIfPresent(document, forKey: .document)
|
|
try container.encodeIfPresent(framework, forKey: .framework)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(retired, forKey: .retired)
|
|
try container.encodeIfPresent(summary, forKey: .summary)
|
|
try container.encodeIfPresent(tier, forKey: .tier)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension TrustEdit: Identifiable {}
|