mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
36 lines
1.0 KiB
Swift
36 lines
1.0 KiB
Swift
//
|
|
// ApprovePairingIn.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ApprovePairingIn: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Channel is the transport the request came in on: discord, slack, teams, telegram or whatsapp. */
|
|
public var channel: String?
|
|
/** Code is the pairing code from GET /v1/channel/pairing. It is a capability: holding it is what authorises the approval, alongside org admin. */
|
|
public var code: String?
|
|
|
|
public init(channel: String? = nil, code: String? = nil) {
|
|
self.channel = channel
|
|
self.code = code
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case channel
|
|
case code
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(channel, forKey: .channel)
|
|
try container.encodeIfPresent(code, forKey: .code)
|
|
}
|
|
}
|
|
|