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

56 lines
2.2 KiB
Swift

//
// ConnectOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ConnectOut: Sendable, Codable, ParameterConvertible, Hashable {
/** Account is the account label the provider reported for the credential. apikey path only; a pointer because \"\" is a real answer the provider gave. */
public var account: String?
/** AuthorizeURL is the provider consent URL to send the user to. OAuth path only. */
public var authorizeUrl: String?
/** Connected is true on the apikey path once the credential verified and sealed. */
public var connected: Bool?
/** ExternalID is the provider's account id for the credential. apikey path only. */
public var externalId: String?
/** Provider is the connector's registry id. apikey path only. */
public var provider: String?
/** Scopes are the permissions the credential carries. apikey path only; never null on that path ([] when the provider reported none). */
public var scopes: [String]?
public init(account: String? = nil, authorizeUrl: String? = nil, connected: Bool? = nil, externalId: String? = nil, provider: String? = nil, scopes: [String]? = nil) {
self.account = account
self.authorizeUrl = authorizeUrl
self.connected = connected
self.externalId = externalId
self.provider = provider
self.scopes = scopes
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case account
case authorizeUrl
case connected
case externalId
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(authorizeUrl, forKey: .authorizeUrl)
try container.encodeIfPresent(connected, forKey: .connected)
try container.encodeIfPresent(externalId, forKey: .externalId)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(scopes, forKey: .scopes)
}
}