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.
79 lines
3.0 KiB
Swift
79 lines
3.0 KiB
Swift
//
|
|
// DocumentView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct DocumentView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Body is the rendered document. It is sealed at rest and returned only to the owning org. When the template is counsel-review it opens with the counsel notice, which the engine prepends and no caller can suppress. */
|
|
public var body: String?
|
|
public var category: String?
|
|
/** ContentType is the rendered body's media type — text/markdown. */
|
|
public var contentType: String?
|
|
public var createdAt: Int64?
|
|
public var esignProvider: String?
|
|
public var id: String?
|
|
public var signedAt: Int64?
|
|
public var status: String?
|
|
public var templateId: String?
|
|
public var templateVersion: Int64?
|
|
public var title: String?
|
|
public var updatedAt: Int64?
|
|
|
|
public init(body: String? = nil, category: String? = nil, contentType: String? = nil, createdAt: Int64? = nil, esignProvider: String? = nil, id: String? = nil, signedAt: Int64? = nil, status: String? = nil, templateId: String? = nil, templateVersion: Int64? = nil, title: String? = nil, updatedAt: Int64? = nil) {
|
|
self.body = body
|
|
self.category = category
|
|
self.contentType = contentType
|
|
self.createdAt = createdAt
|
|
self.esignProvider = esignProvider
|
|
self.id = id
|
|
self.signedAt = signedAt
|
|
self.status = status
|
|
self.templateId = templateId
|
|
self.templateVersion = templateVersion
|
|
self.title = title
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case body
|
|
case category
|
|
case contentType
|
|
case createdAt
|
|
case esignProvider
|
|
case id
|
|
case signedAt
|
|
case status
|
|
case templateId
|
|
case templateVersion
|
|
case title
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(body, forKey: .body)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(contentType, forKey: .contentType)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(esignProvider, forKey: .esignProvider)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(signedAt, forKey: .signedAt)
|
|
try container.encodeIfPresent(status, forKey: .status)
|
|
try container.encodeIfPresent(templateId, forKey: .templateId)
|
|
try container.encodeIfPresent(templateVersion, forKey: .templateVersion)
|
|
try container.encodeIfPresent(title, forKey: .title)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension DocumentView: Identifiable {}
|