Files
swift-sdk/Sources/Hanzo/Models/RiskLabelVocabulary.swift
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
2.5 KiB
Swift

//
// RiskLabelVocabulary.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RiskLabelVocabulary: Sendable, Codable, ParameterConvertible, Hashable {
/** Dispositions is the closed set a write's `disposition` must be drawn from, published in full so a caller can validate a batch before filing it instead of discovering a refusal per member: \"productive\", \"unproductive\", and \"\" — the EMPTY STRING is a member and means an explicit unjudged, so a client that filters empties out of this list drops a third of the vocabulary and can never file \"we looked and could not say\". They are the AML engine's own spelling, verbatim, which is what lets a replay there report against these values. */
public var dispositions: [String]?
/** Kinds, Dispositions and Sources are the closed vocabularies. A value outside them is refused at the endpoint. */
public var kinds: [String]?
/** Precedence is the sources in the order that resolves a conflict, strongest first. It is DERIVED from the same declaration the resolver reads, so the published order is the enforced order and cannot drift from it. */
public var _precedence: [String]?
/** Retention is the platform floor in days: no tenant may dispose of a label younger than this, because a label can be the input to an adverse action. */
public var retention: Int64?
/** Rule states the tie-breaks below rank, in order, so a caller reading a contested resolution can reproduce it. */
public var rule: [String]?
public init(dispositions: [String]? = nil, kinds: [String]? = nil, _precedence: [String]? = nil, retention: Int64? = nil, rule: [String]? = nil) {
self.dispositions = dispositions
self.kinds = kinds
self._precedence = _precedence
self.retention = retention
self.rule = rule
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case dispositions
case kinds
case _precedence = "precedence"
case retention
case rule
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(dispositions, forKey: .dispositions)
try container.encodeIfPresent(kinds, forKey: .kinds)
try container.encodeIfPresent(_precedence, forKey: ._precedence)
try container.encodeIfPresent(retention, forKey: .retention)
try container.encodeIfPresent(rule, forKey: .rule)
}
}