mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
The lock sat at 574d1f1d while the product moved on. The team surface stopped at rooms — no messages path, no way to open one — so anything built on this client had to reach past it with its own HTTP calls, which is the duplication a generated client exists to prevent.
41 lines
1.2 KiB
Swift
41 lines
1.2 KiB
Swift
//
|
|
// ChannelAgents.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct ChannelAgents: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Channel is the transport these bindings are for. */
|
|
public var channel: String?
|
|
/** Default is the agent that answers any room without a binding of its own; \"hanzo\" when the org has never set one. */
|
|
public var _default: String?
|
|
/** Rooms maps a platform room id to the agent that answers there. */
|
|
public var rooms: [String: String]?
|
|
|
|
public init(channel: String? = nil, _default: String? = nil, rooms: [String: String]? = nil) {
|
|
self.channel = channel
|
|
self._default = _default
|
|
self.rooms = rooms
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case channel
|
|
case _default = "default"
|
|
case rooms
|
|
}
|
|
|
|
// 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(_default, forKey: ._default)
|
|
try container.encodeIfPresent(rooms, forKey: .rooms)
|
|
}
|
|
}
|
|
|