Dominevo
ReferenceHTTP API

image

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

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes

image.getStatus

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

Input

{ deviceId: number }

Output

ImageStatusSchema

Shapes: ImageStatusSchema

On this page