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.
50 lines
1.8 KiB
Swift
50 lines
1.8 KiB
Swift
//
|
|
// SettingsView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct SettingsView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
public var config: JSONValue?
|
|
/** CreatedAt is when this configuration was first written, RFC 3339 UTC. */
|
|
public var createdAt: String?
|
|
/** Product is the catalog slug this configuration belongs to. */
|
|
public var product: String?
|
|
/** SecretKeys names the secret fields that ARE set. Their VALUES live only in KMS and are never returned here — the console renders a mask. */
|
|
public var secretKeys: [String]?
|
|
/** UpdatedAt is when this configuration was last written, RFC 3339 UTC. Empty when nothing has been saved. */
|
|
public var updatedAt: String?
|
|
|
|
public init(config: JSONValue? = nil, createdAt: String? = nil, product: String? = nil, secretKeys: [String]? = nil, updatedAt: String? = nil) {
|
|
self.config = config
|
|
self.createdAt = createdAt
|
|
self.product = product
|
|
self.secretKeys = secretKeys
|
|
self.updatedAt = updatedAt
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case config
|
|
case createdAt
|
|
case product
|
|
case secretKeys
|
|
case updatedAt
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(config, forKey: .config)
|
|
try container.encodeIfPresent(createdAt, forKey: .createdAt)
|
|
try container.encodeIfPresent(product, forKey: .product)
|
|
try container.encodeIfPresent(secretKeys, forKey: .secretKeys)
|
|
try container.encodeIfPresent(updatedAt, forKey: .updatedAt)
|
|
}
|
|
}
|
|
|