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

46 lines
1.5 KiB
Swift

//
// O11yO11yToken.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct O11yO11yToken: Sendable, Codable, ParameterConvertible, Hashable {
/** AccessToken authenticates requests until it expires. */
public var accessToken: String?
/** ExpiresIn is the access token's lifetime in seconds. */
public var expiresIn: Int64?
/** RefreshToken buys the next pair via rotateSession. */
public var refreshToken: String?
/** TokenType is how to present the access token, e.g. bearer. */
public var tokenType: String?
public init(accessToken: String? = nil, expiresIn: Int64? = nil, refreshToken: String? = nil, tokenType: String? = nil) {
self.accessToken = accessToken
self.expiresIn = expiresIn
self.refreshToken = refreshToken
self.tokenType = tokenType
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case accessToken
case expiresIn
case refreshToken
case tokenType
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(accessToken, forKey: .accessToken)
try container.encodeIfPresent(expiresIn, forKey: .expiresIn)
try container.encodeIfPresent(refreshToken, forKey: .refreshToken)
try container.encodeIfPresent(tokenType, forKey: .tokenType)
}
}