Files
zeekay b60f47a8bb Regenerate: the AI surface says what it answers
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.
2026-08-28 15:52:19 -07:00

126 lines
4.8 KiB
Swift

//
// Chat.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Chat: Sendable, Codable, ParameterConvertible, Hashable {
public var category: String?
public var clientIp: String?
public var clientIpDesc: String?
public var createdTime: String?
public var currency: String?
public var displayName: String?
public var isDeleted: Bool?
public var isHidden: Bool?
public var messageCount: Int?
public var modelProvider: String?
public var name: String?
public var needTitle: Bool?
public var organization: String?
public var owner: String?
public var price: Double?
public var store: String?
public var tokenCount: Int?
public var type: String?
public var updatedTime: String?
public var user: String?
public var user1: String?
public var user2: String?
public var userAgent: String?
public var userAgentDesc: String?
public var users: [String]?
public init(category: String? = nil, clientIp: String? = nil, clientIpDesc: String? = nil, createdTime: String? = nil, currency: String? = nil, displayName: String? = nil, isDeleted: Bool? = nil, isHidden: Bool? = nil, messageCount: Int? = nil, modelProvider: String? = nil, name: String? = nil, needTitle: Bool? = nil, organization: String? = nil, owner: String? = nil, price: Double? = nil, store: String? = nil, tokenCount: Int? = nil, type: String? = nil, updatedTime: String? = nil, user: String? = nil, user1: String? = nil, user2: String? = nil, userAgent: String? = nil, userAgentDesc: String? = nil, users: [String]? = nil) {
self.category = category
self.clientIp = clientIp
self.clientIpDesc = clientIpDesc
self.createdTime = createdTime
self.currency = currency
self.displayName = displayName
self.isDeleted = isDeleted
self.isHidden = isHidden
self.messageCount = messageCount
self.modelProvider = modelProvider
self.name = name
self.needTitle = needTitle
self.organization = organization
self.owner = owner
self.price = price
self.store = store
self.tokenCount = tokenCount
self.type = type
self.updatedTime = updatedTime
self.user = user
self.user1 = user1
self.user2 = user2
self.userAgent = userAgent
self.userAgentDesc = userAgentDesc
self.users = users
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case category
case clientIp
case clientIpDesc
case createdTime
case currency
case displayName
case isDeleted
case isHidden
case messageCount
case modelProvider
case name
case needTitle
case organization
case owner
case price
case store
case tokenCount
case type
case updatedTime
case user
case user1
case user2
case userAgent
case userAgentDesc
case users
}
// 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(clientIp, forKey: .clientIp)
try container.encodeIfPresent(clientIpDesc, forKey: .clientIpDesc)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(currency, forKey: .currency)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(isDeleted, forKey: .isDeleted)
try container.encodeIfPresent(isHidden, forKey: .isHidden)
try container.encodeIfPresent(messageCount, forKey: .messageCount)
try container.encodeIfPresent(modelProvider, forKey: .modelProvider)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(needTitle, forKey: .needTitle)
try container.encodeIfPresent(organization, forKey: .organization)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(price, forKey: .price)
try container.encodeIfPresent(store, forKey: .store)
try container.encodeIfPresent(tokenCount, forKey: .tokenCount)
try container.encodeIfPresent(type, forKey: .type)
try container.encodeIfPresent(updatedTime, forKey: .updatedTime)
try container.encodeIfPresent(user, forKey: .user)
try container.encodeIfPresent(user1, forKey: .user1)
try container.encodeIfPresent(user2, forKey: .user2)
try container.encodeIfPresent(userAgent, forKey: .userAgent)
try container.encodeIfPresent(userAgentDesc, forKey: .userAgentDesc)
try container.encodeIfPresent(users, forKey: .users)
}
}