Dominevo
ReferenceHTTP API

privacyMask

The privacyMask router: 4 methods of the privacy-mask capability, with tier, scope, input and output.

Capability privacy-mask · scope device · mode singleton · source packages/types/src/capabilities/privacy-mask.cap.ts:131.

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

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewyes
getOptionsqueryprotectedviewyes
setMaskmutationadminadmin onlyno
setAudioEnabledmutationadminadmin onlyno

privacyMask.getStatus

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

Input

{ deviceId: number }

Output

PrivacyMaskStatusSchema

Shapes: PrivacyMaskStatusSchema

privacyMask.getOptions

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

Input

{ deviceId: number }

Output

PrivacyMaskOptionsSchema

Shapes: PrivacyMaskOptionsSchema

privacyMask.setMask

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

Input

{ deviceId: number; patch: PrivacyMaskPatchSchema }

Output

void

Shapes: PrivacyMaskPatchSchema

privacyMask.setAudioEnabled

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

Input

{ deviceId: number; enabled: boolean }

Output

void