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

56 lines
2.0 KiB
Swift

//
// Registration.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Registration: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is the unix second the formation was opened. */
public var createdAt: Int64?
/** Name is the company name the entity is being formed under. */
public var name: String?
/** Org is the org whose formation this row projects. */
public var org: String?
/** Stage is the formation's current state — what the platform reads to see which formations are stalled and where. */
public var stage: String?
/** Structure is the legal entity being formed: c-corp, llc or dao-llc. */
public var structure: String?
/** UpdatedAt is the unix second of the most recent write to the formation, and the key the register sorts on (newest activity first). */
public var updatedAt: Int64?
public init(createdAt: Int64? = nil, name: String? = nil, org: String? = nil, stage: String? = nil, structure: String? = nil, updatedAt: Int64? = nil) {
self.createdAt = createdAt
self.name = name
self.org = org
self.stage = stage
self.structure = structure
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case name
case org
case stage
case structure
case updatedAt
}
// 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(name, forKey: .name)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(stage, forKey: .stage)
try container.encodeIfPresent(structure, forKey: .structure)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}