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

153 lines
5.8 KiB
Swift

//
// Audit.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Audit: Sendable, Codable, ParameterConvertible, Hashable {
public var action: String?
public var block: String?
public var block2: String?
public var blockHash: String?
public var blockHash2: String?
public var city: String?
public var clientIp: String?
public var count: Int?
public var createdTime: String?
public var errorText: String?
public var id: Int?
public var isTriggered: Bool?
public var language: String?
public var method: String?
public var name: String?
public var needCommit: Bool?
public var object: String?
public var organization: String?
public var owner: String?
public var provider: String?
public var provider2: String?
public var query: String?
public var region: String?
public var requestUri: String?
public var response: String?
public var section: String?
public var transaction: String?
public var transaction2: String?
public var unit: String?
public var user: String?
public var userAgent: String?
public init(action: String? = nil, block: String? = nil, block2: String? = nil, blockHash: String? = nil, blockHash2: String? = nil, city: String? = nil, clientIp: String? = nil, count: Int? = nil, createdTime: String? = nil, errorText: String? = nil, id: Int? = nil, isTriggered: Bool? = nil, language: String? = nil, method: String? = nil, name: String? = nil, needCommit: Bool? = nil, object: String? = nil, organization: String? = nil, owner: String? = nil, provider: String? = nil, provider2: String? = nil, query: String? = nil, region: String? = nil, requestUri: String? = nil, response: String? = nil, section: String? = nil, transaction: String? = nil, transaction2: String? = nil, unit: String? = nil, user: String? = nil, userAgent: String? = nil) {
self.action = action
self.block = block
self.block2 = block2
self.blockHash = blockHash
self.blockHash2 = blockHash2
self.city = city
self.clientIp = clientIp
self.count = count
self.createdTime = createdTime
self.errorText = errorText
self.id = id
self.isTriggered = isTriggered
self.language = language
self.method = method
self.name = name
self.needCommit = needCommit
self.object = object
self.organization = organization
self.owner = owner
self.provider = provider
self.provider2 = provider2
self.query = query
self.region = region
self.requestUri = requestUri
self.response = response
self.section = section
self.transaction = transaction
self.transaction2 = transaction2
self.unit = unit
self.user = user
self.userAgent = userAgent
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case action
case block
case block2
case blockHash
case blockHash2
case city
case clientIp
case count
case createdTime
case errorText
case id
case isTriggered
case language
case method
case name
case needCommit
case object
case organization
case owner
case provider
case provider2
case query
case region
case requestUri
case response
case section
case transaction
case transaction2
case unit
case user
case userAgent
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(action, forKey: .action)
try container.encodeIfPresent(block, forKey: .block)
try container.encodeIfPresent(block2, forKey: .block2)
try container.encodeIfPresent(blockHash, forKey: .blockHash)
try container.encodeIfPresent(blockHash2, forKey: .blockHash2)
try container.encodeIfPresent(city, forKey: .city)
try container.encodeIfPresent(clientIp, forKey: .clientIp)
try container.encodeIfPresent(count, forKey: .count)
try container.encodeIfPresent(createdTime, forKey: .createdTime)
try container.encodeIfPresent(errorText, forKey: .errorText)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(isTriggered, forKey: .isTriggered)
try container.encodeIfPresent(language, forKey: .language)
try container.encodeIfPresent(method, forKey: .method)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(needCommit, forKey: .needCommit)
try container.encodeIfPresent(object, forKey: .object)
try container.encodeIfPresent(organization, forKey: .organization)
try container.encodeIfPresent(owner, forKey: .owner)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(provider2, forKey: .provider2)
try container.encodeIfPresent(query, forKey: .query)
try container.encodeIfPresent(region, forKey: .region)
try container.encodeIfPresent(requestUri, forKey: .requestUri)
try container.encodeIfPresent(response, forKey: .response)
try container.encodeIfPresent(section, forKey: .section)
try container.encodeIfPresent(transaction, forKey: .transaction)
try container.encodeIfPresent(transaction2, forKey: .transaction2)
try container.encodeIfPresent(unit, forKey: .unit)
try container.encodeIfPresent(user, forKey: .user)
try container.encodeIfPresent(userAgent, forKey: .userAgent)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Audit: Identifiable {}