Dominevo
ReferenceHTTP API

navigation

The navigation router: 11 methods of the navigation capability, with tier, scope, input and output.

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

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
movemutationprotectedcreateyes
stopmutationprotectedcreateyes
goToPointmutationprotectedcreateyes
listActionsqueryprotectedviewyes
runActionmutationprotectedcreateyes
playSoundmutationprotectedcreateyes
setLightOnmutationprotectedcreateyes
setLightModemutationprotectedcreateyes
setLightLevelmutationprotectedcreateyes
getFeaturesqueryprotectedviewyes
  • Kind: query — GET /trpc/navigation.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability navigation, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=navigation.getStatus on your hub

Input

{ deviceId: number }

Output

NavigationStatusSchema

Shapes: NavigationStatusSchema

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

Input

{ pan?: number; tilt?: number; speed?: number; deviceId: number }

Output

void
  • Kind: mutation — POST /trpc/navigation.stop
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability navigation, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=navigation.stop on your hub

Input

{ deviceId: number }

Output

void
  • Kind: mutation — POST /trpc/navigation.goToPoint
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability navigation, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=navigation.goToPoint on your hub

Input

{ x: number; y: number; deviceId: number }

Output

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

Input

{ deviceId: number }

Output

NavigationActionEntrySchema[]

Shapes: NavigationActionEntrySchema

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

Input

{ deviceId: number; actionId: NavigationActionIdSchema }

Output

void

Shapes: NavigationActionIdSchema

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

Input

{ deviceId: number; soundId: number }

Output

void
  • Kind: mutation — POST /trpc/navigation.setLightOn
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability navigation, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=navigation.setLightOn on your hub

Input

{ deviceId: number; on: boolean }

Output

void
  • Kind: mutation — POST /trpc/navigation.setLightMode
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: create on capability navigation, or category device, or a device grant covering deviceId
  • Viewer: yes
  • Try it: open /system/api-explorer?method=navigation.setLightMode on your hub

Input

{ deviceId: number; mode: NavigationLightModeSchema; level?: number }

Output

void

Shapes: NavigationLightModeSchema

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

Input

{ deviceId: number; level: number }

Output

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

Input

{ deviceId: number }

Output

NavigationFeaturesSchema

Shapes: NavigationFeaturesSchema