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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | yes |
getOptions | query | protected | view | yes |
setMask | mutation | admin | admin only | no |
setAudioEnabled | mutation | admin | admin only | no |
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:
viewon capabilityprivacy-mask, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=privacyMask.getStatuson your hub
Input
{ deviceId: number }Output
PrivacyMaskStatusSchemaShapes: PrivacyMaskStatusSchema
privacyMask.getOptions
- Kind: query —
GET /trpc/privacyMask.getOptions - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityprivacy-mask, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=privacyMask.getOptionson your hub
Input
{ deviceId: number }Output
PrivacyMaskOptionsSchemaShapes: 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.setMaskon your hub
Input
{ deviceId: number; patch: PrivacyMaskPatchSchema }Output
voidShapes: 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.setAudioEnabledon your hub
Input
{ deviceId: number; enabled: boolean }Output
void