mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The forge tree held the package scaffolding and none of the generated sources — 2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply absent, so anything depending on this copy had a package that compiled to nothing usable. Generated from the current API document rather than reconciled with the other copy: a client is a function of the spec, so regenerating answers "which history wins" without anyone having to choose. .spec-lock records which document, so the next reader can tell.
51 lines
2.4 KiB
Swift
51 lines
2.4 KiB
Swift
//
|
|
// RiskCatalog.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RiskCatalog: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Gap says why a lens could not be measured, when that is the case. Each reason names its own lens, because \"the surface is unreadable\" and \"the network baseline is unreadable\" are different facts. */
|
|
public var gap: String?
|
|
/** Model is the governed inventory: one entry per dimension of the model space, each carrying the typology it serves and the published standard that asks for it. It is the same for every organisation, because it is the model's shape. */
|
|
public var model: [RiskModelFeature]?
|
|
/** Network is the published cross-organisation baseline over the same window, so the surface above has something to be read AGAINST. It is the same for every caller and it names nobody. It carries no tenant and cannot be made to: the table it reads has no org column, every figure is a quantile over at least kAnonOrgs organisations weighted one vote each, and a band that does not meet that floor is dropped on the way out. */
|
|
public var network: [RiskBand]?
|
|
/** Surface is what this organisation's own event surface carries, per dimension, measured over the window. A dimension present in no bucket is blind here — the model reads its neutral value and a reviewer has to be able to see that. */
|
|
public var surface: [RiskOrgFeature]?
|
|
/** Tenant is whose surface was measured. */
|
|
public var tenant: String?
|
|
|
|
public init(gap: String? = nil, model: [RiskModelFeature]? = nil, network: [RiskBand]? = nil, surface: [RiskOrgFeature]? = nil, tenant: String? = nil) {
|
|
self.gap = gap
|
|
self.model = model
|
|
self.network = network
|
|
self.surface = surface
|
|
self.tenant = tenant
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case gap
|
|
case model
|
|
case network
|
|
case surface
|
|
case tenant
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(gap, forKey: .gap)
|
|
try container.encodeIfPresent(model, forKey: .model)
|
|
try container.encodeIfPresent(network, forKey: .network)
|
|
try container.encodeIfPresent(surface, forKey: .surface)
|
|
try container.encodeIfPresent(tenant, forKey: .tenant)
|
|
}
|
|
}
|
|
|