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
2.9 KiB
Swift

//
// FindingView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct FindingView: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is when the finding was recorded, in Unix milliseconds. */
public var createdAt: Int64?
/** Fingerprint is the SHA-256 of the raw secret. It is what makes the same secret recognisable across scans and after rotation without the secret ever being written down. */
public var fingerprint: String?
/** ID addresses this finding. */
public var id: String?
/** Line is where in that file. */
public var line: Int64?
/** Path is the file the secret was found in. */
public var path: String?
/** Preview is the secret MASKED — first and last characters kept, the middle starred — so a reviewer can recognise it without it being disclosed. */
public var preview: String?
/** RuleID is the detection rule that fired. */
public var ruleId: String?
/** RuleName is that rule's human name. */
public var ruleName: String?
/** ScanID is the scan that produced it. */
public var scanId: String?
/** Severity ranks the finding: critical, high, medium or low. */
public var severity: String?
public init(createdAt: Int64? = nil, fingerprint: String? = nil, id: String? = nil, line: Int64? = nil, path: String? = nil, preview: String? = nil, ruleId: String? = nil, ruleName: String? = nil, scanId: String? = nil, severity: String? = nil) {
self.createdAt = createdAt
self.fingerprint = fingerprint
self.id = id
self.line = line
self.path = path
self.preview = preview
self.ruleId = ruleId
self.ruleName = ruleName
self.scanId = scanId
self.severity = severity
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case fingerprint
case id
case line
case path
case preview
case ruleId
case ruleName
case scanId
case severity
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(fingerprint, forKey: .fingerprint)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(line, forKey: .line)
try container.encodeIfPresent(path, forKey: .path)
try container.encodeIfPresent(preview, forKey: .preview)
try container.encodeIfPresent(ruleId, forKey: .ruleId)
try container.encodeIfPresent(ruleName, forKey: .ruleName)
try container.encodeIfPresent(scanId, forKey: .scanId)
try container.encodeIfPresent(severity, forKey: .severity)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension FindingView: Identifiable {}