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

54 lines
2.0 KiB
Swift

//
// ModelSequence.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ModelSequence: Sendable, Codable, ParameterConvertible, Hashable {
/** CreatedAt is unix seconds when the sequence was registered, server-assigned and never rewritten. */
public var createdAt: Int64?
/** ID is the server-assigned sequence id (\"seq_\" + 128 random bits). */
public var id: String?
/** Name is the sequence's label. Required, trimmed, capped at 1024 bytes. */
public var name: String?
/** Status is the lifecycle: draft, active or archived. Empty means draft, and ONLY an active sequence accepts enrollments. */
public var status: String?
/** UpdatedAt is unix seconds of the last status flip, server-assigned, and the key the sequence list is ordered by (newest first). Adding a step or enrolling a contact does NOT touch it — only draft/active/archived does — so it tracks activation rather than activity. */
public var updatedAt: Int64?
public init(createdAt: Int64? = nil, id: String? = nil, name: String? = nil, status: String? = nil, updatedAt: Int64? = nil) {
self.createdAt = createdAt
self.id = id
self.name = name
self.status = status
self.updatedAt = updatedAt
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case createdAt
case id
case name
case status
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(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ModelSequence: Identifiable {}