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

69 lines
2.9 KiB
Swift

//
// ReportRunIn.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ReportRunIn: Sendable, Codable, ParameterConvertible, Hashable {
/** Branch, CommitSha and Diffstat describe what the run produced; Error is the failure when OK is false. Each is clamped, never rejected. */
public var branch: String?
/** Changed says whether the run produced any commit. It is INDEPENDENT of OK: a run can succeed and change nothing (there was nothing to do), and a run can fail after committing some of its work. Two questions, two booleans. */
public var changed: Bool?
/** CommitSha is the tip the run pushed, clamped to 128 characters. Empty when it pushed nothing, which is the same case Changed reports false for. */
public var commitSha: String?
/** Diffstat is the run's own summary of what it changed, as text, clamped to 64 KiB. Free-form: it is shown, never parsed. */
public var diffstat: String?
/** Error is why the run failed, clamped to 64 KiB. It is CLAMPED rather than refused — a truncated reason is worth more than a rejected report, because a rejected report leaves the durable workflow waiting forever. */
public var error: String?
/** ID is the machine reporting, from the path. */
public var id: String?
/** OK is whether the run succeeded; Changed whether it produced any commit. */
public var ok: Bool?
/** RunID is the routed run being completed, from the path. */
public var runId: String?
public init(branch: String? = nil, changed: Bool? = nil, commitSha: String? = nil, diffstat: String? = nil, error: String? = nil, id: String? = nil, ok: Bool? = nil, runId: String? = nil) {
self.branch = branch
self.changed = changed
self.commitSha = commitSha
self.diffstat = diffstat
self.error = error
self.id = id
self.ok = ok
self.runId = runId
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case branch
case changed
case commitSha
case diffstat
case error
case id
case ok
case runId
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(branch, forKey: .branch)
try container.encodeIfPresent(changed, forKey: .changed)
try container.encodeIfPresent(commitSha, forKey: .commitSha)
try container.encodeIfPresent(diffstat, forKey: .diffstat)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(ok, forKey: .ok)
try container.encodeIfPresent(runId, forKey: .runId)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ReportRunIn: Identifiable {}