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

56 lines
3.1 KiB
Swift

//
// AuthorRepo.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct AuthorRepo: Sendable, Codable, ParameterConvertible, Hashable {
/** BadgeMarkdown is the ready-to-paste README snippet, DERIVED for each response from this deployment's badge host and never stored: a \"Deploy on Hanzo\" image linking to the one-click import of this repository. Re-hosting the builder changes every badge without touching a row. */
public var badgeMarkdown: String?
/** CreatedAt is unix seconds when the claim was first recorded. It equals verifiedAt on the first proof and then stays put while verifiedAt moves, so the pair reads as \"claimed since / last proven\". */
public var createdAt: Int64?
/** Method is HOW ownership was proven: \"oauth\" — an IAM-linked forge token showed admin or push on the repository; \"file\" — a hanzo.json on the default branch carried this author's verify code; or \"maintainer\" — the repository sits in a first-party namespace, where ownership is intrinsic and the treasury author holds it with no proof step. Omitted on a row written before the method was recorded. */
public var method: String?
/** RepoURL is the claim key in canonical form — lowercased \"host/owner/name\", no scheme, no .git, host ∈ {github.com, gitlab.com}. A deploy's source repo is normalized through the same function before attribution, so the two sides can never miss on a cosmetic difference. UNIQUE across every author: first proven claim wins. */
public var repoUrl: String?
/** Verified reports that ownership was proven. Only a proven claim is ever written, so it is true on every row this surface returns; the deploy path re-reads it regardless, because an unverified claim attributes nothing. */
public var verified: Bool?
/** VerifiedAt is unix seconds of the most recent successful proof. Re-verifying refreshes it, and the method beside it, in place. */
public var verifiedAt: Int64?
public init(badgeMarkdown: String? = nil, createdAt: Int64? = nil, method: String? = nil, repoUrl: String? = nil, verified: Bool? = nil, verifiedAt: Int64? = nil) {
self.badgeMarkdown = badgeMarkdown
self.createdAt = createdAt
self.method = method
self.repoUrl = repoUrl
self.verified = verified
self.verifiedAt = verifiedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case badgeMarkdown
case createdAt
case method
case repoUrl
case verified
case verifiedAt
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(badgeMarkdown, forKey: .badgeMarkdown)
try container.encodeIfPresent(createdAt, forKey: .createdAt)
try container.encodeIfPresent(method, forKey: .method)
try container.encodeIfPresent(repoUrl, forKey: .repoUrl)
try container.encodeIfPresent(verified, forKey: .verified)
try container.encodeIfPresent(verifiedAt, forKey: .verifiedAt)
}
}