From d000b6aa762151eba17e7dee84ab4ab6161e27f9 Mon Sep 17 00:00:00 2001 From: Bryan Marty Date: Wed, 4 Mar 2026 15:36:42 +0000 Subject: [PATCH] chore: regenerate protocol bindings for deliveryContext schema addition Updates generated Swift bindings (GatewayModels.swift) to include the deliveryContext field added to ConfigApplyLikeParamsSchema and UpdateRunParamsSchema in src/gateway/protocol/schema/config.ts. --- .../OpenClawProtocol/GatewayModels.swift | 18 +++++++++++++++--- .../OpenClawProtocol/GatewayModels.swift | 18 +++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index 0b1d7b13e01..e01267c889f 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -1656,19 +1656,22 @@ public struct ConfigApplyParams: Codable, Sendable { public let sessionkey: String? public let note: String? public let restartdelayms: Int? + public let deliverycontext: [String: AnyCodable]? public init( raw: String, basehash: String?, sessionkey: String?, note: String?, - restartdelayms: Int?) + restartdelayms: Int?, + deliverycontext: [String: AnyCodable]?) { self.raw = raw self.basehash = basehash self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -1677,6 +1680,7 @@ public struct ConfigApplyParams: Codable, Sendable { case sessionkey = "sessionKey" case note case restartdelayms = "restartDelayMs" + case deliverycontext = "deliveryContext" } } @@ -1686,19 +1690,22 @@ public struct ConfigPatchParams: Codable, Sendable { public let sessionkey: String? public let note: String? public let restartdelayms: Int? + public let deliverycontext: [String: AnyCodable]? public init( raw: String, basehash: String?, sessionkey: String?, note: String?, - restartdelayms: Int?) + restartdelayms: Int?, + deliverycontext: [String: AnyCodable]?) { self.raw = raw self.basehash = basehash self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -1707,6 +1714,7 @@ public struct ConfigPatchParams: Codable, Sendable { case sessionkey = "sessionKey" case note case restartdelayms = "restartDelayMs" + case deliverycontext = "deliveryContext" } } @@ -3709,17 +3717,20 @@ public struct UpdateRunParams: Codable, Sendable { public let note: String? public let restartdelayms: Int? public let timeoutms: Int? + public let deliverycontext: [String: AnyCodable]? public init( sessionkey: String?, note: String?, restartdelayms: Int?, - timeoutms: Int?) + timeoutms: Int?, + deliverycontext: [String: AnyCodable]?) { self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms self.timeoutms = timeoutms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -3727,6 +3738,7 @@ public struct UpdateRunParams: Codable, Sendable { case note case restartdelayms = "restartDelayMs" case timeoutms = "timeoutMs" + case deliverycontext = "deliveryContext" } } diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index 0b1d7b13e01..e01267c889f 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -1656,19 +1656,22 @@ public struct ConfigApplyParams: Codable, Sendable { public let sessionkey: String? public let note: String? public let restartdelayms: Int? + public let deliverycontext: [String: AnyCodable]? public init( raw: String, basehash: String?, sessionkey: String?, note: String?, - restartdelayms: Int?) + restartdelayms: Int?, + deliverycontext: [String: AnyCodable]?) { self.raw = raw self.basehash = basehash self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -1677,6 +1680,7 @@ public struct ConfigApplyParams: Codable, Sendable { case sessionkey = "sessionKey" case note case restartdelayms = "restartDelayMs" + case deliverycontext = "deliveryContext" } } @@ -1686,19 +1690,22 @@ public struct ConfigPatchParams: Codable, Sendable { public let sessionkey: String? public let note: String? public let restartdelayms: Int? + public let deliverycontext: [String: AnyCodable]? public init( raw: String, basehash: String?, sessionkey: String?, note: String?, - restartdelayms: Int?) + restartdelayms: Int?, + deliverycontext: [String: AnyCodable]?) { self.raw = raw self.basehash = basehash self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -1707,6 +1714,7 @@ public struct ConfigPatchParams: Codable, Sendable { case sessionkey = "sessionKey" case note case restartdelayms = "restartDelayMs" + case deliverycontext = "deliveryContext" } } @@ -3709,17 +3717,20 @@ public struct UpdateRunParams: Codable, Sendable { public let note: String? public let restartdelayms: Int? public let timeoutms: Int? + public let deliverycontext: [String: AnyCodable]? public init( sessionkey: String?, note: String?, restartdelayms: Int?, - timeoutms: Int?) + timeoutms: Int?, + deliverycontext: [String: AnyCodable]?) { self.sessionkey = sessionkey self.note = note self.restartdelayms = restartdelayms self.timeoutms = timeoutms + self.deliverycontext = deliverycontext } private enum CodingKeys: String, CodingKey { @@ -3727,6 +3738,7 @@ public struct UpdateRunParams: Codable, Sendable { case note case restartdelayms = "restartDelayMs" case timeoutms = "timeoutMs" + case deliverycontext = "deliveryContext" } }