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:
@@ -35,6 +35,16 @@ public enum TranscriptionPolishFallback: Sendable {
|
||||
if error is LLMError {
|
||||
return degradedWarning()
|
||||
}
|
||||
if let managedError = error as? ManagedGatewayError {
|
||||
switch managedError {
|
||||
case .insufficientCredits:
|
||||
return SharedL10n.string("flow.warning.managedInsufficientCredits")
|
||||
case .missingGrant, .scopeNotGranted, .invalidGrant:
|
||||
return SharedL10n.string("flow.warning.managedGrantRejected")
|
||||
case .timeout, .server:
|
||||
return degradedWarning()
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user