498f407585
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.
17 lines
474 B
Swift
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
|
|
}
|
|
}
|