Skip to content

Commit 56f787e

Browse files
authored
build(protocol): regenerate Swift models after pending node work schemas (#41477)
Merged via squash. Prepared head SHA: cae0aaf Co-authored-by: mbelinky <[email protected]> Co-authored-by: mbelinky <[email protected]> Reviewed-by: @mbelinky
1 parent 531e836 commit 56f787e

File tree

3 files changed

+193
-0
lines changed

3 files changed

+193
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Docs: https://docs.openclaw.ai
3535
- Agents/billing recovery: probe single-provider billing cooldowns on the existing throttle so topping up credits can recover without a manual gateway restart. (#41422) thanks @altaywtf.
3636
- ACP/follow-up hardening: make session restore and prompt completion degrade gracefully on transcript/update failures, enforce bounded tool-location traversal, and skip non-image ACPX turns the runtime cannot serialize. (#41464) Thanks @mbelinky.
3737
- Agents/fallback observability: add structured, sanitized model-fallback decision and auth-profile failure-state events with correlated run IDs so cooldown probes and failover paths are easier to trace in logs. (#41337) thanks @altaywtf.
38+
- Protocol/Swift model sync: regenerate pending node work Swift bindings after the landed `node.pending.*` schema additions so generated protocol artifacts are consistent again. (#41477) Thanks @mbelinky.
3839

3940
## 2026.3.8
4041

apps/macos/Sources/OpenClawProtocol/GatewayModels.swift

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,102 @@ public struct NodeEventParams: Codable, Sendable {
950950
}
951951
}
952952

953+
public struct NodePendingDrainParams: Codable, Sendable {
954+
public let maxitems: Int?
955+
956+
public init(
957+
maxitems: Int?)
958+
{
959+
self.maxitems = maxitems
960+
}
961+
962+
private enum CodingKeys: String, CodingKey {
963+
case maxitems = "maxItems"
964+
}
965+
}
966+
967+
public struct NodePendingDrainResult: Codable, Sendable {
968+
public let nodeid: String
969+
public let revision: Int
970+
public let items: [[String: AnyCodable]]
971+
public let hasmore: Bool
972+
973+
public init(
974+
nodeid: String,
975+
revision: Int,
976+
items: [[String: AnyCodable]],
977+
hasmore: Bool)
978+
{
979+
self.nodeid = nodeid
980+
self.revision = revision
981+
self.items = items
982+
self.hasmore = hasmore
983+
}
984+
985+
private enum CodingKeys: String, CodingKey {
986+
case nodeid = "nodeId"
987+
case revision
988+
case items
989+
case hasmore = "hasMore"
990+
}
991+
}
992+
993+
public struct NodePendingEnqueueParams: Codable, Sendable {
994+
public let nodeid: String
995+
public let type: String
996+
public let priority: String?
997+
public let expiresinms: Int?
998+
public let wake: Bool?
999+
1000+
public init(
1001+
nodeid: String,
1002+
type: String,
1003+
priority: String?,
1004+
expiresinms: Int?,
1005+
wake: Bool?)
1006+
{
1007+
self.nodeid = nodeid
1008+
self.type = type
1009+
self.priority = priority
1010+
self.expiresinms = expiresinms
1011+
self.wake = wake
1012+
}
1013+
1014+
private enum CodingKeys: String, CodingKey {
1015+
case nodeid = "nodeId"
1016+
case type
1017+
case priority
1018+
case expiresinms = "expiresInMs"
1019+
case wake
1020+
}
1021+
}
1022+
1023+
public struct NodePendingEnqueueResult: Codable, Sendable {
1024+
public let nodeid: String
1025+
public let revision: Int
1026+
public let queued: [String: AnyCodable]
1027+
public let waketriggered: Bool
1028+
1029+
public init(
1030+
nodeid: String,
1031+
revision: Int,
1032+
queued: [String: AnyCodable],
1033+
waketriggered: Bool)
1034+
{
1035+
self.nodeid = nodeid
1036+
self.revision = revision
1037+
self.queued = queued
1038+
self.waketriggered = waketriggered
1039+
}
1040+
1041+
private enum CodingKeys: String, CodingKey {
1042+
case nodeid = "nodeId"
1043+
case revision
1044+
case queued
1045+
case waketriggered = "wakeTriggered"
1046+
}
1047+
}
1048+
9531049
public struct NodeInvokeRequestEvent: Codable, Sendable {
9541050
public let id: String
9551051
public let nodeid: String

apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,102 @@ public struct NodeEventParams: Codable, Sendable {
950950
}
951951
}
952952

953+
public struct NodePendingDrainParams: Codable, Sendable {
954+
public let maxitems: Int?
955+
956+
public init(
957+
maxitems: Int?)
958+
{
959+
self.maxitems = maxitems
960+
}
961+
962+
private enum CodingKeys: String, CodingKey {
963+
case maxitems = "maxItems"
964+
}
965+
}
966+
967+
public struct NodePendingDrainResult: Codable, Sendable {
968+
public let nodeid: String
969+
public let revision: Int
970+
public let items: [[String: AnyCodable]]
971+
public let hasmore: Bool
972+
973+
public init(
974+
nodeid: String,
975+
revision: Int,
976+
items: [[String: AnyCodable]],
977+
hasmore: Bool)
978+
{
979+
self.nodeid = nodeid
980+
self.revision = revision
981+
self.items = items
982+
self.hasmore = hasmore
983+
}
984+
985+
private enum CodingKeys: String, CodingKey {
986+
case nodeid = "nodeId"
987+
case revision
988+
case items
989+
case hasmore = "hasMore"
990+
}
991+
}
992+
993+
public struct NodePendingEnqueueParams: Codable, Sendable {
994+
public let nodeid: String
995+
public let type: String
996+
public let priority: String?
997+
public let expiresinms: Int?
998+
public let wake: Bool?
999+
1000+
public init(
1001+
nodeid: String,
1002+
type: String,
1003+
priority: String?,
1004+
expiresinms: Int?,
1005+
wake: Bool?)
1006+
{
1007+
self.nodeid = nodeid
1008+
self.type = type
1009+
self.priority = priority
1010+
self.expiresinms = expiresinms
1011+
self.wake = wake
1012+
}
1013+
1014+
private enum CodingKeys: String, CodingKey {
1015+
case nodeid = "nodeId"
1016+
case type
1017+
case priority
1018+
case expiresinms = "expiresInMs"
1019+
case wake
1020+
}
1021+
}
1022+
1023+
public struct NodePendingEnqueueResult: Codable, Sendable {
1024+
public let nodeid: String
1025+
public let revision: Int
1026+
public let queued: [String: AnyCodable]
1027+
public let waketriggered: Bool
1028+
1029+
public init(
1030+
nodeid: String,
1031+
revision: Int,
1032+
queued: [String: AnyCodable],
1033+
waketriggered: Bool)
1034+
{
1035+
self.nodeid = nodeid
1036+
self.revision = revision
1037+
self.queued = queued
1038+
self.waketriggered = waketriggered
1039+
}
1040+
1041+
private enum CodingKeys: String, CodingKey {
1042+
case nodeid = "nodeId"
1043+
case revision
1044+
case queued
1045+
case waketriggered = "wakeTriggered"
1046+
}
1047+
}
1048+
9531049
public struct NodeInvokeRequestEvent: Codable, Sendable {
9541050
public let id: String
9551051
public let nodeid: String

0 commit comments

Comments
 (0)