Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

51 lines
2.3 KiB
Swift

//
// CatalogEntry.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct CatalogEntry: Sendable, Codable, ParameterConvertible, Hashable {
/** Configured is whether THIS DEPLOYMENT holds the OAuth client credentials for the provider. False means Connect would dead-end, so the console can offer it disabled instead of broken. It is deployment-wide and says nothing about whether the caller's org has connected the source — that is the connector list's `status`. */
public var configured: Bool?
/** Description is one line of shop copy: what connecting this source pulls in. Native connectors carry written prose; a piece-backed one reads \"activepieces connector (<piece>)\". */
public var description: String?
/** DisplayName is the label to show a person. First-party connectors carry a written name (\"GitHub\", \"Google Drive\"); a piece-backed one falls back to the provider capitalized, because the rich activepieces metadata lives behind a cross-service call this read will not make. */
public var displayName: String?
/** \"native\" | \"piece\" */
public var kind: String?
/** Provider is the source's id and the address every connector op takes it by (/v1/knowledge/connectors/:provider). One of github, slack, google, notion. */
public var provider: String?
public init(configured: Bool? = nil, description: String? = nil, displayName: String? = nil, kind: String? = nil, provider: String? = nil) {
self.configured = configured
self.description = description
self.displayName = displayName
self.kind = kind
self.provider = provider
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case configured
case description
case displayName
case kind
case provider
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(configured, forKey: .configured)
try container.encodeIfPresent(description, forKey: .description)
try container.encodeIfPresent(displayName, forKey: .displayName)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(provider, forKey: .provider)
}
}