Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

74 lines
3.1 KiB
Swift

//
// TrustItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustItem: Sendable, Codable, ParameterConvertible, Hashable {
/** Available is \"now\" when the item can be read immediately, or \"on request\" when it is released only to a party who asks and is answered. It is the one field a page renders the difference from. */
public var available: String?
/** Body is the item's content, for the kinds that are text rather than a file — an article, a subprocessor entry, a note. Empty for anything released on request: a summary of a document is still the document. */
public var body: String?
/** Framework is the standard the item speaks to, when it speaks to one. */
public var framework: String?
/** ID addresses the item — for reading it if it is available now, or for naming it in a request if it is not. */
public var id: String?
/** Kind is what the item is: report, letter, policy, questionnaire, subprocessor, article or update. */
public var kind: String?
/** Name is the item's title. */
public var name: String?
/** Signed is \"self\" when the org states it itself and \"auditor\" when an independent auditor put their name to it. It is the reason an item is available now or on request, so a reader can see the rule rather than infer it. */
public var signed: String?
/** Summary is a line about the item. */
public var summary: String?
/** UpdatedAt is when the item last changed, in unix milliseconds. */
public var updatedAt: Int64?
public init(available: String? = nil, body: String? = nil, framework: String? = nil, id: String? = nil, kind: String? = nil, name: String? = nil, signed: String? = nil, summary: String? = nil, updatedAt: Int64? = nil) {
self.available = available
self.body = body
self.framework = framework
self.id = id
self.kind = kind
self.name = name
self.signed = signed
self.summary = summary
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case available
case body
case framework
case id
case kind
case name
case signed
case summary
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(available, forKey: .available)
try container.encodeIfPresent(body, forKey: .body)
try container.encodeIfPresent(framework, forKey: .framework)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(signed, forKey: .signed)
try container.encodeIfPresent(summary, forKey: .summary)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension TrustItem: Identifiable {}