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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
getOptions | query | protected | view | yes |
setSettings | mutation | admin | admin only | no |
setEnabled | mutation | admin | admin only | no |
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:
viewon capabilitynative-object-detection, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=nativeObjectDetection.getStatuson your hub
Input
{ deviceId: number }Output
NativeObjectDetectionStatusSchemaShapes: NativeObjectDetectionStatusSchema
nativeObjectDetection.getOptions
- Kind: query —
GET /trpc/nativeObjectDetection.getOptions - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilitynative-object-detection, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=nativeObjectDetection.getOptionson your hub
Input
{ deviceId: number }Output
NativeObjectDetectionOptionsSchemaShapes: 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.setSettingson your hub
Input
{ deviceId: number; settings: NativeObjectDetectionSettingsPatchSchema }Output
voidShapes: 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.setEnabledon your hub
Input
{ deviceId: number; enabled: boolean }Output
void