Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
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.
2026-09-05 18:55:38 -07:00

66 lines
2.4 KiB
Swift

//
// ConnectorView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ConnectorView: Sendable, Codable, ParameterConvertible, Hashable {
/** Account names the connected external account. Absent until the org connects. */
public var account: String?
/** Configured is true when this deployment holds OAuth credentials for the provider. */
public var configured: Bool?
/** DocCount is the live count of this provider's documents in the org's store. */
public var docCount: Int64?
/** Error is the last sync failure, if any. Absent until the org connects. */
public var error: String?
/** Kind is \"native\" for a first-party Go connector, \"piece\" for a long-tail one. */
public var kind: String?
/** LastSync is when the last pull finished. Absent until the org connects. */
public var lastSync: String?
/** Provider is the connector's id. */
public var provider: String?
/** Status is connected, disconnected, syncing or error. */
public var status: String?
public init(account: String? = nil, configured: Bool? = nil, docCount: Int64? = nil, error: String? = nil, kind: String? = nil, lastSync: String? = nil, provider: String? = nil, status: String? = nil) {
self.account = account
self.configured = configured
self.docCount = docCount
self.error = error
self.kind = kind
self.lastSync = lastSync
self.provider = provider
self.status = status
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case configured
case docCount
case error
case kind
case lastSync
case provider
case status
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(account, forKey: .account)
try container.encodeIfPresent(configured, forKey: .configured)
try container.encodeIfPresent(docCount, forKey: .docCount)
try container.encodeIfPresent(error, forKey: .error)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(lastSync, forKey: .lastSync)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(status, forKey: .status)
}
}