Dominevo
ReferenceHTTP API

recordingArchive

The recordingArchive router: 34 methods of the recording-archive capability, with tier, scope, input and output.

Capability recording-archive · scope system · mode singleton · source packages/types/src/capabilities/recording-archive.cap.ts:452.

Every method is called at /trpc/recordingArchive.<method> — queries with GET, mutations with POST. See How to call and Authorization.

MethodKindTierToken scopeViewer
getStatusqueryprotectedviewno
getDeviceSettingsContributionqueryprotectedviewno
getDeviceLiveContributionqueryprotectedviewno
applyDeviceSettingsPatchmutationadminadmin onlyno
getAvailabilityBatchqueryprotectedviewyes
getDaysWithRecordingsBatchqueryprotectedviewyes
getStorageUsagequeryadminadmin onlyno
getDeviceConfigqueryprotectedviewyes
locateSegmentqueryadminadmin onlyno
readSegmentBytesqueryadminadmin onlyno
readGopBytesqueryadminadmin onlyno
readWindowBytesqueryadminadmin onlyno
setDeviceConfigmutationadminadmin onlyno
rescanStoragemutationadminadmin onlyno
pruneFootagemutationadminadmin onlyno
deleteFootprintmutationadminadmin onlyno
listOpsLogqueryadminadmin onlyno
renderGifmutationadminadmin onlyno
renderClipmutationadminadmin onlyno
pauseForStorageMigrationmutationadminadmin onlyno
resumeForStorageMigrationmutationadminadmin onlyno
refreshStorageLocationsForMigrationmutationadminadmin onlyno
startStorageMigrationMovemutationadminadmin onlyno
getStorageMigrationMoveStatusqueryadminadmin onlyno
cancelStorageMigrationMovemutationadminadmin onlyno
relocateFootagemutationadminadmin onlyno
listRelocateJobsqueryadminadmin onlyno
getRelocateResiduequeryadminadmin onlyno
reconcileLedgerAgainstDiskmutationadminadmin onlyno
cancelRelocateJobmutationadminadmin onlyno
planStorageRebalancequeryadminadmin onlyno
startStorageRebalancemutationadminadmin onlyno
getPlacementqueryadminadmin onlyno
setDevicePlacementmutationadminadmin onlyno

recordingArchive.getStatus

  • Kind: query — GET /trpc/recordingArchive.getStatus (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability recording-archive, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=recordingArchive.getStatus on your hub

Input

{ deviceId: number }

Output

RecordingStatusSchema

Shapes: RecordingStatusSchema

recordingArchive.getDeviceSettingsContribution

  • Kind: query — GET /trpc/recordingArchive.getDeviceSettingsContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability recording-archive, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=recordingArchive.getDeviceSettingsContribution on 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[] })[] } | null

recordingArchive.getDeviceLiveContribution

  • Kind: query — GET /trpc/recordingArchive.getDeviceLiveContribution (added by the framework)
  • Tier: protected — any signed-in principal whose scopes cover the method
  • Token scope: view on capability recording-archive, or category system
  • Viewer: no
  • Try it: open /system/api-explorer?method=recordingArchive.getDeviceLiveContribution on 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[] })[] } | null

recordingArchive.applyDeviceSettingsPatch

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

Input

{ deviceId: number; patch: Record<string, unknown> }

Output

{ success: true }

recordingArchive.getAvailabilityBatch

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

Input

{ deviceIds: number[]; fromMs: number; toMs: number }

Output

RecordingAvailabilityForDeviceSchema[]

Shapes: RecordingAvailabilityForDeviceSchema

recordingArchive.getDaysWithRecordingsBatch

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

Input

{ deviceIds: number[]; fromMs: number; toMs: number; tzOffsetMinutes: number }

Output

RecordingDaysForDeviceSchema[]

Shapes: RecordingDaysForDeviceSchema

recordingArchive.getStorageUsage

  • Kind: query — GET /trpc/recordingArchive.getStorageUsage
  • 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=recordingArchive.getStorageUsage on your hub

Input

{}

Output

RecordingStorageUsageSchema

Shapes: RecordingStorageUsageSchema

recordingArchive.getDeviceConfig

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

Input

{ deviceId: number }

Output

{ enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" | "events"; audio?: "on" | "muted"; battery?: { min?: number; max?: number }; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" | "vehicle" | "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } }

Shapes: CameraRecordingModeSchema · CamProfileSchema

recordingArchive.locateSegment

  • Kind: query — GET /trpc/recordingArchive.locateSegment
  • 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=recordingArchive.locateSegment on your hub

Input

{ deviceId: number; profile: string; epochMs: number }

Output

LocateSegmentResultSchema

Shapes: LocateSegmentResultSchema

recordingArchive.readSegmentBytes

  • Kind: query — GET /trpc/recordingArchive.readSegmentBytes
  • 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=recordingArchive.readSegmentBytes on your hub

Input

{ deviceId: number; profile: string; startMs: number }

Output

ReadSegmentBytesResultSchema

Shapes: ReadSegmentBytesResultSchema

recordingArchive.readGopBytes

  • Kind: query — GET /trpc/recordingArchive.readGopBytes
  • 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=recordingArchive.readGopBytes on your hub

Input

{ deviceId: number; profile: string; startMs: number; epochMs: number }

Output

ReadGopBytesResultSchema

Shapes: ReadGopBytesResultSchema

recordingArchive.readWindowBytes

  • Kind: query — GET /trpc/recordingArchive.readWindowBytes
  • 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=recordingArchive.readWindowBytes on your hub

Input

{ deviceId: number; profile: string; startMs: number; fromMs: number; toMs: number }

Output

ReadWindowBytesResultSchema

Shapes: ReadWindowBytesResultSchema

recordingArchive.setDeviceConfig

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

Input

{ deviceId: number; config: { enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" | "events"; audio?: "on" | "muted"; battery?: { min?: number; max?: number }; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" | "vehicle" | "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } } }

Output

{ enabled: boolean; mode?: CameraRecordingModeSchema; profiles?: CamProfileSchema[]; segmentSeconds?: number; bands?: ({ days: number[]; start: string; end: string; mode: "continuous" | "events"; audio?: "on" | "muted"; battery?: { min?: number; max?: number }; triggers?: { motion?: boolean; audioThresholdDbfs?: number; objectClasses?: ("person" | "vehicle" | "animal")[]; sensorDeviceIds?: number[] }; preBufferSec?: number; postBufferSec?: number })[] = []; deviceDecision?: boolean; retention?: { maxAgeDays?: number; maxSizeGb?: number } }

Shapes: CameraRecordingModeSchema · CamProfileSchema

recordingArchive.rescanStorage

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

Input

{ deviceId: number }

Output

RecordingStatusSchema

Shapes: RecordingStatusSchema

recordingArchive.pruneFootage

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

Input

{ deviceId: number; reason?: "retention" | "quota" | "manual" | "operator" | "maintenance" | "orphaned-device" }

Output

{ floorMs: number | null; deletedBuckets: number; reclaimedBytes: number }

recordingArchive.deleteFootprint

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

Input

{ deviceId: number; fromMs?: number; toMs?: number }

Output

{ deletedBuckets: number; reclaimedBytes: number }

recordingArchive.listOpsLog

  • Kind: query — GET /trpc/recordingArchive.listOpsLog
  • 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=recordingArchive.listOpsLog on your hub

Input

{ deviceId?: number; limit?: number }

Output

({ id: string; at: number; domain: "recording" | "events"; op: "prune" | "manual-delete" | "rescan" | "retention-run" | "relocate" | "orphan-audit"; reason: "retention" | "quota" | "manual" | "operator" | "maintenance" | "orphaned-device"; deviceId: number | null; nodeId: string; itemsAffected: number; bytesReclaimed: number; detail: string | null; actor: string })[]

recordingArchive.renderGif

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

Input

{ deviceId: number; aroundMs: number; preRollSec?: number = 2; postRollSec?: number = 5; maxWidth?: number = 480; fps?: number = 5 }

Output

{ gifBase64: string; fromMs: number; toMs: number }

recordingArchive.renderClip

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

Input

{ deviceId: number; aroundMs: number; preRollSec?: number = 3; postRollSec?: number = 7; maxWidth?: number = 640 }

Output

{ clipBase64: string; mime: string; fromMs: number; toMs: number; bytes: number }

recordingArchive.pauseForStorageMigration

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

Input

{ leaseId: string }

Output

{ paused: true }

recordingArchive.resumeForStorageMigration

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

Input

{ leaseId: string }

Output

{ resumed: true }

recordingArchive.refreshStorageLocationsForMigration

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

Input

{ leaseId: string }

Output

{ refreshed: true }

recordingArchive.startStorageMigrationMove

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

Input

{ fromLocationId: string; toLocationId: string; entities?: "segments"[]; footageClass?: "recordings" | "recordingsLow"; deviceId?: number; profiles?: string[]; throttleMbps?: number; sinceMs?: number; leaseId: string }

Output

{ jobId: string }

recordingArchive.getStorageMigrationMoveStatus

  • Kind: query — GET /trpc/recordingArchive.getStorageMigrationMoveStatus
  • 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=recordingArchive.getStorageMigrationMoveStatus on your hub

Input

{ jobId: string }

Output

{ jobId: string; state: "queued" | "running" | "done" | "failed" | "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number | null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number | null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number | null; error: string | null } | null

recordingArchive.cancelStorageMigrationMove

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

Input

{ jobId: string }

Output

{ cancelled: boolean }

recordingArchive.relocateFootage

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

Input

{ fromLocationId: string; toLocationId: string; entities?: "segments"[]; footageClass?: "recordings" | "recordingsLow"; deviceId?: number; profiles?: string[]; throttleMbps?: number; sinceMs?: number }

Output

{ jobId: string }

recordingArchive.listRelocateJobs

  • Kind: query — GET /trpc/recordingArchive.listRelocateJobs
  • 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=recordingArchive.listRelocateJobs on your hub

Input

{}

Output

({ jobId: string; state: "queued" | "running" | "done" | "failed" | "cancelled"; fromLocationId: string; toLocationId: string; deviceId: number | null; entities: string[]; filesMoved: number; bytesMoved: number; filesTotal: number | null; rowsReconciled?: number; rowsForgotten?: number; startedAt: number; finishedAt: number | null; error: string | null })[]

recordingArchive.getRelocateResidue

  • Kind: query — GET /trpc/recordingArchive.getRelocateResidue
  • 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=recordingArchive.getRelocateResidue on your hub

Input

{ fromLocationId: string; footageClass?: "recordings" | "recordingsLow" }

Output

{ segments: number; bytes: number } | null

recordingArchive.reconcileLedgerAgainstDisk

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

Input

{ locationId: string; apply?: boolean; deviceId?: number; profiles?: string[] }

Output

{ locationId: string; applied: boolean; refused: "location-unknown" | "source-writable" | "no-ledger" | "archive-unreadable" | "anchor-absent" | "anchor-unreadable" | "anchor-moved" | null; archiveSegments: number | null; archiveBytes: number | null; hoursClaimed: number; hoursWalked: number; hoursMissing: number; listings: number; segmentsClaimed: number; ghostSegments: number; ghostBytes: number; ghostHoursWhole: number; forgottenSegments: number; forgottenBytes: number; orphanFiles: number; orphanSample: string[]; hoursSkipped: number; skippedByReason: { live-tail: number; listing-error: number; path-mismatch: number; durable-refused: number }; bounded: boolean; byDevice: ({ deviceId: number; hoursWalked: number; hoursMissing: number; ghostSegments: number; ghostBytes: number; forgottenSegments: number; orphanFiles: number })[] }

recordingArchive.cancelRelocateJob

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

Input

{ jobId: string }

Output

{ cancelled: boolean }

recordingArchive.planStorageRebalance

  • Kind: query — GET /trpc/recordingArchive.planStorageRebalance
  • 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=recordingArchive.planStorageRebalance on your hub

Input

RecordingRebalanceInputSchema

Output

RecordingRebalancePlanSchema

Shapes: RecordingRebalanceInputSchema · RecordingRebalancePlanSchema

recordingArchive.startStorageRebalance

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

Input

RecordingRebalanceInputSchema

Output

RecordingRebalancePlanSchema

Shapes: RecordingRebalanceInputSchema · RecordingRebalancePlanSchema

recordingArchive.getPlacement

  • Kind: query — GET /trpc/recordingArchive.getPlacement
  • 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=recordingArchive.getPlacement on your hub

Input

{}

Output

{ assignments: ({ deviceId: number; profile: string; locationId: string })[]; pins: ({ deviceId: number; locationId: string })[]; defaultLocations: Record<string, string> }

recordingArchive.setDevicePlacement

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

Input

{ deviceId: number; locationId: string | null }

Output

{ ok: true }