From 182dcd4c8eff8bca60a717a09d453c3a15b7585e Mon Sep 17 00:00:00 2001 From: Glucksberg Date: Mon, 26 Jan 2026 23:47:39 +0000 Subject: [PATCH] fix(ci): regenerate Swift protocol models and fix test expectations - Regenerate GatewayModels.swift with new MessageApproval types - Update commands-registry tests to match new ResolvedCommandArgChoice format (choices now return {label, value} objects instead of plain strings) Co-Authored-By: Claude Opus 4.5 --- .../OpenClawProtocol/GatewayModels.swift | 62 +++++++++++++++++++ .../OpenClawProtocol/GatewayModels.swift | 62 +++++++++++++++++++ 2 files changed, 124 insertions(+) diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index 9d2ca5ed4..d4aaff54b 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -2068,6 +2068,68 @@ public struct ExecApprovalResolveParams: Codable, Sendable { } } +public struct MessageApprovalRequestParams: Codable, Sendable { + public let id: String? + public let action: String + public let channel: String + public let to: String + public let message: AnyCodable? + public let mediaurl: AnyCodable? + public let agentid: AnyCodable? + public let sessionkey: AnyCodable? + public let timeoutms: Int? + + public init( + id: String?, + action: String, + channel: String, + to: String, + message: AnyCodable?, + mediaurl: AnyCodable?, + agentid: AnyCodable?, + sessionkey: AnyCodable?, + timeoutms: Int? + ) { + self.id = id + self.action = action + self.channel = channel + self.to = to + self.message = message + self.mediaurl = mediaurl + self.agentid = agentid + self.sessionkey = sessionkey + self.timeoutms = timeoutms + } + private enum CodingKeys: String, CodingKey { + case id + case action + case channel + case to + case message + case mediaurl = "mediaUrl" + case agentid = "agentId" + case sessionkey = "sessionKey" + case timeoutms = "timeoutMs" + } +} + +public struct MessageApprovalResolveParams: Codable, Sendable { + public let id: String + public let decision: String + + public init( + id: String, + decision: String + ) { + self.id = id + self.decision = decision + } + private enum CodingKeys: String, CodingKey { + case id + case decision + } +} + public struct DevicePairListParams: Codable, Sendable { } diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index 9d2ca5ed4..d4aaff54b 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -2068,6 +2068,68 @@ public struct ExecApprovalResolveParams: Codable, Sendable { } } +public struct MessageApprovalRequestParams: Codable, Sendable { + public let id: String? + public let action: String + public let channel: String + public let to: String + public let message: AnyCodable? + public let mediaurl: AnyCodable? + public let agentid: AnyCodable? + public let sessionkey: AnyCodable? + public let timeoutms: Int? + + public init( + id: String?, + action: String, + channel: String, + to: String, + message: AnyCodable?, + mediaurl: AnyCodable?, + agentid: AnyCodable?, + sessionkey: AnyCodable?, + timeoutms: Int? + ) { + self.id = id + self.action = action + self.channel = channel + self.to = to + self.message = message + self.mediaurl = mediaurl + self.agentid = agentid + self.sessionkey = sessionkey + self.timeoutms = timeoutms + } + private enum CodingKeys: String, CodingKey { + case id + case action + case channel + case to + case message + case mediaurl = "mediaUrl" + case agentid = "agentId" + case sessionkey = "sessionKey" + case timeoutms = "timeoutMs" + } +} + +public struct MessageApprovalResolveParams: Codable, Sendable { + public let id: String + public let decision: String + + public init( + id: String, + decision: String + ) { + self.id = id + self.decision = decision + } + private enum CodingKeys: String, CodingKey { + case id + case decision + } +} + public struct DevicePairListParams: Codable, Sendable { }