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

46 lines
1.8 KiB
Swift

//
// CodeResult.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CodeResult: Sendable, Codable, ParameterConvertible, Hashable {
/** Files are what this run CREATED OR CHANGED, decided by mtime against a marker taken before the program started — so it is the run's output, not a listing of the directory. Fetch each from GET /v1/exec/download/{session}/{id}. */
public var files: [CodeFile]?
/** SessionID is the sandbox this run used — the one that was passed in, or the fresh one that was leased. Pass it to the next run to keep the filesystem. */
public var sessionId: String?
/** Stderr is what the program wrote to standard error, INCLUDING a compiler's diagnostics and the trace of a program that exited non-zero. Its presence is not a failed call. */
public var stderr: String?
/** Stdout is what the program wrote to standard output. */
public var stdout: String?
public init(files: [CodeFile]? = nil, sessionId: String? = nil, stderr: String? = nil, stdout: String? = nil) {
self.files = files
self.sessionId = sessionId
self.stderr = stderr
self.stdout = stdout
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case files
case sessionId = "session_id"
case stderr
case stdout
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(files, forKey: .files)
try container.encodeIfPresent(sessionId, forKey: .sessionId)
try container.encodeIfPresent(stderr, forKey: .stderr)
try container.encodeIfPresent(stdout, forKey: .stdout)
}
}