Files
zeekay 0c2f028a8c Generate the Swift client, which this copy did not carry
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.
2026-08-23 10:04:41 -07:00

41 lines
1.9 KiB
Swift

//
// ProfileResponse.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct ProfileResponse: Sendable, Codable, ParameterConvertible, Hashable {
/** KeyMetrics are the org's OWN numbers behind those signals — never another org's, and never a platform aggregate. */
public var keyMetrics: ProfileMetrics?
/** Signals is what was observed of the org right now, one boolean per probe. A probe that could not be run reports FALSE, not absent — the shape is stable so a caller never has to tell a missing key from a negative answer, and the cost is that \"not observed\" and \"not there\" look alike here. Keys are the probe names, including the `module:<name>` and `connected:<provider>` families. */
public var signals: [String: Bool]?
/** Stage is how far the business itself has got — formed, launched, activated or scaling — decided purely from the signals below, and by what the org has ACHIEVED rather than what it has configured. It reads the STRONGEST evidence present, so money of record makes an org scaling even if an earlier rung's signal was never observed. It is unrelated to checklist progress. */
public var stage: String?
public init(keyMetrics: ProfileMetrics? = nil, signals: [String: Bool]? = nil, stage: String? = nil) {
self.keyMetrics = keyMetrics
self.signals = signals
self.stage = stage
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case keyMetrics
case signals
case stage
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(keyMetrics, forKey: .keyMetrics)
try container.encodeIfPresent(signals, forKey: .signals)
try container.encodeIfPresent(stage, forKey: .stage)
}
}