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.
94 lines
3.9 KiB
Swift
94 lines
3.9 KiB
Swift
//
|
|
// Centre.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Centre: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Controls is the control inventory, each entry naming what it asserts, the mechanism, where it is enforced, how it is verified and the clauses it maps to. */
|
|
public var controls: [JSONValue]?
|
|
/** Coverage is the per-framework counts, computed from Controls against each framework's whole published clause list. */
|
|
public var coverage: [CoverRow]?
|
|
/** Documents are the artifacts, each saying whether this reader may read it. */
|
|
public var documents: [DocRow]?
|
|
/** Faq is the knowledge base — the questions a reviewer asks, answered. */
|
|
public var faq: [JSONValue]?
|
|
/** Frameworks are the clause universes the coverage is computed against. */
|
|
public var frameworks: [FrameworkRow]?
|
|
/** Generated is when this answer was computed, unix milliseconds. */
|
|
public var generated: Int64?
|
|
/** Inventory is how the controls themselves stand, independent of framework. */
|
|
public var inventory: TrustTally?
|
|
/** Org is whose centre this is. */
|
|
public var org: String?
|
|
/** Policies are the published policies. */
|
|
public var policies: [JSONValue]?
|
|
public var profile: JSONValue?
|
|
public var risk: JSONValue?
|
|
/** Subprocessors are the third parties this organization sends data to. */
|
|
public var subprocessors: [JSONValue]?
|
|
/** Updates is the changelog, newest as the organization ordered it. */
|
|
public var updates: [JSONValue]?
|
|
/** Version is the embedded inventory's version. */
|
|
public var version: String?
|
|
|
|
public init(controls: [JSONValue]? = nil, coverage: [CoverRow]? = nil, documents: [DocRow]? = nil, faq: [JSONValue]? = nil, frameworks: [FrameworkRow]? = nil, generated: Int64? = nil, inventory: TrustTally? = nil, org: String? = nil, policies: [JSONValue]? = nil, profile: JSONValue? = nil, risk: JSONValue? = nil, subprocessors: [JSONValue]? = nil, updates: [JSONValue]? = nil, version: String? = nil) {
|
|
self.controls = controls
|
|
self.coverage = coverage
|
|
self.documents = documents
|
|
self.faq = faq
|
|
self.frameworks = frameworks
|
|
self.generated = generated
|
|
self.inventory = inventory
|
|
self.org = org
|
|
self.policies = policies
|
|
self.profile = profile
|
|
self.risk = risk
|
|
self.subprocessors = subprocessors
|
|
self.updates = updates
|
|
self.version = version
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case controls
|
|
case coverage
|
|
case documents
|
|
case faq
|
|
case frameworks
|
|
case generated
|
|
case inventory
|
|
case org
|
|
case policies
|
|
case profile
|
|
case risk
|
|
case subprocessors
|
|
case updates
|
|
case version
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(controls, forKey: .controls)
|
|
try container.encodeIfPresent(coverage, forKey: .coverage)
|
|
try container.encodeIfPresent(documents, forKey: .documents)
|
|
try container.encodeIfPresent(faq, forKey: .faq)
|
|
try container.encodeIfPresent(frameworks, forKey: .frameworks)
|
|
try container.encodeIfPresent(generated, forKey: .generated)
|
|
try container.encodeIfPresent(inventory, forKey: .inventory)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
try container.encodeIfPresent(policies, forKey: .policies)
|
|
try container.encodeIfPresent(profile, forKey: .profile)
|
|
try container.encodeIfPresent(risk, forKey: .risk)
|
|
try container.encodeIfPresent(subprocessors, forKey: .subprocessors)
|
|
try container.encodeIfPresent(updates, forKey: .updates)
|
|
try container.encodeIfPresent(version, forKey: .version)
|
|
}
|
|
}
|
|
|