Files
zeekay 87d088ed73 Regenerate against the current cloud document
The lock sat at 574d1f1d while the product moved on. The team surface
stopped at rooms — no messages path, no way to open one — so anything
built on this client had to reach past it with its own HTTP calls, which
is the duplication a generated client exists to prevent.
2026-09-01 02:21:56 -07:00

41 lines
1.3 KiB
Swift

//
// GraphEdge.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GraphEdge: Sendable, Codable, ParameterConvertible, Hashable {
/** From is the id of the node the edge starts at: the child page for a parent edge, the page holding the wikilink for a link edge, the kb.source for a provenance edge. Always one of Nodes. */
public var from: String?
/** parent | link | provenance */
public var kind: String?
/** To is the id of the node the edge points at: the parent page, the linked page, the kb.connector. Always one of Nodes — a wikilink matching no page points at a synthetic \"unresolved:<lowercased title>\" node rather than dangling. */
public var to: String?
public init(from: String? = nil, kind: String? = nil, to: String? = nil) {
self.from = from
self.kind = kind
self.to = to
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case from
case kind
case to
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(from, forKey: .from)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(to, forKey: .to)
}
}