Dominevo
ReferenceHTTP API

deviceExtension

The deviceExtension router: 4 methods of the device-extension capability, with tier, scope, input and output.

Capability device-extension · scope device · mode collection · source packages/types/src/capabilities/device-extension.cap.ts:204.

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

MethodKindTierToken scopeViewer
listSourcesqueryprotectedviewyes
listSlotsqueryprotectedviewyes
listCandidatesqueryprotectedviewyes
setSlotmutationadminadmin onlyno

deviceExtension.listSources

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

Input

{ deviceId: number }

Output

ExtensionSourceSchema[]

Shapes: ExtensionSourceSchema

deviceExtension.listSlots

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

Input

{ deviceId: number }

Output

ExtensionSlotRowSchema[]

Shapes: ExtensionSlotRowSchema

deviceExtension.listCandidates

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

Input

ExtensionSlotRefInputSchema

Output

ExtensionCandidatesSchema

Shapes: ExtensionSlotRefInputSchema · ExtensionCandidatesSchema

deviceExtension.setSlot

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

Input

ExtensionSetSlotInputSchema

Output

ExtensionSetResultSchema

Shapes: ExtensionSetSlotInputSchema · ExtensionSetResultSchema