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.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// SeoCompetitorOut.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SeoCompetitorOut: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Competitors is one row per domain, strongest first. */
|
|
public var competitors: [SeoDomain]?
|
|
/** Cost is what this call cost, in USD, as an exact decimal string. */
|
|
public var cost: String?
|
|
/** Total is how many domains the upstream holds for these phrases. */
|
|
public var total: Int64?
|
|
|
|
public init(competitors: [SeoDomain]? = nil, cost: String? = nil, total: Int64? = nil) {
|
|
self.competitors = competitors
|
|
self.cost = cost
|
|
self.total = total
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case competitors
|
|
case cost
|
|
case total
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(competitors, forKey: .competitors)
|
|
try container.encodeIfPresent(cost, forKey: .cost)
|
|
try container.encodeIfPresent(total, forKey: .total)
|
|
}
|
|
}
|
|
|