mirror of
https://github.com/hanzoai/swift-sdk.git
synced 2026-10-30 18:20:19 +00:00
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.
51 lines
2.1 KiB
Swift
51 lines
2.1 KiB
Swift
//
|
|
// OnboardResp.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct OnboardResp: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** AccessKey is the identifier of the org-scoped credential provisioning minted with the organization. Present on a first run that actually minted one. */
|
|
public var accessKey: String?
|
|
/** AccessSecret is that credential's confidential half, returned ONCE — on the response that mints it and never again. IAM keeps only its argon2id digest and blanks the plaintext, so this is the single moment it exists in a form its owner can read; a replay of the same provision re-reveals nothing. */
|
|
public var accessSecret: String?
|
|
/** Additional is true when the caller already had an organization and this one was created WITHOUT moving them into it — they reach it via the org switcher. */
|
|
public var additional: Bool?
|
|
/** DisplayName is the organization's human name. */
|
|
public var displayName: String?
|
|
/** Org is the created organization's slug, which is what X-Org-Id carries. */
|
|
public var org: String?
|
|
|
|
public init(accessKey: String? = nil, accessSecret: String? = nil, additional: Bool? = nil, displayName: String? = nil, org: String? = nil) {
|
|
self.accessKey = accessKey
|
|
self.accessSecret = accessSecret
|
|
self.additional = additional
|
|
self.displayName = displayName
|
|
self.org = org
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case accessKey
|
|
case accessSecret
|
|
case additional
|
|
case displayName
|
|
case org
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(accessKey, forKey: .accessKey)
|
|
try container.encodeIfPresent(accessSecret, forKey: .accessSecret)
|
|
try container.encodeIfPresent(additional, forKey: .additional)
|
|
try container.encodeIfPresent(displayName, forKey: .displayName)
|
|
try container.encodeIfPresent(org, forKey: .org)
|
|
}
|
|
}
|
|
|