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.
59 lines
2.1 KiB
Swift
59 lines
2.1 KiB
Swift
//
|
|
// ConnectorProviderView.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ConnectorProviderView: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Category groups the card. */
|
|
public var category: String?
|
|
/** Description is the one-line pitch the console card shows. */
|
|
public var description: String?
|
|
/** ID is the provider's registry id and the :provider path segment. */
|
|
public var id: String?
|
|
/** Methods are the intake paths this provider supports, derived from its capabilities: \"device\", \"oauth\" (adopt an externally obtained bundle) and \"token\" (a customer-held credential). At least one, always. */
|
|
public var methods: [String]?
|
|
/** Name is the provider's display name. */
|
|
public var name: String?
|
|
/** Scopes are the permissions a connection will ask for. Never null. */
|
|
public var scopes: [String]?
|
|
|
|
public init(category: String? = nil, description: String? = nil, id: String? = nil, methods: [String]? = nil, name: String? = nil, scopes: [String]? = nil) {
|
|
self.category = category
|
|
self.description = description
|
|
self.id = id
|
|
self.methods = methods
|
|
self.name = name
|
|
self.scopes = scopes
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case category
|
|
case description
|
|
case id
|
|
case methods
|
|
case name
|
|
case scopes
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(category, forKey: .category)
|
|
try container.encodeIfPresent(description, forKey: .description)
|
|
try container.encodeIfPresent(id, forKey: .id)
|
|
try container.encodeIfPresent(methods, forKey: .methods)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(scopes, forKey: .scopes)
|
|
}
|
|
}
|
|
|
|
|
|
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
|
|
extension ConnectorProviderView: Identifiable {}
|