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:
Mariano
2026-02-18 20:04:03 +00:00
committed by GitHub
parent 264131eb9f
commit 750276fa36
3 changed files with 125 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- Protocol/Apple: regenerate Swift gateway models for `push.test` so `pnpm protocol:check` stays green on main. Thanks @mbelinky.
- Canvas/A2UI: improve bundled-asset resolution and empty-state handling so UI fallbacks render reliably. (#20312) Thanks @mbelinky.
- UI/Sessions: accept the canonical main session-key alias in Chat UI flows so main-session routing stays consistent. (#20311) Thanks @mbelinky.
- iOS/Onboarding: prevent pairing-status flicker during auto-resume by keeping resumed state transitions stable. (#20310) Thanks @mbelinky.

View File

@@ -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?

View File

@@ -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?