Files
swift-sdk/Sources/Hanzo/Models/UserEnablementItem.swift
zeekay b0db427c79 regenerate from cloud 939b09d4
The projection was 113 commits behind the document it claims to describe, and
`generate.py --all --check` reported every one of the thirteen clients DRIFTED —
the same +19 models in each, because they all fell behind the same emission.

Regenerated in place from hanzo-inc/cloud openapi.yaml at 939b09d4
(sha256 087024f6…), which is the only description of this API that cannot name a
route the binary does not serve. `--check` is clean across all thirteen after.

.spec-lock moved with the code. The generator READS that file and never writes
it — hanzoai/ci`s lane does — so a hand run leaves every lock naming the previous
document. A lock that disagrees with the tree beside it is worse than no lock:
the next `--check` without `--spec` fetches what production serves, compares it
to a digest that was already wrong, and reports drift that is really staleness.
2026-08-24 23:32:45 -07:00

59 lines
2.5 KiB
Swift

//
// UserEnablementItem.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct UserEnablementItem: Sendable, Codable, ParameterConvertible, Hashable {
/** CanOptIn is whether POST /v1/pricing/enablement/optin would do anything here: the item is in beta and this org is not on its list yet. False for a caller with no validated org, who has no org to enrol. */
public var canOptIn: Bool?
/** Effective is whether the caller's org may use the item right now, which is the field to branch on: true for any ga item, for a beta this org holds, and never for an off one. */
public var effective: Bool?
/** ID is the item within that namespace — a model id, a provider name, or a feature key. */
public var id: String?
/** Kind is the namespace the id lives in: \"model\", \"provider\" or \"feature\". */
public var kind: String?
/** OptedIn is whether the caller's org is on this item's beta grant list. It can be true on an \"off\" item — the list survives the kill switch and is simply ignored while it is thrown — so it does not imply Effective. */
public var optedIn: Bool?
/** State is the item's GLOBAL availability — \"off\", \"beta\" or \"ga\" — which is the operator's setting and not this caller's answer. Effective is that. */
public var state: String?
public init(canOptIn: Bool? = nil, effective: Bool? = nil, id: String? = nil, kind: String? = nil, optedIn: Bool? = nil, state: String? = nil) {
self.canOptIn = canOptIn
self.effective = effective
self.id = id
self.kind = kind
self.optedIn = optedIn
self.state = state
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case canOptIn
case effective
case id
case kind
case optedIn
case state
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(canOptIn, forKey: .canOptIn)
try container.encodeIfPresent(effective, forKey: .effective)
try container.encodeIfPresent(id, forKey: .id)
try container.encodeIfPresent(kind, forKey: .kind)
try container.encodeIfPresent(optedIn, forKey: .optedIn)
try container.encodeIfPresent(state, forKey: .state)
}
}
@available(iOS 13, tvOS 13, watchOS 6, macOS 10.15, *)
extension UserEnablementItem: Identifiable {}