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

41 lines
1.9 KiB
Swift

//
// Ran.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Ran: Sendable, Codable, ParameterConvertible, Hashable {
/** ExitCode is the PROGRAM's own status — 0 succeeded, anything else is what it returned, and a Command runs under `sh -c` so its shell's conventions apply. A command that never reached an exit does not arrive here at all: a timeout or a stop cancels the channel, and that is an error on the call rather than a code of ours invented to fill this field. */
public var exitCode: Int64?
/** Stderr is standard error, kept apart from Stdout so a caller reading a program's OUTPUT is not reading its diagnostics as data. Same 1 MiB cap, same redaction. A program that failed usually says why here and nowhere else. */
public var stderr: String?
/** Stdout is what the program wrote to standard output, collected whole rather than streamed — to watch it arrive instead, name a RunIn.Session and read that session's feed. Capped at 1 MiB, past which it ends in \"[truncated at 1MiB]\". Every string named in RunIn.Blind is replaced by \"[redacted]\" before it gets here, and before it reaches the session. */
public var stdout: String?
public init(exitCode: Int64? = nil, stderr: String? = nil, stdout: String? = nil) {
self.exitCode = exitCode
self.stderr = stderr
self.stdout = stdout
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case exitCode
case stderr
case stdout
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(exitCode, forKey: .exitCode)
try container.encodeIfPresent(stderr, forKey: .stderr)
try container.encodeIfPresent(stdout, forKey: .stdout)
}
}