mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The projection these were generated from predated the compute migration, so they described /v1/visor — which the API serves at zero paths now. No /v1/visor path survives here.
59 lines
2.1 KiB
Swift
59 lines
2.1 KiB
Swift
//
|
|
// AuthoredPlugin.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct AuthoredPlugin: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** CreatedAt is when the plugin was last built, Unix seconds. */
|
|
public var createdAt: Int64?
|
|
/** ID is the plugin's id within the org, and the id a delete addresses. */
|
|
public var id: String?
|
|
/** Name is the plugin's name: one lowercase path segment, the id it runs by. */
|
|
public var name: String?
|
|
/** Org is the org that built the plugin — the validated caller's. */
|
|
public var org: String?
|
|
/** Provider is the connectors provider whose credential this plugin uses at run time. Absent for a plugin that needs none. The credential itself is never here — it stays under KMS custody in the connectors plane. */
|
|
public var provider: String?
|
|
/** Source is the TypeScript as authored (or as generated from a spec). */
|
|
public var source: String?
|
|
|
|
public init(createdAt: Int64? = nil, id: String? = nil, name: String? = nil, org: String? = nil, provider: String? = nil, source: String? = nil) {
|
|
self.createdAt = createdAt
|
|
self.id = id
|
|
self.name = name
|
|
self.org = org
|
|
self.provider = provider
|
|
self.source = source
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case createdAt
|
|
case id
|
|
case name
|
|
case org
|
|
case provider
|
|
case source
|
|
}
|
|
|
|
// 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(id, forKey: .id)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
try container.encodeIfPresent(provider, forKey: .provider)
|
|
try container.encodeIfPresent(source, forKey: .source)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension AuthoredPlugin: Identifiable {}
|