Dominevo
ReferenceHTTP API

error

The error router: 2 methods of the error capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
listFaultTypesqueryprotectedviewyes

error.getStatus

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

Input

{ deviceId: number }

Output

ErrorStatusSchema

Shapes: ErrorStatusSchema

error.listFaultTypes

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

Input

ListFaultTypesInputSchema

Output

FaultTypesSchema

Shapes: ListFaultTypesInputSchema · FaultTypesSchema