Dominevo
ReferenceHTTP API

deviceExport

The deviceExport router: 14 methods of the device-export capability, with tier, scope, input and output.

Capability device-export · scope system · mode collection · source packages/types/src/capabilities/device-export.cap.ts:224.

Every method is called at /trpc/deviceExport.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewno
getDeviceSettingsContributionqueryprotectedviewno
getDeviceLiveContributionqueryprotectedviewno
applyDeviceSettingsPatchmutationadminadmin onlyno
listInstancesqueryprotectedviewno
listSupportedDeviceKindsqueryprotectedviewno
listExposedDevicesqueryprotectedviewno
exposeDevicemutationadminadmin onlyno
unexposeDevicemutationadminadmin onlyno
setExposedNamemutationadminadmin onlyno
listSupportedEntityKindsqueryprotectedviewno
listExposedEntitiesqueryprotectedviewno
exposeEntitymutationadminadmin onlyno
unexposeEntitymutationadminadmin onlyno

deviceExport.getStatus

  • Kind: query — GET /trpc/deviceExport.getStatus
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.getStatus on your hub

Input

DeviceExportInstancePinSchema

Output

DeviceExportStatusSchema

Shapes: DeviceExportInstancePinSchema · DeviceExportStatusSchema

deviceExport.getDeviceSettingsContribution

  • Kind: query — GET /trpc/deviceExport.getDeviceSettingsContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.getDeviceSettingsContribution on your hub

Input

{ deviceId: number }

Output

{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" | "accordion"; defaultCollapsed?: boolean; columns?: 1 | 2 | 3 | 4; tab?: string; location?: "settings" | "top-tab" | "hero"; order?: number; fields: any[] })[] } | null

deviceExport.getDeviceLiveContribution

  • Kind: query — GET /trpc/deviceExport.getDeviceLiveContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.getDeviceLiveContribution on your hub

Input

{ deviceId: number }

Output

{ tabs?: ({ id: string; label: string; icon: string; order?: number })[]; sections: ({ id: string; title: string; description?: string; style?: "card" | "accordion"; defaultCollapsed?: boolean; columns?: 1 | 2 | 3 | 4; tab?: string; location?: "settings" | "top-tab" | "hero"; order?: number; fields: any[] })[] } | null

deviceExport.applyDeviceSettingsPatch

  • Kind: mutation — POST /trpc/deviceExport.applyDeviceSettingsPatch (added by the framework)
  • 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=deviceExport.applyDeviceSettingsPatch on your hub

Input

{ deviceId: number; patch: Record<string, unknown> }

Output

{ success: true }

deviceExport.listInstances

  • Kind: query — GET /trpc/deviceExport.listInstances
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.listInstances on your hub

Input

void

Output

ExportInstanceSchema[]

Shapes: ExportInstanceSchema

deviceExport.listSupportedDeviceKinds

  • Kind: query — GET /trpc/deviceExport.listSupportedDeviceKinds
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.listSupportedDeviceKinds on your hub

Input

DeviceExportInstancePinSchema

Output

string[]

Shapes: DeviceExportInstancePinSchema

deviceExport.listExposedDevices

  • Kind: query — GET /trpc/deviceExport.listExposedDevices
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.listExposedDevices on your hub

Input

DeviceExportInstancePinSchema

Output

ExposedDeviceSchema[]

Shapes: DeviceExportInstancePinSchema · ExposedDeviceSchema

deviceExport.exposeDevice

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

Input

DeviceExportExposeInputSchema

Output

void

Shapes: DeviceExportExposeInputSchema

deviceExport.unexposeDevice

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

Input

DeviceExportUnexposeInputSchema

Output

void

Shapes: DeviceExportUnexposeInputSchema

deviceExport.setExposedName

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

Input

DeviceExportSetExposedNameInputSchema

Output

void

Shapes: DeviceExportSetExposedNameInputSchema

deviceExport.listSupportedEntityKinds

  • Kind: query — GET /trpc/deviceExport.listSupportedEntityKinds
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.listSupportedEntityKinds on your hub

Input

void

Output

ExportEntityKindSchema[]

Shapes: ExportEntityKindSchema

deviceExport.listExposedEntities

  • Kind: query — GET /trpc/deviceExport.listExposedEntities
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability device-export, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=deviceExport.listExposedEntities on your hub

Input

DeviceExportInstancePinSchema

Output

ExposedEntitySchema[]

Shapes: DeviceExportInstancePinSchema · ExposedEntitySchema

deviceExport.exposeEntity

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

Input

ExposeEntityInputSchema

Output

void

Shapes: ExposeEntityInputSchema

deviceExport.unexposeEntity

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

Input

UnexposeEntityInputSchema

Output

void

Shapes: UnexposeEntityInputSchema