mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
1.8 KiB
Swift
51 lines
1.8 KiB
Swift
//
|
|
// ReferenceReceipt.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ReferenceReceipt: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AsOf is when the load happened, RFC 3339. Absent is dated on arrival, which can only make the list look older than it is. */
|
|
public var asOf: String?
|
|
/** Keys is how many designations that load carried. Zero from a publisher who designates somebody is a failed load wearing a successful one's clothes, and belongs in Refusal instead. */
|
|
public var keys: Int64?
|
|
/** Refusal is why the load failed, when it did. */
|
|
public var refusal: String?
|
|
/** Source is the publisher this receipt is for. */
|
|
public var source: String?
|
|
/** Version is the digest of what that publisher supplied, so a refresh that changed nothing can be told from a refresh that did not run. */
|
|
public var version: String?
|
|
|
|
public init(asOf: String? = nil, keys: Int64? = nil, refusal: String? = nil, source: String? = nil, version: String? = nil) {
|
|
self.asOf = asOf
|
|
self.keys = keys
|
|
self.refusal = refusal
|
|
self.source = source
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case asOf
|
|
case keys
|
|
case refusal
|
|
case source
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(asOf, forKey: .asOf)
|
|
try container.encodeIfPresent(keys, forKey: .keys)
|
|
try container.encodeIfPresent(refusal, forKey: .refusal)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|