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

151 lines
6.2 KiB
Swift

//
// SessionDetail.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SessionDetail: Sendable, Codable, ParameterConvertible, Hashable {
public var account: String?
public var actor: String?
public var agent: String?
/** Children is the session's DIRECT children, one level down, each with its own counts. The promoted `children` integer beside it is how many there are; this is who they are. For the whole subtree, read the tree. */
public var childSessions: [SessionView]?
public var children: Int64?
public var createdAt: String?
public var cwd: String?
public var endedAt: String?
public var events: Int64?
public var host: String?
public var id: String?
public var lastEvent: LastEventView?
public var org: String?
public var parentSessionId: String?
public var progress: SessionProgress?
public var project: String?
public var provider: String?
public var published: Bool?
/** RecentEvents is the 50 most recent turns, OLDEST of those first — a transcript to read down, not a feed. The promoted `events` integer says how many the log holds in total; page the rest from a seq. */
public var recentEvents: [EventView]?
public var repo: String?
public var room: String?
public var rootSessionId: String?
public var startedAt: String?
public var status: String?
public var target: String?
public var taskRunId: String?
public var taskWorkflowId: String?
public var terminal: String?
public var title: String?
public var updatedAt: String?
public init(account: String? = nil, actor: String? = nil, agent: String? = nil, childSessions: [SessionView]? = nil, children: Int64? = nil, createdAt: String? = nil, cwd: String? = nil, endedAt: String? = nil, events: Int64? = nil, host: String? = nil, id: String? = nil, lastEvent: LastEventView? = nil, org: String? = nil, parentSessionId: String? = nil, progress: SessionProgress? = nil, project: String? = nil, provider: String? = nil, published: Bool? = nil, recentEvents: [EventView]? = nil, repo: String? = nil, room: String? = nil, rootSessionId: String? = nil, startedAt: String? = nil, status: String? = nil, target: String? = nil, taskRunId: String? = nil, taskWorkflowId: String? = nil, terminal: String? = nil, title: String? = nil, updatedAt: String? = nil) {
self.account = account
self.actor = actor
self.agent = agent
self.childSessions = childSessions
self.children = children
self.createdAt = createdAt
self.cwd = cwd
self.endedAt = endedAt
self.events = events
self.host = host
self.id = id
self.lastEvent = lastEvent
self.org = org
self.parentSessionId = parentSessionId
self.progress = progress
self.project = project
self.provider = provider
self.published = published
self.recentEvents = recentEvents
self.repo = repo
self.room = room
self.rootSessionId = rootSessionId
self.startedAt = startedAt
self.status = status
self.target = target
self.taskRunId = taskRunId
self.taskWorkflowId = taskWorkflowId
self.terminal = terminal
self.title = title
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case actor
case agent
case childSessions
case children
case createdAt
case cwd
case endedAt
case events
case host
case id
case lastEvent
case org
case parentSessionId
case progress
case project
case provider
case published
case recentEvents
case repo
case room
case rootSessionId
case startedAt
case status
case target
case taskRunId
case taskWorkflowId
case terminal
case title
case updatedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(account, forKey: .account)
try container.encodeIfPresent(actor, forKey: .actor)
try container.encodeIfPresent(agent, forKey: .agent)
try container.encodeIfPresent(childSessions, forKey: .childSessions)
try container.encodeIfPresent(children, forKey: .children)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(cwd, forKey: .cwd)
try container.encodeIfPresent(endedAt, forKey: .endedAt)
try container.encodeIfPresent(events, forKey: .events)
try container.encodeIfPresent(host, forKey: .host)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(lastEvent, forKey: .lastEvent)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(parentSessionId, forKey: .parentSessionId)
try container.encodeIfPresent(progress, forKey: .progress)
try container.encodeIfPresent(project, forKey: .project)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(published, forKey: .published)
try container.encodeIfPresent(recentEvents, forKey: .recentEvents)
try container.encodeIfPresent(repo, forKey: .repo)
try container.encodeIfPresent(room, forKey: .room)
try container.encodeIfPresent(rootSessionId, forKey: .rootSessionId)
try container.encodeIfPresent(startedAt, forKey: .startedAt)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(target, forKey: .target)
try container.encodeIfPresent(taskRunId, forKey: .taskRunId)
try container.encodeIfPresent(taskWorkflowId, forKey: .taskWorkflowId)
try container.encodeIfPresent(terminal, forKey: .terminal)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension SessionDetail: Identifiable {}