mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
49 lines
1.5 KiB
Swift
49 lines
1.5 KiB
Swift
//
|
|
// StepInput.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct StepInput: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Body is the message text. Required. */
|
|
public var body: String?
|
|
/** DelaySeconds is how long after the previous step this one sends (after enrollment, for the first step). Must be >= 0. */
|
|
public var delaySeconds: Int64?
|
|
/** SequenceID is the sequence id from the path (the route's :id). */
|
|
public var id: String?
|
|
/** Subject is the email subject line, capped at 1024 bytes. */
|
|
public var subject: String?
|
|
|
|
public init(body: String? = nil, delaySeconds: Int64? = nil, id: String? = nil, subject: String? = nil) {
|
|
self.body = body
|
|
self.delaySeconds = delaySeconds
|
|
self.id = id
|
|
self.subject = subject
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case body
|
|
case delaySeconds
|
|
case id
|
|
case subject
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(body, forKey: .body)
|
|
try container.encodeIfPresent(delaySeconds, forKey: .delaySeconds)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(subject, forKey: .subject)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension StepInput: Identifiable {}
|