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

61 lines
3.8 KiB
Swift

//
// RiskDisposeOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RiskDisposeOut: Sendable, Codable, ParameterConvertible, Hashable {
/** Before echoes the retention boundary that was applied, RFC 3339 in UTC, as this plane parsed it from the request. What was disposed of is every record WRITTEN strictly before it and not under litigation hold — written, measured against the server clock at the write, and not against the event or observation times the asserting caller supplies, because a tenant that could back-date could delete a compliance record on demand. A boundary younger than the platform floor of five years is refused before anything is removed. */
public var before: String?
/** Disposed is how many whole records were removed. Records are disposed of whole, never redacted: a partially-erased compliance record is one nobody can attest to. */
public var disposed: Int64?
/** Held is how many records inside the boundary were kept under litigation hold. */
public var held: Int64?
/** Oldest is the WRITE time of the oldest assertion this tenant still holds after the sweep, RFC 3339, and it is omitted exactly when nothing remains at all. Still older than Before means records survived on purpose and says which mechanism kept them: a litigation hold (Held), or the per-call bound with more to sweep on the next call (Remaining). */
public var oldest: String?
/** Remaining is how many disposable records are still older than the boundary. A sweep is bounded per call, so a non-zero value here means call again rather than that something failed. */
public var remaining: Int64?
/** Restored is how many records this sweep had already removed from the derived columnar copy and then did NOT dispose of, because a litigation hold arrived between the identify and the delete — and which were therefore written back to the derived copy before this answered. It is a NAMED state and not a silent repair. The copy is swept before the record so nothing is orphaned in the warehouse, which means a record the delete declines to remove is one the warehouse has already lost, with its seq behind the delivery cursor and no retry that can reach it. Non-zero here says the collision happened and was repaired; a non-zero that keeps recurring says retention and hold are racing on the same records, which is worth an operator's attention rather than a debug line. */
public var restored: Int64?
/** Total and Oldest describe what the tenant still holds afterwards, so a disposal that removed nothing is distinguishable from a tenant that had nothing. */
public var total: Int64?
public init(before: String? = nil, disposed: Int64? = nil, held: Int64? = nil, oldest: String? = nil, remaining: Int64? = nil, restored: Int64? = nil, total: Int64? = nil) {
self.before = before
self.disposed = disposed
self.held = held
self.oldest = oldest
self.remaining = remaining
self.restored = restored
self.total = total
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case before
case disposed
case held
case oldest
case remaining
case restored
case total
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(before, forKey: .before)
try container.encodeIfPresent(disposed, forKey: .disposed)
try container.encodeIfPresent(held, forKey: .held)
try container.encodeIfPresent(oldest, forKey: .oldest)
try container.encodeIfPresent(remaining, forKey: .remaining)
try container.encodeIfPresent(restored, forKey: .restored)
try container.encodeIfPresent(total, forKey: .total)
}
}