mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
74 lines
2.5 KiB
Swift
74 lines
2.5 KiB
Swift
//
|
|
// Graph.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Graph: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var category: String?
|
|
public var createdTime: String?
|
|
public var density: Int?
|
|
public var displayName: String?
|
|
public var endTime: String?
|
|
public var errorText: String?
|
|
public var layout: String?
|
|
public var name: String?
|
|
public var owner: String?
|
|
public var startTime: String?
|
|
public var store: String?
|
|
public var text: String?
|
|
|
|
public init(category: String? = nil, createdTime: String? = nil, density: Int? = nil, displayName: String? = nil, endTime: String? = nil, errorText: String? = nil, layout: String? = nil, name: String? = nil, owner: String? = nil, startTime: String? = nil, store: String? = nil, text: String? = nil) {
|
|
self.category = category
|
|
self.createdTime = createdTime
|
|
self.density = density
|
|
self.displayName = displayName
|
|
self.endTime = endTime
|
|
self.errorText = errorText
|
|
self.layout = layout
|
|
self.name = name
|
|
self.owner = owner
|
|
self.startTime = startTime
|
|
self.store = store
|
|
self.text = text
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case category
|
|
case createdTime
|
|
case density
|
|
case displayName
|
|
case endTime
|
|
case errorText
|
|
case layout
|
|
case name
|
|
case owner
|
|
case startTime
|
|
case store
|
|
case text
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(createdTime, forKey: .createdTime)
|
|
try container.encodeIfPresent(density, forKey: .density)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(endTime, forKey: .endTime)
|
|
try container.encodeIfPresent(errorText, forKey: .errorText)
|
|
try container.encodeIfPresent(layout, forKey: .layout)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(owner, forKey: .owner)
|
|
try container.encodeIfPresent(startTime, forKey: .startTime)
|
|
try container.encodeIfPresent(store, forKey: .store)
|
|
try container.encodeIfPresent(text, forKey: .text)
|
|
}
|
|
}
|
|
|