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.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user