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

51 lines
1.7 KiB
Swift

//
// FileJSON.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct FileJSON: Sendable, Codable, ParameterConvertible, Hashable {
/** Content is the file's bytes, empty when Truncated. */
public var content: String?
/** Encoding is how Content is carried: \"utf8\" verbatim, or \"base64\". */
public var encoding: String?
/** Path is the file's repo-relative path. */
public var path: String?
/** Size is the file's byte length in the repo. */
public var size: Int64?
/** Truncated marks a file past the read cap; no content is sent. A caller assembling a desired set must treat this as INCOMPLETE, never as empty. */
public var truncated: Bool?
public init(content: String? = nil, encoding: String? = nil, path: String? = nil, size: Int64? = nil, truncated: Bool? = nil) {
self.content = content
self.encoding = encoding
self.path = path
self.size = size
self.truncated = truncated
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case content
case encoding
case path
case size
case truncated
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(content, forKey: .content)
try container.encodeIfPresent(encoding, forKey: .encoding)
try container.encodeIfPresent(path, forKey: .path)
try container.encodeIfPresent(size, forKey: .size)
try container.encodeIfPresent(truncated, forKey: .truncated)
}
}