mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
61 lines
2.3 KiB
Swift
61 lines
2.3 KiB
Swift
//
|
|
// PipelineView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct PipelineView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the pipeline was first stored, RFC3339 UTC. Absent on the default. */
|
|
public var createdAt: String?
|
|
/** Default is true when no pipeline is stored for this project and these are the built-in world feeds. Writing one turns it false. */
|
|
public var _default: Bool?
|
|
/** Feeds is the RSS/Atom feed URLs the pipeline reads. Every host is on the server's allowlist — a URL that is not cannot be stored. */
|
|
public var feeds: [String]?
|
|
/** Filters narrows the merged feed. */
|
|
public var filters: Filters?
|
|
/** Org is the tenant the pipeline belongs to, resolved server-side from the validated principal. */
|
|
public var org: String?
|
|
/** Project is the org sub-scope the pipeline belongs to. */
|
|
public var project: String?
|
|
/** UpdatedAt is when it was last written, RFC3339 UTC. Absent on the default. */
|
|
public var updatedAt: String?
|
|
|
|
public init(createdAt: String? = nil, _default: Bool? = nil, feeds: [String]? = nil, filters: Filters? = nil, org: String? = nil, project: String? = nil, updatedAt: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self._default = _default
|
|
self.feeds = feeds
|
|
self.filters = filters
|
|
self.org = org
|
|
self.project = project
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case _default = "default"
|
|
case feeds
|
|
case filters
|
|
case org
|
|
case project
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(_default, forKey: ._default)
|
|
try container.encodeIfPresent(feeds, forKey: .feeds)
|
|
try container.encodeIfPresent(filters, forKey: .filters)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
try container.encodeIfPresent(project, forKey: .project)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|