Dominevo
ReferenceHTTP API

nativeObjectDetection

The nativeObjectDetection router: 4 methods of the native-object-detection capability, with tier, scope, input and output.

Capability native-object-detection · scope device · mode singleton · source packages/types/src/capabilities/native-object-detection.cap.ts:114.

Every method is called at /trpc/nativeObjectDetection.<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
setEnabledmutationadminadmin onlyno

nativeObjectDetection.getStatus

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

Input

{ deviceId: number }

Output

NativeObjectDetectionStatusSchema

Shapes: NativeObjectDetectionStatusSchema

nativeObjectDetection.getOptions

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

Input

{ deviceId: number }

Output

NativeObjectDetectionOptionsSchema

Shapes: NativeObjectDetectionOptionsSchema

nativeObjectDetection.setSettings

  • Kind: mutation — POST /trpc/nativeObjectDetection.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=nativeObjectDetection.setSettings on your hub

Input

{ deviceId: number; settings: NativeObjectDetectionSettingsPatchSchema }

Output

void

Shapes: NativeObjectDetectionSettingsPatchSchema

nativeObjectDetection.setEnabled

  • Kind: mutation — POST /trpc/nativeObjectDetection.setEnabled
  • 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=nativeObjectDetection.setEnabled on your hub

Input

{ deviceId: number; enabled: boolean }

Output

void