Dominevo
ReferenceHTTP API

flood

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

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

flood.getStatus

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

Input

{ deviceId: number }

Output

FloodStatusSchema

Shapes: FloodStatusSchema

On this page