Dominevo
ReferenceHTTP API

imageSettings

The imageSettings router: 3 methods of the image-settings capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
getOptionsqueryprotectedviewyes
setSettingsmutationadminadmin onlyno

imageSettings.getStatus

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

Input

{ deviceId: number }

Output

ImageSettingsStatusSchema

Shapes: ImageSettingsStatusSchema

imageSettings.getOptions

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

Input

{ deviceId: number }

Output

ImageSettingsOptionsSchema

Shapes: ImageSettingsOptionsSchema

imageSettings.setSettings

  • Kind: mutation — POST /trpc/imageSettings.setSettings
  • Tier: admin — an administrator; a viewer only as the Viewer line says; never a scoped token
  • Token scope: none — the admin tier needs an administrator (a * token or an admin session)
  • Viewer: no
  • Try it: open /system/api-explorer?method=imageSettings.setSettings on your hub

Input

{ deviceId: number; settings: ImageSettingsPatchSchema }

Output

void

Shapes: ImageSettingsPatchSchema