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

64 lines
2.5 KiB
Swift

//
// NodeView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct NodeView: Sendable, Codable, ParameterConvertible, Hashable {
/** Caps is the capability list the node reported. It is a self-report, useful to SHOW and never load-bearing: what a node may actually be asked to do is decided at the socket by the deployment's allowlist. */
public var caps: [String]?
/** Commands is the command list the node reported. Same standing as Caps: a self-report, checked again at the socket before anything runs. */
public var commands: [String]?
/** ConnectedAt is when this node's socket was established, RFC3339 UTC. */
public var connectedAt: String?
/** DisplayName is the human name the node reported for itself. */
public var displayName: String?
/** ID is the node's own identifier within the org — the value POST /v1/node/{id}/invoke addresses it by. */
public var id: String?
/** Platform is the operating system and architecture the node reported. */
public var platform: String?
/** Version is the node agent's own version string. */
public var version: String?
public init(caps: [String]? = nil, commands: [String]? = nil, connectedAt: String? = nil, displayName: String? = nil, id: String? = nil, platform: String? = nil, version: String? = nil) {
self.caps = caps
self.commands = commands
self.connectedAt = connectedAt
self.displayName = displayName
self.id = id
self.platform = platform
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case caps
case commands
case connectedAt
case displayName
case id
case platform
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(caps, forKey: .caps)
try container.encodeIfPresent(commands, forKey: .commands)
try container.encodeIfPresent(connectedAt, forKey: .connectedAt)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(platform, forKey: .platform)
try container.encodeIfPresent(version, forKey: .version)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension NodeView: Identifiable {}