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

49 lines
2.0 KiB
Swift

//
// Channel.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct Channel: Sendable, Codable, ParameterConvertible, Hashable {
/** Disabled is true for a channel the org switched off at the social edge. It is still listed — this is what the org has CONNECTED, not what it can post to — but a publish never targets it, neither by name nor as part of the \"every channel\" default. */
public var disabled: Bool?
/** ID is the social integration id a post targets. It is the exact value to put in a content item's `channels` list to reach this one connected account. */
public var id: String?
/** Name is the account label as the org connected it — the handle a human recognises. It is never an address: a publish resolves channels by ID or by Provider and never by this. */
public var name: String?
/** Provider is the network behind the integration: \"x\", \"instagram\", \"tiktok\" and the rest of what the org connected. Naming a provider in a publish targets EVERY connected account of it, so it is the coarse handle where ID is the precise one. */
public var provider: String?
public init(disabled: Bool? = nil, id: String? = nil, name: String? = nil, provider: String? = nil) {
self.disabled = disabled
self.id = id
self.name = name
self.provider = provider
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case disabled
case id
case name
case provider
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(disabled, forKey: .disabled)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(name, forKey: .name)
try container.encodeIfPresent(provider, forKey: .provider)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension Channel: Identifiable {}