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

77 lines
3.0 KiB
Swift

//
// PopulatedFlow.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct PopulatedFlow: Sendable, Codable, ParameterConvertible, Hashable {
/** Created and Updated are unix milliseconds. */
public var created: Int64?
/** ExternalID is the caller's own id for this flow, if it set one. */
public var externalId: String?
/** FolderID groups the flow in the builder's tree. */
public var folderId: String?
/** ID is the flow's id. */
public var id: String?
public var metadata: JSONValue?
/** Org is the owning org, which this surface names projectId. Server-derived from the validated principal — never read from a request. */
public var projectId: String?
/** PublishedVersionID is the version a run executes when set; empty means the latest version runs. */
public var publishedVersionId: String?
/** Status is ENABLED or DISABLED — whether the flow's trigger is armed. */
public var status: String?
public var updated: Int64?
/** Version is the flow's latest version — its display name and step tree. */
public var version: FlowVersion?
public init(created: Int64? = nil, externalId: String? = nil, folderId: String? = nil, id: String? = nil, metadata: JSONValue? = nil, projectId: String? = nil, publishedVersionId: String? = nil, status: String? = nil, updated: Int64? = nil, version: FlowVersion? = nil) {
self.created = created
self.externalId = externalId
self.folderId = folderId
self.id = id
self.metadata = metadata
self.projectId = projectId
self.publishedVersionId = publishedVersionId
self.status = status
self.updated = updated
self.version = version
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case created
case externalId
case folderId
case id
case metadata
case projectId
case publishedVersionId
case status
case updated
case version
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(created, forKey: .created)
try container.encodeIfPresent(externalId, forKey: .externalId)
try container.encodeIfPresent(folderId, forKey: .folderId)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(metadata, forKey: .metadata)
try container.encodeIfPresent(projectId, forKey: .projectId)
try container.encodeIfPresent(publishedVersionId, forKey: .publishedVersionId)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(updated, forKey: .updated)
try container.encodeIfPresent(version, forKey: .version)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension PopulatedFlow: Identifiable {}