From 19126033ddc4d60d3f7b8af59ae0ab6a7915bd8a Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 19 Mar 2026 03:38:31 +0000 Subject: [PATCH] build: regenerate protocol swift models --- .../OpenClawProtocol/GatewayModels.swift | 118 ++++++++++++++++++ .../OpenClawProtocol/GatewayModels.swift | 118 ++++++++++++++++++ 2 files changed, 236 insertions(+) diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index fcd04955e8c..6f97c9bf9f1 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -1326,6 +1326,124 @@ public struct SessionsResolveParams: Codable, Sendable { } } +public struct SessionsCreateParams: Codable, Sendable { + public let key: String? + public let agentid: String? + public let label: String? + public let model: String? + public let parentsessionkey: String? + public let task: String? + public let message: String? + + public init( + key: String?, + agentid: String?, + label: String?, + model: String?, + parentsessionkey: String?, + task: String?, + message: String?) + { + self.key = key + self.agentid = agentid + self.label = label + self.model = model + self.parentsessionkey = parentsessionkey + self.task = task + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case key + case agentid = "agentId" + case label + case model + case parentsessionkey = "parentSessionKey" + case task + case message + } +} + +public struct SessionsSendParams: Codable, Sendable { + public let key: String + public let message: String + public let thinking: String? + public let attachments: [AnyCodable]? + public let timeoutms: Int? + public let idempotencykey: String? + + public init( + key: String, + message: String, + thinking: String?, + attachments: [AnyCodable]?, + timeoutms: Int?, + idempotencykey: String?) + { + self.key = key + self.message = message + self.thinking = thinking + self.attachments = attachments + self.timeoutms = timeoutms + self.idempotencykey = idempotencykey + } + + private enum CodingKeys: String, CodingKey { + case key + case message + case thinking + case attachments + case timeoutms = "timeoutMs" + case idempotencykey = "idempotencyKey" + } +} + +public struct SessionsMessagesSubscribeParams: Codable, Sendable { + public let key: String + + public init( + key: String) + { + self.key = key + } + + private enum CodingKeys: String, CodingKey { + case key + } +} + +public struct SessionsMessagesUnsubscribeParams: Codable, Sendable { + public let key: String + + public init( + key: String) + { + self.key = key + } + + private enum CodingKeys: String, CodingKey { + case key + } +} + +public struct SessionsAbortParams: Codable, Sendable { + public let key: String + public let runid: String? + + public init( + key: String, + runid: String?) + { + self.key = key + self.runid = runid + } + + private enum CodingKeys: String, CodingKey { + case key + case runid = "runId" + } +} + public struct SessionsPatchParams: Codable, Sendable { public let key: String public let label: AnyCodable? diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index fcd04955e8c..6f97c9bf9f1 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -1326,6 +1326,124 @@ public struct SessionsResolveParams: Codable, Sendable { } } +public struct SessionsCreateParams: Codable, Sendable { + public let key: String? + public let agentid: String? + public let label: String? + public let model: String? + public let parentsessionkey: String? + public let task: String? + public let message: String? + + public init( + key: String?, + agentid: String?, + label: String?, + model: String?, + parentsessionkey: String?, + task: String?, + message: String?) + { + self.key = key + self.agentid = agentid + self.label = label + self.model = model + self.parentsessionkey = parentsessionkey + self.task = task + self.message = message + } + + private enum CodingKeys: String, CodingKey { + case key + case agentid = "agentId" + case label + case model + case parentsessionkey = "parentSessionKey" + case task + case message + } +} + +public struct SessionsSendParams: Codable, Sendable { + public let key: String + public let message: String + public let thinking: String? + public let attachments: [AnyCodable]? + public let timeoutms: Int? + public let idempotencykey: String? + + public init( + key: String, + message: String, + thinking: String?, + attachments: [AnyCodable]?, + timeoutms: Int?, + idempotencykey: String?) + { + self.key = key + self.message = message + self.thinking = thinking + self.attachments = attachments + self.timeoutms = timeoutms + self.idempotencykey = idempotencykey + } + + private enum CodingKeys: String, CodingKey { + case key + case message + case thinking + case attachments + case timeoutms = "timeoutMs" + case idempotencykey = "idempotencyKey" + } +} + +public struct SessionsMessagesSubscribeParams: Codable, Sendable { + public let key: String + + public init( + key: String) + { + self.key = key + } + + private enum CodingKeys: String, CodingKey { + case key + } +} + +public struct SessionsMessagesUnsubscribeParams: Codable, Sendable { + public let key: String + + public init( + key: String) + { + self.key = key + } + + private enum CodingKeys: String, CodingKey { + case key + } +} + +public struct SessionsAbortParams: Codable, Sendable { + public let key: String + public let runid: String? + + public init( + key: String, + runid: String?) + { + self.key = key + self.runid = runid + } + + private enum CodingKeys: String, CodingKey { + case key + case runid = "runId" + } +} + public struct SessionsPatchParams: Codable, Sendable { public let key: String public let label: AnyCodable?