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.
61 lines
2.1 KiB
Swift
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)
|
|
}
|
|
}
|
|
|