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

51 lines
1.6 KiB
Swift

//
// DeviceStartOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct DeviceStartOut: Sendable, Codable, ParameterConvertible, Hashable {
/** ExpiresAt is when the flow dies, RFC 3339 UTC. */
public var expiresAt: String?
/** Flow is the id to poll with. */
public var flow: String?
/** Interval is the seconds to wait between polls. */
public var interval: Int64?
/** UserCode is the short code the user types at VerifyURL. */
public var userCode: String?
/** VerifyURL is the page the user opens to enter UserCode. */
public var verifyUrl: String?
public init(expiresAt: String? = nil, flow: String? = nil, interval: Int64? = nil, userCode: String? = nil, verifyUrl: String? = nil) {
self.expiresAt = expiresAt
self.flow = flow
self.interval = interval
self.userCode = userCode
self.verifyUrl = verifyUrl
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case expiresAt
case flow
case interval
case userCode
case verifyUrl
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(flow, forKey: .flow)
try container.encodeIfPresent(interval, forKey: .interval)
try container.encodeIfPresent(userCode, forKey: .userCode)
try container.encodeIfPresent(verifyUrl, forKey: .verifyUrl)
}
}