diff --git a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift index a134b4fd5b4..0cf9d0c475f 100644 --- a/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/macos/Sources/OpenClawProtocol/GatewayModels.swift @@ -436,7 +436,11 @@ public struct PollParams: Codable, Sendable { public let question: String public let options: [String] public let maxselections: Int? + public let durationseconds: Int? public let durationhours: Int? + public let silent: Bool? + public let isanonymous: Bool? + public let threadid: String? public let channel: String? public let accountid: String? public let idempotencykey: String @@ -446,7 +450,11 @@ public struct PollParams: Codable, Sendable { question: String, options: [String], maxselections: Int?, + durationseconds: Int?, durationhours: Int?, + silent: Bool?, + isanonymous: Bool?, + threadid: String?, channel: String?, accountid: String?, idempotencykey: String @@ -455,7 +463,11 @@ public struct PollParams: Codable, Sendable { self.question = question self.options = options self.maxselections = maxselections + self.durationseconds = durationseconds self.durationhours = durationhours + self.silent = silent + self.isanonymous = isanonymous + self.threadid = threadid self.channel = channel self.accountid = accountid self.idempotencykey = idempotencykey @@ -465,7 +477,11 @@ public struct PollParams: Codable, Sendable { case question case options case maxselections = "maxSelections" + case durationseconds = "durationSeconds" case durationhours = "durationHours" + case silent + case isanonymous = "isAnonymous" + case threadid = "threadId" case channel case accountid = "accountId" case idempotencykey = "idempotencyKey" diff --git a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift index a134b4fd5b4..0cf9d0c475f 100644 --- a/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift +++ b/apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift @@ -436,7 +436,11 @@ public struct PollParams: Codable, Sendable { public let question: String public let options: [String] public let maxselections: Int? + public let durationseconds: Int? public let durationhours: Int? + public let silent: Bool? + public let isanonymous: Bool? + public let threadid: String? public let channel: String? public let accountid: String? public let idempotencykey: String @@ -446,7 +450,11 @@ public struct PollParams: Codable, Sendable { question: String, options: [String], maxselections: Int?, + durationseconds: Int?, durationhours: Int?, + silent: Bool?, + isanonymous: Bool?, + threadid: String?, channel: String?, accountid: String?, idempotencykey: String @@ -455,7 +463,11 @@ public struct PollParams: Codable, Sendable { self.question = question self.options = options self.maxselections = maxselections + self.durationseconds = durationseconds self.durationhours = durationhours + self.silent = silent + self.isanonymous = isanonymous + self.threadid = threadid self.channel = channel self.accountid = accountid self.idempotencykey = idempotencykey @@ -465,7 +477,11 @@ public struct PollParams: Codable, Sendable { case question case options case maxselections = "maxSelections" + case durationseconds = "durationSeconds" case durationhours = "durationHours" + case silent + case isanonymous = "isAnonymous" + case threadid = "threadId" case channel case accountid = "accountId" case idempotencykey = "idempotencyKey"