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

64 lines
2.3 KiB
Swift

//
// Step.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Step: Sendable, Codable, ParameterConvertible, Hashable {
/** Body is the message text. Required. The signed one-click unsubscribe link is appended to it at send time. */
public var body: String?
/** CreatedAt is unix seconds, server-assigned. */
public var createdAt: Int64?
/** DelaySeconds is how long after the previous step this one sends (after enrollment, for step 0). */
public var delaySeconds: Int64?
/** ID is the server-assigned step id (\"step_\" + 128 random bits). */
public var id: String?
/** Idx is the step's 0-based position, assigned by appending: a new step always lands after the last one. */
public var idx: Int64?
/** SequenceID is the sequence this step belongs to. */
public var sequenceId: String?
/** Subject is the email subject line, capped at 1024 bytes. */
public var subject: String?
public init(body: String? = nil, createdAt: Int64? = nil, delaySeconds: Int64? = nil, id: String? = nil, idx: Int64? = nil, sequenceId: String? = nil, subject: String? = nil) {
self.body = body
self.createdAt = createdAt
self.delaySeconds = delaySeconds
self.id = id
self.idx = idx
self.sequenceId = sequenceId
self.subject = subject
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case body
case createdAt
case delaySeconds
case id
case idx
case sequenceId
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(createdAt, forKey: .createdAt)
try container.encodeIfPresent(delaySeconds, forKey: .delaySeconds)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(idx, forKey: .idx)
try container.encodeIfPresent(sequenceId, forKey: .sequenceId)
try container.encodeIfPresent(subject, forKey: .subject)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Step: Identifiable {}