Add iOS node push-token registration foundation

This commit is contained in:
William Valentin
2026-02-16 12:47:34 -08:00
parent bea4c54f3b
commit 58c4b0b9bb
19 changed files with 448 additions and 7 deletions
+21
View File
@@ -667,6 +667,25 @@ Publish companion/node runtime status metadata (for example macOS menu-bar heart
}
```
#### `node.push_token.set`
Register a node push token (currently APNs) for companion delivery routing.
Requires `server.nodes.push.enabled: true`.
**Request:**
```json
{
"id": 13,
"method": "node.push_token.set",
"params": {
"provider": "apns",
"token": "abcd1234abcd1234abcd1234abcd1234",
"topic": "com.example.flynn",
"environment": "sandbox"
}
}
```
#### `system.capabilities`
Return gateway protocol version, node policy status, and feature-gate snapshot.
@@ -688,6 +707,7 @@ Return gateway protocol version, node policy status, and feature-gate snapshot.
"nodes": {
"enabled": true,
"locationEnabled": true,
"pushEnabled": true,
"allowedRoles": ["companion"],
"registered": true,
"role": "companion",
@@ -707,6 +727,7 @@ Return the operator-facing snapshot of registered node locations.
#### `system.nodes`
Return the operator-facing snapshot of registered node connections (identity, role, capabilities, location/status).
Push tokens are returned as masked previews (`tokenPreview`) and never exposed in full.
### Canvas Methods