Files
OSGKeyboard/OSGKeyboardShared/Models/CredentialSource.swift
T
Rocky 498f407585 feat(account): add managed credits and cloud gateway
Introduce optional Apple account-backed credits with scoped gateway access while preserving local and BYOK paths. Refresh assistant behavior, tests, privacy disclosures, docs, and the website for the 2.0 experience.
2026-08-20 11:43:21 +08:00

17 lines
474 B
Swift

// CredentialSource.swift
// OSGKeyboard · Shared
//
// Credential ownership is independent from the ASR engine. This keeps local
// ASR + managed polish, direct BYOK cloud, and fully managed flows composable.
import Foundation
public enum CredentialSource: String, CaseIterable, Codable, Sendable {
case byok
case managed
public static func fromStored(_ value: String?) -> CredentialSource {
CredentialSource(rawValue: value ?? "") ?? .byok
}
}