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

41 lines
1.3 KiB
Swift

//
// RevokeResp.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct RevokeResp: Sendable, Codable, ParameterConvertible, Hashable {
/** Links is each revoked row with its new status — retained, not deleted, so usage history and the audit trail survive the log-out. */
public var links: [LinkView]?
/** Revoked is how many links this call revoked. */
public var revoked: Int64?
/** SessionsStopped is how many of the caller's own agent sessions stopped. A stop that fails does not fail the revoke, so this may honestly report fewer. */
public var sessionsStopped: Int64?
public init(links: [LinkView]? = nil, revoked: Int64? = nil, sessionsStopped: Int64? = nil) {
self.links = links
self.revoked = revoked
self.sessionsStopped = sessionsStopped
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case links
case revoked
case sessionsStopped
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(links, forKey: .links)
try container.encodeIfPresent(revoked, forKey: .revoked)
try container.encodeIfPresent(sessionsStopped, forKey: .sessionsStopped)
}
}