Dominevo
ReferenceHTTP API

enumSensor

The enumSensor router: 1 method of the enum-sensor capability, with tier, scope, input and output.

Capability enum-sensor · scope device · mode singleton · source packages/types/src/capabilities/enum-sensor.cap.ts:34.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

enumSensor.getStatus

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

Input

{ deviceId: number }

Output

EnumSensorStatusSchema

Shapes: EnumSensorStatusSchema