Files
zeekay 87d088ed73 Regenerate against the current cloud document
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.
2026-09-01 02:21:56 -07:00

46 lines
1.5 KiB
Swift

//
// ChannelAgentsPut.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ChannelAgentsPut: Sendable, Codable, ParameterConvertible, Hashable {
/** Channel is the transport to edit. Required; an unknown value is a 404. */
public var channel: String?
/** Default sets the agent for rooms with no binding of their own; \"hanzo\" restores the built-in. Empty or absent leaves it unchanged. */
public var _default: String?
/** Rooms binds platform room ids to agents; rooms not named are left alone. */
public var rooms: [String: String]?
/** Unbind removes the bindings of these rooms, so they fall back to Default. */
public var unbind: [String]?
public init(channel: String? = nil, _default: String? = nil, rooms: [String: String]? = nil, unbind: [String]? = nil) {
self.channel = channel
self._default = _default
self.rooms = rooms
self.unbind = unbind
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case channel
case _default = "default"
case rooms
case unbind
}
// 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)
try container.encodeIfPresent(unbind, forKey: .unbind)
}
}