mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 07:17:26 +00:00
fix(protocol): regenerate Swift models for push.test (#20325)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 9281e7ad03
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Co-authored-by: mbelinky <132747814+mbelinky@users.noreply.github.com>
Reviewed-by: @mbelinky
This commit is contained in:
@@ -925,6 +925,68 @@ public struct NodeInvokeRequestEvent: Codable, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
public struct PushTestParams: Codable, Sendable {
|
||||
public let nodeid: String
|
||||
public let title: String?
|
||||
public let body: String?
|
||||
public let environment: String?
|
||||
|
||||
public init(
|
||||
nodeid: String,
|
||||
title: String?,
|
||||
body: String?,
|
||||
environment: String?
|
||||
) {
|
||||
self.nodeid = nodeid
|
||||
self.title = title
|
||||
self.body = body
|
||||
self.environment = environment
|
||||
}
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case nodeid = "nodeId"
|
||||
case title
|
||||
case body
|
||||
case environment
|
||||
}
|
||||
}
|
||||
|
||||
public struct PushTestResult: Codable, Sendable {
|
||||
public let ok: Bool
|
||||
public let status: Int
|
||||
public let apnsid: String?
|
||||
public let reason: String?
|
||||
public let tokensuffix: String
|
||||
public let topic: String
|
||||
public let environment: String
|
||||
|
||||
public init(
|
||||
ok: Bool,
|
||||
status: Int,
|
||||
apnsid: String?,
|
||||
reason: String?,
|
||||
tokensuffix: String,
|
||||
topic: String,
|
||||
environment: String
|
||||
) {
|
||||
self.ok = ok
|
||||
self.status = status
|
||||
self.apnsid = apnsid
|
||||
self.reason = reason
|
||||
self.tokensuffix = tokensuffix
|
||||
self.topic = topic
|
||||
self.environment = environment
|
||||
}
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
case ok
|
||||
case status
|
||||
case apnsid = "apnsId"
|
||||
case reason
|
||||
case tokensuffix = "tokenSuffix"
|
||||
case topic
|
||||
case environment
|
||||
}
|
||||
}
|
||||
|
||||
public struct SessionsListParams: Codable, Sendable {
|
||||
public let limit: Int?
|
||||
public let activeminutes: Int?
|
||||
|
||||
Reference in New Issue
Block a user