Dominevo
ReferenceHTTP API

eventEmitter

The eventEmitter router: 1 method of the event-emitter capability, with tier, scope, input and output.

Capability event-emitter · scope device · mode singleton · source packages/types/src/capabilities/event-emitter.cap.ts:46.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

eventEmitter.getStatus

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

Input

{ deviceId: number }

Output

EventEmitterStatusSchema

Shapes: EventEmitterStatusSchema