Dominevo
ReferenceHTTP API

recording

The recording router: 5 methods of the recording capability, with tier, scope, input and output.

Capability recording · scope device · mode collection · source packages/types/src/capabilities/recording.cap.ts:277.

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

MethodKindTierToken scopeViewer
listSourcesqueryprotectedviewyes
getAvailabilityqueryprotectedviewyes
getDaysWithRecordingsqueryprotectedviewyes
getPlaybackqueryprotectedviewyes
getPlaybackOptionsqueryprotectedviewyes

recording.listSources

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

Input

{ deviceId: number }

Output

RecordingSourceSchema[]

Shapes: RecordingSourceSchema

recording.getAvailability

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

Input

{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: string }

Output

RecordingAvailabilitySchema

Shapes: RecordingAvailabilitySchema

recording.getDaysWithRecordings

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

Input

{ deviceId: number; provider: string; fromMs: number; toMs: number; tzOffsetMinutes: number }

Output

RecordingDaysSchema

Shapes: RecordingDaysSchema

recording.getPlayback

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

Input

{ deviceId: number; provider: string; fromMs: number; toMs: number; profile?: CamProfileSchema }

Output

RecordingPlaybackSchema

Shapes: CamProfileSchema · RecordingPlaybackSchema

recording.getPlaybackOptions

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

Input

{ deviceId: number; provider: string }

Output

RecordingSourceOptionsSchema

Shapes: RecordingSourceOptionsSchema