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

64 lines
3.0 KiB
Swift

//
// TemplateView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct TemplateView: Sendable, Codable, ParameterConvertible, Hashable {
/** Category is the corporate need the template serves: formation, equity, ops or sales. Formation and equity are the securities-class categories, which is what forces counselReview. */
public var category: String?
/** CounselReview marks a template whose rendered documents open with the counsel notice. True for every formation and equity template whatever an override sends: the engine prepends the notice and no caller can suppress it. */
public var counselReview: Bool?
/** Fields declares the merge fields the body consumes — every key a generation must supply, each with its human label. All are REQUIRED: a missing one is refused rather than rendered as a blank into a contract. */
public var fields: [Field]?
/** ID is the template's stable id and the path segment that fetches its body — \"nda\", \"msa\", \"safe\". An override keeps the built-in's id. */
public var id: String?
/** Origin is \"builtin\" for a template the platform ships or \"org\" for one this org saved. It separates the catalog every tenant sees from this tenant's own. */
public var origin: String?
/** Title is the display name, e.g. \"Mutual Non-Disclosure Agreement\". A generated document inherits it. */
public var title: String?
/** Version is which version of this template the caller's org resolves to. A built-in is version 1; the org's first override is 2 and each save increments, so an override version never collides with the built-in's. */
public var version: Int64?
public init(category: String? = nil, counselReview: Bool? = nil, fields: [Field]? = nil, id: String? = nil, origin: String? = nil, title: String? = nil, version: Int64? = nil) {
self.category = category
self.counselReview = counselReview
self.fields = fields
self.id = id
self.origin = origin
self.title = title
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case category
case counselReview
case fields
case id
case origin
case title
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(category, forKey: .category)
try container.encodeIfPresent(counselReview, forKey: .counselReview)
try container.encodeIfPresent(fields, forKey: .fields)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(origin, forKey: .origin)
try container.encodeIfPresent(title, forKey: .title)
try container.encodeIfPresent(version, forKey: .version)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension TemplateView: Identifiable {}