Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
The forge tree held the package scaffolding and none of the generated sources —
2,435 files of APIs, Models and Infrastructure, including BaseAPI, were simply
absent, so anything depending on this copy had a package that compiled to
nothing usable.

Generated from the current API document rather than reconciled with the other
copy: a client is a function of the spec, so regenerating answers "which history
wins" without anyone having to choose. .spec-lock records which document, so the
next reader can tell.
2026-08-23 10:04:41 -07:00

46 lines
1.5 KiB
Swift

//
// CreateFlowReq.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CreateFlowReq: Sendable, Codable, ParameterConvertible, Hashable {
/** DisplayName names the flow's initial draft version. */
public var displayName: String?
/** ExternalID is the caller's own id for this flow. Optional. */
public var externalId: String?
/** FolderID groups the flow in the builder's tree. Optional. */
public var folderId: String?
/** Trigger is the root of the step tree — how the flow starts, and the action chain that follows. Optional: a flow may be created empty and edited later. */
public var trigger: FlowTrigger?
public init(displayName: String? = nil, externalId: String? = nil, folderId: String? = nil, trigger: FlowTrigger? = nil) {
self.displayName = displayName
self.externalId = externalId
self.folderId = folderId
self.trigger = trigger
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case displayName
case externalId
case folderId
case trigger
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(externalId, forKey: .externalId)
try container.encodeIfPresent(folderId, forKey: .folderId)
try container.encodeIfPresent(trigger, forKey: .trigger)
}
}