Skip to content

Commit 40af4dc

Browse files
fix(config): add push labels and sync protocol models
1 parent 4e0ca4c commit 40af4dc

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

apps/macos/Sources/OpenClawProtocol/GatewayModels.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ public struct PushTestResult: Codable, Sendable {
11061106
public let tokensuffix: String
11071107
public let topic: String
11081108
public let environment: String
1109+
public let transport: String
11091110

11101111
public init(
11111112
ok: Bool,
@@ -1114,7 +1115,8 @@ public struct PushTestResult: Codable, Sendable {
11141115
reason: String?,
11151116
tokensuffix: String,
11161117
topic: String,
1117-
environment: String)
1118+
environment: String,
1119+
transport: String)
11181120
{
11191121
self.ok = ok
11201122
self.status = status
@@ -1123,6 +1125,7 @@ public struct PushTestResult: Codable, Sendable {
11231125
self.tokensuffix = tokensuffix
11241126
self.topic = topic
11251127
self.environment = environment
1128+
self.transport = transport
11261129
}
11271130

11281131
private enum CodingKeys: String, CodingKey {
@@ -1133,6 +1136,7 @@ public struct PushTestResult: Codable, Sendable {
11331136
case tokensuffix = "tokenSuffix"
11341137
case topic
11351138
case environment
1139+
case transport
11361140
}
11371141
}
11381142

apps/shared/OpenClawKit/Sources/OpenClawProtocol/GatewayModels.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ public struct PushTestResult: Codable, Sendable {
11061106
public let tokensuffix: String
11071107
public let topic: String
11081108
public let environment: String
1109+
public let transport: String
11091110

11101111
public init(
11111112
ok: Bool,
@@ -1114,7 +1115,8 @@ public struct PushTestResult: Codable, Sendable {
11141115
reason: String?,
11151116
tokensuffix: String,
11161117
topic: String,
1117-
environment: String)
1118+
environment: String,
1119+
transport: String)
11181120
{
11191121
self.ok = ok
11201122
self.status = status
@@ -1123,6 +1125,7 @@ public struct PushTestResult: Codable, Sendable {
11231125
self.tokensuffix = tokensuffix
11241126
self.topic = topic
11251127
self.environment = environment
1128+
self.transport = transport
11261129
}
11271130

11281131
private enum CodingKeys: String, CodingKey {
@@ -1133,6 +1136,7 @@ public struct PushTestResult: Codable, Sendable {
11331136
case tokensuffix = "tokenSuffix"
11341137
case topic
11351138
case environment
1139+
case transport
11361140
}
11371141
}
11381142

src/config/schema.labels.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ export const FIELD_LABELS: Record<string, string> = {
8080
"gateway.auth.trustedProxy": "Gateway Trusted Proxy Auth",
8181
"gateway.trustedProxies": "Gateway Trusted Proxy CIDRs",
8282
"gateway.allowRealIpFallback": "Gateway Allow x-real-ip Fallback",
83+
"gateway.push": "Gateway Push Delivery",
84+
"gateway.push.apns": "Gateway Push APNs",
85+
"gateway.push.apns.relay": "Gateway Push APNs Relay",
86+
"gateway.push.apns.relay.baseUrl": "Gateway Push APNs Relay Base URL",
87+
"gateway.push.apns.relay.timeoutMs": "Gateway Push APNs Relay Timeout (ms)",
8388
"gateway.tools": "Gateway Tool Exposure Policy",
8489
"gateway.tools.allow": "Gateway Tool Allowlist",
8590
"gateway.tools.deny": "Gateway Tool Denylist",

0 commit comments

Comments
 (0)