mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-14 03:20:49 +00:00
29 lines
773 B
Swift
29 lines
773 B
Swift
import Foundation
|
|
|
|
public enum OpenClawTalkCommand: String, Codable, Sendable {
|
|
case pttStart = "talk.ptt.start"
|
|
case pttStop = "talk.ptt.stop"
|
|
case pttCancel = "talk.ptt.cancel"
|
|
case pttOnce = "talk.ptt.once"
|
|
}
|
|
|
|
public struct OpenClawTalkPTTStartPayload: Codable, Sendable, Equatable {
|
|
public var captureId: String
|
|
|
|
public init(captureId: String) {
|
|
self.captureId = captureId
|
|
}
|
|
}
|
|
|
|
public struct OpenClawTalkPTTStopPayload: Codable, Sendable, Equatable {
|
|
public var captureId: String
|
|
public var transcript: String?
|
|
public var status: String
|
|
|
|
public init(captureId: String, transcript: String?, status: String) {
|
|
self.captureId = captureId
|
|
self.transcript = transcript
|
|
self.status = status
|
|
}
|
|
}
|