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

61 lines
2.1 KiB
Swift

//
// TrustDesk.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustDesk: Sendable, Codable, ParameterConvertible, Hashable {
/** Grants is every grant that has been made, newest first. */
public var grants: [TrustGrantView]?
/** Items is everything the org holds, both tiers, retired included. */
public var items: [TrustItemView]?
/** Name is the centre's display name. */
public var name: String?
/** Nda is the text a party must accept before asking. */
public var nda: String?
/** Published is whether the centre answers at its public address. */
public var published: Bool?
/** Requests is every ask, newest first, open ones included. */
public var requests: [TrustAskView]?
/** Slug is the public address, empty until the centre is published. */
public var slug: String?
public init(grants: [TrustGrantView]? = nil, items: [TrustItemView]? = nil, name: String? = nil, nda: String? = nil, published: Bool? = nil, requests: [TrustAskView]? = nil, slug: String? = nil) {
self.grants = grants
self.items = items
self.name = name
self.nda = nda
self.published = published
self.requests = requests
self.slug = slug
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case grants
case items
case name
case nda
case published
case requests
case slug
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(grants, forKey: .grants)
try container.encodeIfPresent(items, forKey: .items)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(nda, forKey: .nda)
try container.encodeIfPresent(published, forKey: .published)
try container.encodeIfPresent(requests, forKey: .requests)
try container.encodeIfPresent(slug, forKey: .slug)
}
}