mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-25 09:41:16 +00:00
* ci(swift): enforce shared kit dead-code coverage * chore(i18n): sync native source inventory * ci(swift): install pinned iOS scan tools
48 lines
1.2 KiB
Swift
48 lines
1.2 KiB
Swift
import Foundation
|
|
|
|
public enum OpenClawSystemCommand: String, Codable, Sendable {
|
|
case run = "system.run"
|
|
case which = "system.which"
|
|
case notify = "system.notify"
|
|
case execApprovalsGet = "system.execApprovals.get"
|
|
case execApprovalsSet = "system.execApprovals.set"
|
|
}
|
|
|
|
public enum OpenClawFileSystemCommand: String, Codable, Sendable {
|
|
case listDir = "fs.listDir"
|
|
}
|
|
|
|
public enum OpenClawNotificationPriority: String, Codable, Sendable {
|
|
case passive
|
|
case active
|
|
case timeSensitive
|
|
}
|
|
|
|
public enum OpenClawNotificationDelivery: String, Codable, Sendable {
|
|
case system
|
|
case overlay
|
|
case auto
|
|
}
|
|
|
|
public struct OpenClawSystemNotifyParams: Codable, Sendable, Equatable {
|
|
public var title: String
|
|
public var body: String
|
|
public var sound: String?
|
|
public var priority: OpenClawNotificationPriority?
|
|
public var delivery: OpenClawNotificationDelivery?
|
|
|
|
public init(
|
|
title: String,
|
|
body: String,
|
|
sound: String? = nil,
|
|
priority: OpenClawNotificationPriority? = nil,
|
|
delivery: OpenClawNotificationDelivery? = nil)
|
|
{
|
|
self.title = title
|
|
self.body = body
|
|
self.sound = sound
|
|
self.priority = priority
|
|
self.delivery = delivery
|
|
}
|
|
}
|