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

59 lines
1.9 KiB
Swift

//
// SMS.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct SMS: Sendable, Codable, ParameterConvertible, Hashable {
/** From is the sending number in E.164, and must be one this org holds. */
public var from: String?
/** ID is the carrier's handle for the message. */
public var id: String?
/** Org is the tenant the message was sent for or received by. */
public var org: String?
/** Status is where the message is: \"queued\", \"sent\", \"delivered\" or \"failed\". \"sent\" means the carrier took it; \"delivered\" means the handset got it, and not every carrier or destination reports that. */
public var status: String?
/** Text is the message body. Empty is legal when the message carried only media. */
public var text: String?
/** To is the receiving number in E.164. */
public var to: String?
public init(from: String? = nil, id: String? = nil, org: String? = nil, status: String? = nil, text: String? = nil, to: String? = nil) {
self.from = from
self.id = id
self.org = org
self.status = status
self.text = text
self.to = to
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case from
case id
case org
case status
case text
case to
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(from, forKey: .from)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(org, forKey: .org)
try container.encodeIfPresent(status, forKey: .status)
try container.encodeIfPresent(text, forKey: .text)
try container.encodeIfPresent(to, forKey: .to)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension SMS: Identifiable {}