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

54 lines
1.8 KiB
Swift

//
// GraphNode.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct GraphNode: Sendable, Codable, ParameterConvertible, Hashable {
/** \"<doctype>:<name>\" — globally unique, click-to-open key */
public var id: String?
/** the document name (empty for synthetic nodes) */
public var name: String?
/** Project is the project scope the underlying document was saved under. Absent for a document saved with none, and for the synthetic nodes — unresolved link targets and connectors belong to no project. When ?project= narrows the graph, every page, memory and source node carries that value. */
public var project: String?
/** display label */
public var title: String?
/** kb.page | kb.memory | kb.source | kb.connector | unresolved */
public var type: String?
public init(id: String? = nil, name: String? = nil, project: String? = nil, title: String? = nil, type: String? = nil) {
self.id = id
self.name = name
self.project = project
self.title = title
self.type = type
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case id
case name
case project
case title
case type
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(type, forKey: .type)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension GraphNode: Identifiable {}