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.7 KiB
Swift

//
// TrustGrantView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TrustGrantView: Sendable, Codable, ParameterConvertible, Hashable {
/** Email is the one address the link admits. */
public var email: String?
/** ExpiresAt is when the grant closes, in unix milliseconds. */
public var expiresAt: Int64?
/** Item is the item granted, empty when the whole released tier was granted. */
public var item: String?
/** Link is the share link's id — the token the party opens. Reading it here does not widen it: the link admits only Email whoever holds the id. */
public var link: String?
/** Live is whether the grant is still open at the time of reading. */
public var live: Bool?
public init(email: String? = nil, expiresAt: Int64? = nil, item: String? = nil, link: String? = nil, live: Bool? = nil) {
self.email = email
self.expiresAt = expiresAt
self.item = item
self.link = link
self.live = live
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case email
case expiresAt
case item
case link
case live
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(email, forKey: .email)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(item, forKey: .item)
try container.encodeIfPresent(link, forKey: .link)
try container.encodeIfPresent(live, forKey: .live)
}
}