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

36 lines
1.1 KiB
Swift

//
// CsrfResp.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CsrfResp: Sendable, Codable, ParameterConvertible, Hashable {
/** Token is the value to send back in the X-CSRF-Token header. It is bound to the caller's identity, so it authorizes changes as them and as nobody else. */
public var csrfToken: String?
/** ExpiresIn is the token's lifetime in seconds. Fetch a new one when it lapses; a change with an expired token is refused. */
public var expiresIn: Int64?
public init(csrfToken: String? = nil, expiresIn: Int64? = nil) {
self.csrfToken = csrfToken
self.expiresIn = expiresIn
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case csrfToken
case expiresIn
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(csrfToken, forKey: .csrfToken)
try container.encodeIfPresent(expiresIn, forKey: .expiresIn)
}
}