mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
34 lines
763 B
Swift
34 lines
763 B
Swift
//
|
|
// Artifact.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct Artifact: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var digest: String?
|
|
public var tag: String?
|
|
|
|
public init(digest: String? = nil, tag: String? = nil) {
|
|
self.digest = digest
|
|
self.tag = tag
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case digest
|
|
case tag
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(digest, forKey: .digest)
|
|
try container.encodeIfPresent(tag, forKey: .tag)
|
|
}
|
|
}
|
|
|