ReferenceHTTP API
audioAnalysis
The audioAnalysis router: 4 methods of the audio-analysis capability, with tier, scope, input and output.
Capability audio-analysis · scope device · mode singleton · source packages/types/src/capabilities/audio-analysis.cap.ts:28.
Every method is called at /trpc/audioAnalysis.<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 |
|---|---|---|---|---|
getDeviceSettingsContribution | query | protected | view | yes |
getDeviceLiveContribution | query | protected | view | yes |
applyDeviceSettingsPatch | mutation | admin | admin only | no |
resolveDeviceSettings | query | protected | view | yes |
audioAnalysis.getDeviceSettingsContribution
- Kind: query —
GET /trpc/audioAnalysis.getDeviceSettingsContribution(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaudio-analysis, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=audioAnalysis.getDeviceSettingsContributionon 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[] })[] } | nullaudioAnalysis.getDeviceLiveContribution
- Kind: query —
GET /trpc/audioAnalysis.getDeviceLiveContribution(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaudio-analysis, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=audioAnalysis.getDeviceLiveContributionon 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[] })[] } | nullaudioAnalysis.applyDeviceSettingsPatch
- Kind: mutation —
POST /trpc/audioAnalysis.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=audioAnalysis.applyDeviceSettingsPatchon your hub
Input
{ deviceId: number; patch: Record<string, unknown> }Output
{ success: true }audioAnalysis.resolveDeviceSettings
- Kind: query —
GET /trpc/audioAnalysis.resolveDeviceSettings - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityaudio-analysis, or categorydevice, or a device grant coveringdeviceId - Viewer: yes
- Try it: open
/system/api-explorer?method=audioAnalysis.resolveDeviceSettingson your hub
Input
{ deviceId: number }Output
<custom>