Files
swift-sdk/Sources/Hanzo/Models/ConnectorTokenOut.swift
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

46 lines
1.4 KiB
Swift

//
// ConnectorTokenOut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ConnectorTokenOut: Sendable, Codable, ParameterConvertible, Hashable {
/** ExpiresAt is when this token expires, RFC 3339 UTC; empty if non-expiring. */
public var expiresAt: String?
/** Label is the connector's label. */
public var label: String?
/** Provider is the connector's provider id. */
public var provider: String?
/** Token is the access token, rotated first if it was within the refresh window. */
public var token: String?
public init(expiresAt: String? = nil, label: String? = nil, provider: String? = nil, token: String? = nil) {
self.expiresAt = expiresAt
self.label = label
self.provider = provider
self.token = token
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case expiresAt
case label
case provider
case token
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(expiresAt, forKey: .expiresAt)
try container.encodeIfPresent(label, forKey: .label)
try container.encodeIfPresent(provider, forKey: .provider)
try container.encodeIfPresent(token, forKey: .token)
}
}