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.
69 lines
2.1 KiB
Swift
69 lines
2.1 KiB
Swift
//
|
|
// Label.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Label: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var endTime: Double?
|
|
public var id: String?
|
|
public var speaker: String?
|
|
public var startTime: Double?
|
|
public var tag1: String?
|
|
public var tag2: String?
|
|
public var tag3: String?
|
|
public var text: String?
|
|
public var type: String?
|
|
public var user: String?
|
|
|
|
public init(endTime: Double? = nil, id: String? = nil, speaker: String? = nil, startTime: Double? = nil, tag1: String? = nil, tag2: String? = nil, tag3: String? = nil, text: String? = nil, type: String? = nil, user: String? = nil) {
|
|
self.endTime = endTime
|
|
self.id = id
|
|
self.speaker = speaker
|
|
self.startTime = startTime
|
|
self.tag1 = tag1
|
|
self.tag2 = tag2
|
|
self.tag3 = tag3
|
|
self.text = text
|
|
self.type = type
|
|
self.user = user
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case endTime
|
|
case id
|
|
case speaker
|
|
case startTime
|
|
case tag1
|
|
case tag2
|
|
case tag3
|
|
case text
|
|
case type
|
|
case user
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(endTime, forKey: .endTime)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(speaker, forKey: .speaker)
|
|
try container.encodeIfPresent(startTime, forKey: .startTime)
|
|
try container.encodeIfPresent(tag1, forKey: .tag1)
|
|
try container.encodeIfPresent(tag2, forKey: .tag2)
|
|
try container.encodeIfPresent(tag3, forKey: .tag3)
|
|
try container.encodeIfPresent(text, forKey: .text)
|
|
try container.encodeIfPresent(type, forKey: .type)
|
|
try container.encodeIfPresent(user, forKey: .user)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension Label: Identifiable {}
|