diff --git a/apps/macos/Sources/ClawdisProtocol/GatewayModels.swift b/apps/macos/Sources/ClawdisProtocol/GatewayModels.swift index f77f1f4fc..cb59de0ce 100644 --- a/apps/macos/Sources/ClawdisProtocol/GatewayModels.swift +++ b/apps/macos/Sources/ClawdisProtocol/GatewayModels.swift @@ -425,6 +425,7 @@ public struct NodePairRequestParams: Codable { public let caps: [String]? public let commands: [String]? public let remoteip: String? + public let silent: Bool? public init( nodeid: String, @@ -435,7 +436,8 @@ public struct NodePairRequestParams: Codable { modelidentifier: String?, caps: [String]?, commands: [String]?, - remoteip: String? + remoteip: String?, + silent: Bool? ) { self.nodeid = nodeid self.displayname = displayname @@ -446,6 +448,7 @@ public struct NodePairRequestParams: Codable { self.caps = caps self.commands = commands self.remoteip = remoteip + self.silent = silent } private enum CodingKeys: String, CodingKey { case nodeid = "nodeId" @@ -457,6 +460,7 @@ public struct NodePairRequestParams: Codable { case caps case commands case remoteip = "remoteIp" + case silent } } @@ -597,6 +601,22 @@ public struct SessionsPatchParams: Codable { } } +public struct ConfigGetParams: Codable { +} + +public struct ConfigSetParams: Codable { + public let raw: String + + public init( + raw: String + ) { + self.raw = raw + } + private enum CodingKeys: String, CodingKey { + case raw + } +} + public struct CronJob: Codable { public let id: String public let name: String? diff --git a/dist/protocol.schema.json b/dist/protocol.schema.json index 22657ad73..b7ac21e5f 100644 --- a/dist/protocol.schema.json +++ b/dist/protocol.schema.json @@ -917,6 +917,9 @@ "remoteIp": { "minLength": 1, "type": "string" + }, + "silent": { + "type": "boolean" } }, "required": [ @@ -1073,6 +1076,24 @@ "key" ] }, + "ConfigGetParams": { + "additionalProperties": false, + "type": "object", + "properties": {} + }, + "ConfigSetParams": { + "additionalProperties": false, + "type": "object", + "properties": { + "raw": { + "minLength": 1, + "type": "string" + } + }, + "required": [ + "raw" + ] + }, "CronJob": { "additionalProperties": false, "type": "object",