mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
94 lines
3.5 KiB
Swift
94 lines
3.5 KiB
Swift
//
|
|
// TrustAskView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct TrustAskView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the ask arrived, in unix milliseconds. */
|
|
public var createdAt: Int64?
|
|
/** DecidedAt is when it was answered, in unix milliseconds; 0 while open. */
|
|
public var decidedAt: Int64?
|
|
/** DecidedBy is who answered it. */
|
|
public var decidedBy: String?
|
|
/** Email is the address that asked, as stated and UNVERIFIED — it names a party and proves nothing, which is why the grant is addressed to it rather than trusting it. */
|
|
public var email: String?
|
|
/** ExpiresAt is when a granted ask closes, in unix milliseconds. */
|
|
public var expiresAt: Int64?
|
|
/** ID is the request's id. */
|
|
public var id: String?
|
|
/** Item is the item asked for, empty when the whole released tier was asked for. */
|
|
public var item: String?
|
|
/** Link is the share link a granted ask became. */
|
|
public var link: String?
|
|
/** Nda is the text this party accepted, verbatim as it stood when they accepted. */
|
|
public var nda: String?
|
|
/** Note is what the decider wrote when refusing. */
|
|
public var note: String?
|
|
/** Party is the company the asker stated. */
|
|
public var party: String?
|
|
/** Reason is why they said they want it. */
|
|
public var reason: String?
|
|
/** State is open, granted or refused. */
|
|
public var state: String?
|
|
|
|
public init(createdAt: Int64? = nil, decidedAt: Int64? = nil, decidedBy: String? = nil, email: String? = nil, expiresAt: Int64? = nil, id: String? = nil, item: String? = nil, link: String? = nil, nda: String? = nil, note: String? = nil, party: String? = nil, reason: String? = nil, state: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.decidedAt = decidedAt
|
|
self.decidedBy = decidedBy
|
|
self.email = email
|
|
self.expiresAt = expiresAt
|
|
self.id = id
|
|
self.item = item
|
|
self.link = link
|
|
self.nda = nda
|
|
self.note = note
|
|
self.party = party
|
|
self.reason = reason
|
|
self.state = state
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case decidedAt
|
|
case decidedBy
|
|
case email
|
|
case expiresAt
|
|
case id
|
|
case item
|
|
case link
|
|
case nda
|
|
case note
|
|
case party
|
|
case reason
|
|
case state
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(decidedAt, forKey: .decidedAt)
|
|
try container.encodeIfPresent(decidedBy, forKey: .decidedBy)
|
|
try container.encodeIfPresent(email, forKey: .email)
|
|
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(item, forKey: .item)
|
|
try container.encodeIfPresent(link, forKey: .link)
|
|
try container.encodeIfPresent(nda, forKey: .nda)
|
|
try container.encodeIfPresent(note, forKey: .note)
|
|
try container.encodeIfPresent(party, forKey: .party)
|
|
try container.encodeIfPresent(reason, forKey: .reason)
|
|
try container.encodeIfPresent(state, forKey: .state)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension TrustAskView: Identifiable {}
|