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.
56 lines
1.9 KiB
Swift
56 lines
1.9 KiB
Swift
//
|
|
// EmbedStatusResp.swift
|
|
//
|
|
// Generated by openapi-generator
|
|
// https://openapi-generator.tech
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct EmbedStatusResp: Sendable, Codable, ParameterConvertible, Hashable {
|
|
|
|
/** App is the app this verdict is about. */
|
|
public var app: String?
|
|
/** EmbedURL is the in-app landing URL to frame. Empty when the caller is not entitled — a non-entitled caller never receives it. */
|
|
public var embedUrl: String?
|
|
/** Entitled is whether the caller's org may frame this brand-owned app. */
|
|
public var entitled: Bool?
|
|
/** Origin is the app's origin on this deployment's own brand domain. */
|
|
public var origin: String?
|
|
/** Phase is the verdict in one word: not-entitled, not-provisioned or ready. */
|
|
public var phase: String?
|
|
/** Reachable is whether the app answered the liveness probe. */
|
|
public var reachable: Bool?
|
|
|
|
public init(app: String? = nil, embedUrl: String? = nil, entitled: Bool? = nil, origin: String? = nil, phase: String? = nil, reachable: Bool? = nil) {
|
|
self.app = app
|
|
self.embedUrl = embedUrl
|
|
self.entitled = entitled
|
|
self.origin = origin
|
|
self.phase = phase
|
|
self.reachable = reachable
|
|
}
|
|
|
|
public enum CodingKeys: String, CodingKey, CaseIterable {
|
|
case app
|
|
case embedUrl
|
|
case entitled
|
|
case origin
|
|
case phase
|
|
case reachable
|
|
}
|
|
|
|
// Encodable protocol methods
|
|
|
|
public func encode(to encoder: Encoder) throws {
|
|
var container = encoder.container(keyedBy: CodingKeys.self)
|
|
try container.encodeIfPresent(app, forKey: .app)
|
|
try container.encodeIfPresent(embedUrl, forKey: .embedUrl)
|
|
try container.encodeIfPresent(entitled, forKey: .entitled)
|
|
try container.encodeIfPresent(origin, forKey: .origin)
|
|
try container.encodeIfPresent(phase, forKey: .phase)
|
|
try container.encodeIfPresent(reachable, forKey: .reachable)
|
|
}
|
|
}
|
|
|