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.
66 lines
2.5 KiB
Swift
66 lines
2.5 KiB
Swift
//
|
|
// SeoAuditOut.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SeoAuditOut: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Checks is every named finding, each a yes or no — \"is_https\", \"no_h1_tag\", \"high_loading_time\", around fifty of them. It is an OPEN set the upstream adds to, so it is published as an object of booleans rather than as fifty declared fields that would be wrong the next time they name a fifty-first. */
|
|
public var checks: [String: Bool]?
|
|
/** Cost is what this call cost, in USD, as an exact decimal string. */
|
|
public var cost: String?
|
|
/** Description is its meta description. */
|
|
public var description: String?
|
|
/** Score is the upstream's on-page score, 0 to 100. */
|
|
public var score: Double?
|
|
/** Status is the HTTP status the page answered with. */
|
|
public var status: Int64?
|
|
/** Title is the page's title. */
|
|
public var title: String?
|
|
/** URL is the address actually read, after redirects. */
|
|
public var url: String?
|
|
/** Words is how many words of readable text the page carries. */
|
|
public var words: Int64?
|
|
|
|
public init(checks: [String: Bool]? = nil, cost: String? = nil, description: String? = nil, score: Double? = nil, status: Int64? = nil, title: String? = nil, url: String? = nil, words: Int64? = nil) {
|
|
self.checks = checks
|
|
self.cost = cost
|
|
self.description = description
|
|
self.score = score
|
|
self.status = status
|
|
self.title = title
|
|
self.url = url
|
|
self.words = words
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case checks
|
|
case cost
|
|
case description
|
|
case score
|
|
case status
|
|
case title
|
|
case url
|
|
case words
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(checks, forKey: .checks)
|
|
try container.encodeIfPresent(cost, forKey: .cost)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(score, forKey: .score)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(url, forKey: .url)
|
|
try container.encodeIfPresent(words, forKey: .words)
|
|
}
|
|
}
|
|
|