Component evidence

OpenClaw Permission State Enum (OpenClawKit/PermissionsSnapshot.swift)

OpenClawKit · Sources/OpenClawKit/PermissionsSnapshot.swift · swift · MIT
voicesecurityauthlang:swifttag:ios

Cross-platform Swift enum representing authorization states for privacy-protected capabilities like camera, contacts, location, and speech.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/MarcoDotIO/OpenClawKit | License: MIT | Copyright 2026 OpenClawKit Contributors
// Provided via justclaw.it.com; keep this notice with the code.
import Foundation
#if canImport(AVFoundation)
import AVFoundation
#endif
#if canImport(Contacts)
import Contacts
#endif
#if canImport(CoreLocation)
import CoreLocation
#endif
#if canImport(EventKit)
import EventKit
#endif
#if canImport(Photos)
import Photos
#endif
// Speech ships on tvOS, but SFSpeechRecognizer is unavailable there.
#if canImport(Speech) && !os(tvOS)
import Speech
#endif
#if canImport(UserNotifications)
import UserNotifications
#endif

/// Authorization state of one privacy-protected capability.
public enum OpenClawPermissionState: String, Sendable, Codable, CaseIterable {
    /// The user has not bee

... (truncated -- full source via MCP)