Dominevo
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.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
setOverlaymutationadminadmin onlyno

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: view on capability osd, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=osd.getStatus on your hub

Input

{ deviceId: number }

Output

OsdStatusSchema

Shapes: 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.setOverlay on your hub

Input

{ deviceId: number; overlayId: string; patch: OsdOverlayPatchSchema }

Output

void

Shapes: OsdOverlayPatchSchema