Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

69 lines
2.7 KiB
Swift

//
// ActionRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ActionRecord: Sendable, Codable, ParameterConvertible, Hashable {
/** Args is the JSON the tool was called with, recorded as TEXT exactly as sent — including whatever the AI drafted into it — so a run can be read back and reproduced. It is a string, not an object. */
public var args: String?
/** CreatedAt is when the run was recorded, as Unix seconds. The ledger is read newest-first on this column. */
public var createdAt: Int64?
/** Err is why the run failed, when it did. Empty on a successful run. */
public var err: String?
/** ID identifies this one execution. The ledger is append-only, so an id is never reused and never updated. */
public var id: String?
/** OK is whether the tool ran to completion. It is the ledger's own verdict, not the tool's opinion of the outcome — a tool that succeeded at reporting bad news is ok. */
public var ok: Bool?
/** Result is the tool's own answer, likewise recorded as JSON text. Present on a failed run too, where the tool answered but the answer was a refusal. */
public var result: String?
/** StepID is the checklist step the Business AI was acting on. */
public var stepId: String?
/** Tool is the MCP tool that was dispatched, by name. */
public var tool: String?
public init(args: String? = nil, createdAt: Int64? = nil, err: String? = nil, id: String? = nil, ok: Bool? = nil, result: String? = nil, stepId: String? = nil, tool: String? = nil) {
self.args = args
self.createdAt = createdAt
self.err = err
self.id = id
self.ok = ok
self.result = result
self.stepId = stepId
self.tool = tool
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case args
case createdAt
case err
case id
case ok
case result
case stepId
case tool
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(args, forKey: .args)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(err, forKey: .err)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(ok, forKey: .ok)
try container.encodeIfPresent(result, forKey: .result)
try container.encodeIfPresent(stepId, forKey: .stepId)
try container.encodeIfPresent(tool, forKey: .tool)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ActionRecord: Identifiable {}