mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04: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:
@@ -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.
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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