Dominevo
ReferenceHTTP API

binary

The binary router: 1 method of the binary capability, with tier, scope, input and output.

Capability binary · scope device · mode singleton · source packages/types/src/capabilities/binary.cap.ts:25.

Every method is called at /trpc/binary.<method> — queries with GET, mutations with POST. See How to call and Authorization. Device methods take deviceId in their input.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

binary.getStatus

  • Kind: query — GET /trpc/binary.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability binary, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=binary.getStatus on your hub

Input

{ deviceId: number }

Output

BinaryStatusSchema

Shapes: BinaryStatusSchema

On this page