Read App Intents Documentation
Nucleic-Session: 56C5F781-4444-466B-91CE-A7734A8E117F Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -10,6 +10,9 @@ enum IntentError: Error, CustomLocalizedStringResourceConvertible {
|
||||
case notPaired
|
||||
/// The action needs `control` scope, which this device hasn't been granted.
|
||||
case controlScopeRequired
|
||||
/// A high-risk approval (destructive/network/host-exec) can't be allowed inline — it must be
|
||||
/// confirmed on the app's guarded card (docs/APP_INTENTS_OPPORTUNITIES §3.3).
|
||||
case needsAppConfirmation
|
||||
|
||||
var localizedStringResource: LocalizedStringResource {
|
||||
switch self {
|
||||
@@ -19,6 +22,8 @@ enum IntentError: Error, CustomLocalizedStringResourceConvertible {
|
||||
"Pair this iPhone with your Mac in Nucleic first."
|
||||
case .controlScopeRequired:
|
||||
"This device can view and approve, but isn't allowed to control sessions."
|
||||
case .needsAppConfirmation:
|
||||
"This one's high-risk — open Nucleic to confirm it on the approval card."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user