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

69 lines
2.6 KiB
Swift

//
// ConnView.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ConnView: Sendable, Codable, ParameterConvertible, Hashable {
/** Account is the provider's label for the connected account. */
public var account: String?
/** ConnectedAt is when the connector was last (re)established, RFC 3339 UTC. */
public var connectedAt: String?
/** ExpiresAt is when the access token expires, RFC 3339 UTC; empty for a non-expiring credential. Reading the token auto-rotates inside the window. */
public var expiresAt: String?
/** ExternalID is the provider's own id for that account. */
public var externalId: String?
/** ID is provider + \":\" + label — what every other connector route addresses. */
public var id: String?
/** Label is the caller's name for this connection (\"default\", \"work\"). */
public var label: String?
/** Provider is the user-scoped provider's registry id. */
public var provider: String?
/** Scopes are the permissions the credential carries. Never null; [] when none. */
public var scopes: [String]?
public init(account: String? = nil, connectedAt: String? = nil, expiresAt: String? = nil, externalId: String? = nil, id: String? = nil, label: String? = nil, provider: String? = nil, scopes: [String]? = nil) {
self.account = account
self.connectedAt = connectedAt
self.expiresAt = expiresAt
self.externalId = externalId
self.id = id
self.label = label
self.provider = provider
self.scopes = scopes
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case connectedAt
case expiresAt
case externalId
case id
case label
case provider
case scopes
}
// 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(connectedAt, forKey: .connectedAt)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(externalId, forKey: .externalId)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(label, forKey: .label)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(scopes, forKey: .scopes)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension ConnView: Identifiable {}