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

51 lines
1.7 KiB
Swift

//
// WorldWire.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct WorldWire: Sendable, Codable, ParameterConvertible, Hashable {
/** Auth states what the wire asks of the caller, including which parts of it answer without a token. */
public var auth: String?
/** Name is the wire's short id — rest, mcp or zap. */
public var name: String?
/** Path is the address the wire answers on, under this same origin. */
public var path: String?
/** Protocol names what the wire speaks, so a caller knows which client to point at it. */
public var _protocol: String?
/** Spec is where this wire's operations are enumerated, when they are enumerated in a document at all. Empty for a wire that describes itself over its own protocol. */
public var spec: String?
public init(auth: String? = nil, name: String? = nil, path: String? = nil, _protocol: String? = nil, spec: String? = nil) {
self.auth = auth
self.name = name
self.path = path
self._protocol = _protocol
self.spec = spec
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case auth
case name
case path
case _protocol = "protocol"
case spec
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(auth, forKey: .auth)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(path, forKey: .path)
try container.encodeIfPresent(_protocol, forKey: ._protocol)
try container.encodeIfPresent(spec, forKey: .spec)
}
}