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.
56 lines
1.9 KiB
Swift
56 lines
1.9 KiB
Swift
//
|
|
// HelpArticle.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct HelpArticle: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Body is the article's rich-text content as the author saved it. */
|
|
public var body: String?
|
|
/** Category is the name of the knowledge-base section the article sits in, or empty when it is filed under none. */
|
|
public var category: String?
|
|
/** Excerpt is the short summary the author wrote for listings, or empty. */
|
|
public var excerpt: String?
|
|
/** Slug is the article's stable public identifier — the path segment it was addressed by. */
|
|
public var slug: String?
|
|
/** Title is the article's headline. */
|
|
public var title: String?
|
|
/** UpdatedAt is the unix second the article was last written. */
|
|
public var updatedAt: Int64?
|
|
|
|
public init(body: String? = nil, category: String? = nil, excerpt: String? = nil, slug: String? = nil, title: String? = nil, updatedAt: Int64? = nil) {
|
|
self.body = body
|
|
self.category = category
|
|
self.excerpt = excerpt
|
|
self.slug = slug
|
|
self.title = title
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case body
|
|
case category
|
|
case excerpt
|
|
case slug
|
|
case title
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(body, forKey: .body)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(excerpt, forKey: .excerpt)
|
|
try container.encodeIfPresent(slug, forKey: .slug)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|