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.
36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
//
|
|
// OnboardReq.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct OnboardReq: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** Name is the organization's display name. Ignored when personal is true, which derives the name from the caller's own username instead. */
|
|
public var name: String?
|
|
/** Personal asks for the caller's own space: the name is derived from their username and the slug auto-suffixes to stay unique. Meaningless — and refused — for a caller who already has an organization. */
|
|
public var personal: Bool?
|
|
|
|
public init(name: String? = nil, personal: Bool? = nil) {
|
|
self.name = name
|
|
self.personal = personal
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case name
|
|
case personal
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(name, forKey: .name)
|
|
try container.encodeIfPresent(personal, forKey: .personal)
|
|
}
|
|
}
|
|
|