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 @@
|
||||
// ManagedGatewayScopePolicy.swift
|
||||
// OSGKeyboard · Shared
|
||||
//
|
||||
// Computes the smallest grant needed by the currently enabled managed paths.
|
||||
|
||||
import Foundation
|
||||
|
||||
public enum ManagedGatewayScopePolicy {
|
||||
public static func scopes(engineMode: String) -> Set<ManagedGatewayCapability> {
|
||||
var scopes: Set<ManagedGatewayCapability> = [.polish, .assistant, .agent]
|
||||
if engineMode == "cloud" {
|
||||
scopes.insert(.asr)
|
||||
}
|
||||
return scopes
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user