mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
56 lines
2.0 KiB
Swift
56 lines
2.0 KiB
Swift
//
|
|
// RiskPolicyVersion.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RiskPolicyVersion: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** At is when it entered force, RFC 3339, from the server clock. */
|
|
public var at: String?
|
|
/** By is the identity that stated it, stamped server-side from the validated principal at the moment it entered force. */
|
|
public var by: String?
|
|
/** Live is whether the model was permitted to change an outcome under it. */
|
|
public var live: Bool?
|
|
/** Review is the share of the stream the regime states may be examined. The threshold in force is derived from it, which is why a decision is only defensible against the version that produced it. */
|
|
public var review: Double?
|
|
/** Sample is the share of below-the-line events the regime retains for review. */
|
|
public var sample: Double?
|
|
/** Version names this regime in this organisation's history. */
|
|
public var version: Int64?
|
|
|
|
public init(at: String? = nil, by: String? = nil, live: Bool? = nil, review: Double? = nil, sample: Double? = nil, version: Int64? = nil) {
|
|
self.at = at
|
|
self.by = by
|
|
self.live = live
|
|
self.review = review
|
|
self.sample = sample
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case at
|
|
case by
|
|
case live
|
|
case review
|
|
case sample
|
|
case version
|
|
}
|
|
|
|
// 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(live, forKey: .live)
|
|
try container.encodeIfPresent(review, forKey: .review)
|
|
try container.encodeIfPresent(sample, forKey: .sample)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|