ReferenceHTTP API
osd
The osd router: 2 methods of the osd capability, with tier, scope, input and output.
Capability osd · scope device · mode singleton · source packages/types/src/capabilities/osd.cap.ts:68.
Every method is called at /trpc/osd.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
setOverlay | mutation | admin | admin only | no |
osd.getStatus
- Kind: query —
GET /trpc/osd.getStatus(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityosd, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=osd.getStatuson your hub
Input
{ deviceId: number }Output
OsdStatusSchemaShapes: OsdStatusSchema
osd.setOverlay
- Kind: mutation —
POST /trpc/osd.setOverlay - Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
- Token scope: none — the admin tier needs an administrator (a
*token or an admin session) - Viewer: no
- Try it: open
/system/api-explorer?method=osd.setOverlayon your hub
Input
{ deviceId: number; overlayId: string; patch: OsdOverlayPatchSchema }Output
voidShapes: OsdOverlayPatchSchema