Files
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

79 lines
3.1 KiB
Swift

//
// DocRow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DocRow: Sendable, Codable, ParameterConvertible, Hashable {
/** Attested reports whether somebody OUTSIDE this organization put their name to it. Those are the artifacts a reviewer asks for, and they are released through a grant rather than published — there is no field that can say otherwise. */
public var attested: Bool?
/** Href is where to read it, present only when this reader may. */
public var href: String?
/** ID is the document's id within this organization's centre. */
public var id: String?
/** Kind is the artifact type — soc2, iso, pentest, letter, caiq, sig, vsa, questionnaire, policy or other. */
public var kind: String?
/** Label is the artifact type in words, for rendering. */
public var label: String?
/** Note is anything the organization says about this artifact. */
public var note: String?
/** Released reports whether THIS reader may read it. False means the artifact exists and is available on request. */
public var released: Bool?
/** Tier is \"public\" or \"gated\". It defaults to gated, so a new artifact is closed until somebody opens it deliberately. */
public var tier: String?
/** Title is what the document is called. */
public var title: String?
/** Updated is when the record last changed, unix milliseconds. */
public var updated: Int64?
public init(attested: Bool? = nil, href: String? = nil, id: String? = nil, kind: String? = nil, label: String? = nil, note: String? = nil, released: Bool? = nil, tier: String? = nil, title: String? = nil, updated: Int64? = nil) {
self.attested = attested
self.href = href
self.id = id
self.kind = kind
self.label = label
self.note = note
self.released = released
self.tier = tier
self.title = title
self.updated = updated
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case attested
case href
case id
case kind
case label
case note
case released
case tier
case title
case updated
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(attested, forKey: .attested)
try container.encodeIfPresent(href, forKey: .href)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(label, forKey: .label)
try container.encodeIfPresent(note, forKey: .note)
try container.encodeIfPresent(released, forKey: .released)
try container.encodeIfPresent(tier, forKey: .tier)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(updated, forKey: .updated)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension DocRow: Identifiable {}