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

//
// TrustGranted.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustGranted: Sendable, Codable, ParameterConvertible, Hashable {
/** Delivery is empty when the asker was mailed, and otherwise says what happened instead — so an approver is never left believing a mail went out that did not. */
public var delivery: String?
/** ExpiresAt is when the grant closes, in unix milliseconds. */
public var expiresAt: Int64?
/** Link is the share link's id. The link admits only the address that asked. */
public var link: String?
/** State is \"granted\". */
public var state: String?
public init(delivery: String? = nil, expiresAt: Int64? = nil, link: String? = nil, state: String? = nil) {
self.delivery = delivery
self.expiresAt = expiresAt
self.link = link
self.state = state
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case delivery
case expiresAt
case link
case state
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(delivery, forKey: .delivery)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(link, forKey: .link)
try container.encodeIfPresent(state, forKey: .state)
}
}