Module api_pairing
Expand description
Device management and pairing API handlers.
Structs§
- Device
Info - Metadata about a paired device.
- Device
Registry - Registry of paired devices backed by SQLite.
- Pairing
Store - Store for pending pairing requests.
Functions§
- initiate_
pairing - POST /api/pairing/initiate — initiate a new pairing session
- list_
devices - GET /api/devices — list paired devices
- revoke_
device - DELETE /api/devices/{id} — revoke a paired device and its bearer token.
- rotate_
token - submit_
pairing_ enhanced - POST /api/pair — submit pairing code (for new device pairing)
- update_
my_ capabilities - POST /api/devices/me/capabilities — the calling device replaces its capability list.
The “me” path means there’s no separate device id in the URL — the bearer token in
Authorization identifies which row gets updated. Body:
{ "capabilities": ["..."] }.