Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

54 lines
2.0 KiB
Swift

//
// ActivityView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ActivityView: Sendable, Codable, ParameterConvertible, Hashable {
/** agent name */
public var agent: String?
/** RFC3339 UTC */
public var at: String?
/** ID identifies the event, and its shape says which kind it is: a run event carries the run's own id, while an agent event is the agent id suffixed \":created\" or \":updated\". Unique within a feed, and not an address — there is nothing to fetch it by. */
public var id: String?
/** invoked|failed|created|updated (from real events) */
public var kind: String?
/** Message is the line to render, already bounded: \"Invoked <model>\" for a run that worked, the run's own error truncated to 200 characters for one that did not (or \"Run failed\" when it said nothing), and a fixed phrase for the two agent events. Nothing here is invented — every event is a row that exists. */
public var message: String?
public init(agent: String? = nil, at: String? = nil, id: String? = nil, kind: String? = nil, message: String? = nil) {
self.agent = agent
self.at = at
self.id = id
self.kind = kind
self.message = message
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case agent
case at
case id
case kind
case message
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(agent, forKey: .agent)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(message, forKey: .message)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ActivityView: Identifiable {}