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

71 lines
2.6 KiB
Swift

//
// SeoBacklinkOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SeoBacklinkOut: Sendable, Codable, ParameterConvertible, Hashable {
/** Backlinks is how many links point at it. */
public var backlinks: Int64?
/** Broken is how many of those links point at something that no longer answers. */
public var broken: Int64?
/** Cost is what this call cost, in USD, as an exact decimal string. */
public var cost: String?
/** Domains is how many distinct sites those links come from — the number that matters, since a thousand links from one site is one site. */
public var domains: Int64?
/** FirstSeen is when the upstream first saw a link to this target, RFC 3339. */
public var firstSeen: String?
/** Pages is how many distinct pages link in. */
public var pages: Int64?
/** Rank is the upstream's authority score for the target, 0 to 1000. */
public var rank: Int64?
/** Spam is the share of the profile judged spam, 0 to 100. */
public var spam: Int64?
/** Target is the target as the upstream resolved it. */
public var target: String?
public init(backlinks: Int64? = nil, broken: Int64? = nil, cost: String? = nil, domains: Int64? = nil, firstSeen: String? = nil, pages: Int64? = nil, rank: Int64? = nil, spam: Int64? = nil, target: String? = nil) {
self.backlinks = backlinks
self.broken = broken
self.cost = cost
self.domains = domains
self.firstSeen = firstSeen
self.pages = pages
self.rank = rank
self.spam = spam
self.target = target
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case backlinks
case broken
case cost
case domains
case firstSeen
case pages
case rank
case spam
case target
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(backlinks, forKey: .backlinks)
try container.encodeIfPresent(broken, forKey: .broken)
try container.encodeIfPresent(cost, forKey: .cost)
try container.encodeIfPresent(domains, forKey: .domains)
try container.encodeIfPresent(firstSeen, forKey: .firstSeen)
try container.encodeIfPresent(pages, forKey: .pages)
try container.encodeIfPresent(rank, forKey: .rank)
try container.encodeIfPresent(spam, forKey: .spam)
try container.encodeIfPresent(target, forKey: .target)
}
}