Dominevo
ReferenceHTTP API

streamParams

The streamParams router: 4 methods of the stream-params capability, with tier, scope, input and output.

Capability stream-params · scope device · mode singleton · source packages/types/src/capabilities/stream-params.cap.ts:94.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
getOptionsqueryprotectedviewyes
setProfilemutationadminadmin onlyno
getConfigSchemaqueryprotectedviewyes

streamParams.getStatus

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

Input

{ deviceId: number }

Output

StreamParamsStatusSchema

Shapes: StreamParamsStatusSchema

streamParams.getOptions

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

Input

{ deviceId: number }

Output

StreamParamsOptionsSchema

Shapes: StreamParamsOptionsSchema

streamParams.setProfile

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

Input

{ deviceId: number; profile: StreamProfileSchema; patch: StreamProfilePatchSchema }

Output

void

Shapes: StreamProfileSchema · StreamProfilePatchSchema

streamParams.getConfigSchema

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

Input

{ deviceId: number }

Output

unknown | null