Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

66 lines
3.0 KiB
Swift

//
// TrustPublish.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustPublish: Sendable, Codable, ParameterConvertible, Hashable {
/** Attester is who vouched for it: \"self\" for anything the org states itself, or \"auditor\" for anything an independent auditor put their name to. REQUIRED, and anything other than \"self\" is read as \"auditor\" — the safe direction, since an auditor-signed item can only ever be released on request. */
public var attester: String?
/** Body is the item's content for the kinds that are text rather than a file: an article, a subprocessor entry, a dated note. */
public var body: String?
/** Document is a data-room document holding the item's bytes, uploaded first through POST /v1/dataroom/documents. Optional: an item can be content with no file. The document must already exist in the caller org's own store. */
public var document: String?
/** Framework is the standard it speaks to. Optional and free text — the value is the org's own, not a list this API keeps. */
public var framework: String?
/** Kind is what the item is: report, letter, policy, questionnaire, subprocessor, article or update. Required. */
public var kind: String?
/** Name is the item's title. Required. */
public var name: String?
/** Summary is a line about it. Optional. */
public var summary: String?
/** Tier is who may read it: \"public\" or \"gated\". It DEFAULTS TO GATED and anything that is not exactly \"public\" is gated, so an item published by a caller that says nothing is private and someone has to release it on purpose. \"public\" is refused for an auditor-signed item. */
public var tier: String?
public init(attester: String? = nil, body: String? = nil, document: String? = nil, framework: String? = nil, kind: String? = nil, name: String? = nil, summary: String? = nil, tier: String? = nil) {
self.attester = attester
self.body = body
self.document = document
self.framework = framework
self.kind = kind
self.name = name
self.summary = summary
self.tier = tier
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case attester
case body
case document
case framework
case kind
case name
case summary
case tier
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(attester, forKey: .attester)
try container.encodeIfPresent(body, forKey: .body)
try container.encodeIfPresent(document, forKey: .document)
try container.encodeIfPresent(framework, forKey: .framework)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(summary, forKey: .summary)
try container.encodeIfPresent(tier, forKey: .tier)
}
}