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.8 KiB
Swift
46 lines
1.8 KiB
Swift
//
|
|
// TrustSettings.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct TrustSettings: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Name is the centre's display name. Required to publish. */
|
|
public var name: String?
|
|
/** Nda is the text a party must accept before asking for a document. Optional; empty asks for no acceptance. The text in force is copied onto each request as it is accepted, so editing it never changes what anyone already agreed to. */
|
|
public var nda: String?
|
|
/** Publish makes the centre answer at its public address. False withdraws it: the address stops answering while every item, grant and record stays exactly as it was, so withdrawing is reversible and loses nothing. */
|
|
public var publish: Bool?
|
|
/** Slug is the public address to answer at — a lowercase label of letters, digits and hyphens. Required to publish, unique across the deployment, and one org holds one: publishing under a new address MOVES the centre rather than leaving the old one answering. */
|
|
public var slug: String?
|
|
|
|
public init(name: String? = nil, nda: String? = nil, publish: Bool? = nil, slug: String? = nil) {
|
|
self.name = name
|
|
self.nda = nda
|
|
self.publish = publish
|
|
self.slug = slug
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case name
|
|
case nda
|
|
case publish
|
|
case slug
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(nda, forKey: .nda)
|
|
try container.encodeIfPresent(publish, forKey: .publish)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
}
|
|
}
|
|
|