Dominevo
ReferenceHTTP API

presence

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

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

presence.getStatus

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

Input

{ deviceId: number }

Output

PresenceStatusSchema

Shapes: PresenceStatusSchema

On this page