Files
zeekay b0db427c79 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:45 -07:00

94 lines
6.1 KiB
Swift

//
// RiskLabelRecord.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RiskLabelRecord: Sendable, Codable, ParameterConvertible, Hashable {
/** At is when the judged EVENT happened, RFC 3339 in UTC, truncated to the second. The filer supplies it, and it is what a maturity horizon measures from: this event's as-of is At plus the horizon. A resolve names it back exactly, to the second. */
public var at: String?
/** By is the identity that asserted, stamped server-side at the write. */
public var by: String?
/** Confidence is the filer's own confidence in [0,1] — 1 for a processor chargeback, less for an analyst's hunch. Zero is the ordinary value for a filer that stated none, and it means the weakest tie-break there is rather than \"unknown\". It breaks a tie only WITHIN one precedence rank and can never lift a weak source above a strong one. */
public var confidence: Double?
/** Disposition is what was concluded, from the closed set: `productive` — the event led somewhere, escalated, reported or charged back; `unproductive` — judged not suspicious; or the empty string for an explicit UNJUDGED, which is a real assertion (\"we looked and could not say\") and not the absence of one. */
public var disposition: String?
/** Evidence is the pointer to the record this conclusion came from: a dispute id, a case id, a decision id. At most 512 bytes, required at the write, and opaque to this plane — stored and returned verbatim, never resolved. It is what an adverse action is defended with, which is why an assertion carrying none is refused at the endpoint. */
public var evidence: String?
/** Hold is true while a litigation hold is on this record: retention will not dispose of it, at any age. False — and it is omitted then — leaves the record disposable once it is older than the boundary a sweep names. It is a fact about the RECORD and not about the world, so it is not folded into ID, no write path can set it, and the hold op is the one way it moves in either direction. */
public var hold: Bool?
/** ID is the assertion's content digest — SHA-256 over every semantic field, rendered hex — computed server-side and never supplied. It is the key a redelivery collapses onto, and it is the id the hold op names. */
public var id: String?
/** Kind is what the subject IS, from the closed set: account, agent, merchant, payout, person, session or transaction. With Subject and At it is the IDENTITY of the judged event — the triple a resolve names and the triple assertions are grouped by, so a typo in it would file a label against an event nobody asks about. */
public var kind: String?
/** Knowable is when THIS PLANE could first have answered with the assertion: the later of Seen and the server clock at the write, derived server-side. It is the instant the leakage guard compares, so it is published beside the claim it was derived from — an answer whose rule nobody can see is one nobody can check. */
public var knowable: String?
/** Seen is when the FILER said the assertion became knowable. It is provenance: it is recorded and published, and it decides nothing. */
public var seen: String?
/** Source is WHO asserted, from the closed set: chargeoff, dispute, case, refund, review or sample. It is the primary term of the precedence rule — an unknown source has no rank and a conflict with it could not be resolved — so it is what decides which of two disagreeing assertions is in force. */
public var source: String?
/** Subject is the entity that was judged, named in the TENANT'S OWN namespace and at most 512 bytes. It is opaque here: stored, matched and returned verbatim, never dereferenced. It has no meaning outside this tenant — the record is the tenant's own file — so an id lifted from another tenant's response names nothing. */
public var subject: String?
/** Wrote is the server clock at the write. It is the only time on the record the tenant did not supply, and it is what retention measures against. */
public var wrote: String?
public init(at: String? = nil, by: String? = nil, confidence: Double? = nil, disposition: String? = nil, evidence: String? = nil, hold: Bool? = nil, id: String? = nil, kind: String? = nil, knowable: String? = nil, seen: String? = nil, source: String? = nil, subject: String? = nil, wrote: String? = nil) {
self.at = at
self.by = by
self.confidence = confidence
self.disposition = disposition
self.evidence = evidence
self.hold = hold
self.id = id
self.kind = kind
self.knowable = knowable
self.seen = seen
self.source = source
self.subject = subject
self.wrote = wrote
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case at
case by
case confidence
case disposition
case evidence
case hold
case id
case kind
case knowable
case seen
case source
case subject
case wrote
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(at, forKey: .at)
try container.encodeIfPresent(by, forKey: .by)
try container.encodeIfPresent(confidence, forKey: .confidence)
try container.encodeIfPresent(disposition, forKey: .disposition)
try container.encodeIfPresent(evidence, forKey: .evidence)
try container.encodeIfPresent(hold, forKey: .hold)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(knowable, forKey: .knowable)
try container.encodeIfPresent(seen, forKey: .seen)
try container.encodeIfPresent(source, forKey: .source)
try container.encodeIfPresent(subject, forKey: .subject)
try container.encodeIfPresent(wrote, forKey: .wrote)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension RiskLabelRecord: Identifiable {}