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.
61 lines
2.5 KiB
Swift
61 lines
2.5 KiB
Swift
//
|
|
// ProjectsDomain.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ProjectsDomain: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the host was claimed, as Unix seconds — not when it went live. */
|
|
public var createdAt: Int64?
|
|
/** Detail is what is holding the claim up, in words a person can act on. */
|
|
public var detail: String?
|
|
/** Host is the custom hostname claimed for this site. */
|
|
public var host: String?
|
|
/** Records are EXACTLY the DNS records to publish to prove ownership and route the host. Present only while pending, because a live host has already proved it; absent is therefore \"nothing left to do\", not \"we cannot say what to do\". */
|
|
public var records: [Record]?
|
|
/** Status is `live` when the edge answers for this host now, `pending` while the claim is waiting on DNS proof of ownership. A pending host is claimed but serves nothing. */
|
|
public var status: String?
|
|
/** URL is where the host will serve once it is live — present on a pending claim too, so a console can show the destination before it works. */
|
|
public var url: String?
|
|
/** Verified is the same fact as a boolean, for a caller that only needs the yes or no. It cannot disagree with status. */
|
|
public var verified: Bool?
|
|
|
|
public init(createdAt: Int64? = nil, detail: String? = nil, host: String? = nil, records: [Record]? = nil, status: String? = nil, url: String? = nil, verified: Bool? = nil) {
|
|
self.createdAt = createdAt
|
|
self.detail = detail
|
|
self.host = host
|
|
self.records = records
|
|
self.status = status
|
|
self.url = url
|
|
self.verified = verified
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case detail
|
|
case host
|
|
case records
|
|
case status
|
|
case url
|
|
case verified
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(detail, forKey: .detail)
|
|
try container.encodeIfPresent(host, forKey: .host)
|
|
try container.encodeIfPresent(records, forKey: .records)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
try container.encodeIfPresent(verified, forKey: .verified)
|
|
}
|
|
}
|
|
|