mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-13 11:00:50 +00:00
24 lines
542 B
Swift
24 lines
542 B
Swift
import Foundation
|
|
|
|
public enum OpenClawChatCommand: String, Codable, Sendable {
|
|
case push = "chat.push"
|
|
}
|
|
|
|
public struct OpenClawChatPushParams: Codable, Sendable, Equatable {
|
|
public var text: String
|
|
public var speak: Bool?
|
|
|
|
public init(text: String, speak: Bool? = nil) {
|
|
self.text = text
|
|
self.speak = speak
|
|
}
|
|
}
|
|
|
|
public struct OpenClawChatPushPayload: Codable, Sendable, Equatable {
|
|
public var messageId: String?
|
|
|
|
public init(messageId: String? = nil) {
|
|
self.messageId = messageId
|
|
}
|
|
}
|