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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getStatus | query | protected | view | no |
getDeviceSettingsContribution | query | protected | view | no |
getDeviceLiveContribution | query | protected | view | no |
applyDeviceSettingsPatch | mutation | admin | admin only | no |
getAvailabilityBatch | query | protected | view | yes |
getDaysWithRecordingsBatch | query | protected | view | yes |
getStorageUsage | query | admin | admin only | no |
getDeviceConfig | query | protected | view | yes |
locateSegment | query | admin | admin only | no |
readSegmentBytes | query | admin | admin only | no |
readGopBytes | query | admin | admin only | no |
readWindowBytes | query | admin | admin only | no |
setDeviceConfig | mutation | admin | admin only | no |
rescanStorage | mutation | admin | admin only | no |
pruneFootage | mutation | admin | admin only | no |
deleteFootprint | mutation | admin | admin only | no |
listOpsLog | query | admin | admin only | no |
renderGif | mutation | admin | admin only | no |
renderClip | mutation | admin | admin only | no |
pauseForStorageMigration | mutation | admin | admin only | no |
resumeForStorageMigration | mutation | admin | admin only | no |
refreshStorageLocationsForMigration | mutation | admin | admin only | no |
startStorageMigrationMove | mutation | admin | admin only | no |
getStorageMigrationMoveStatus | query | admin | admin only | no |
cancelStorageMigrationMove | mutation | admin | admin only | no |
relocateFootage | mutation | admin | admin only | no |
listRelocateJobs | query | admin | admin only | no |
getRelocateResidue | query | admin | admin only | no |
reconcileLedgerAgainstDisk | mutation | admin | admin only | no |
cancelRelocateJob | mutation | admin | admin only | no |
planStorageRebalance | query | admin | admin only | no |
startStorageRebalance | mutation | admin | admin only | no |
getPlacement | query | admin | admin only | no |
setDevicePlacement | mutation | admin | admin only | no |
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:
viewon capabilityrecording-archive, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=recordingArchive.getStatuson your hub
Input
{ deviceId: number }Output
RecordingStatusSchemaShapes: 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:
viewon capabilityrecording-archive, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=recordingArchive.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[] })[] } | nullrecordingArchive.getDeviceLiveContribution
- Kind: query —
GET /trpc/recordingArchive.getDeviceLiveContribution(added by the framework) - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-archive, or categorysystem - Viewer: no
- Try it: open
/system/api-explorer?method=recordingArchive.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[] })[] } | nullrecordingArchive.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.applyDeviceSettingsPatchon 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:
viewon capabilityrecording-archive, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingArchive.getAvailabilityBatchon 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:
viewon capabilityrecording-archive, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingArchive.getDaysWithRecordingsBatchon 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.getStorageUsageon your hub
Input
{}Output
RecordingStorageUsageSchemaShapes: RecordingStorageUsageSchema
recordingArchive.getDeviceConfig
- Kind: query —
GET /trpc/recordingArchive.getDeviceConfig - Tier: protected — any signed-in principal whose scopes cover the method
- Token scope:
viewon capabilityrecording-archive, or categorysystem - Viewer: yes
- Try it: open
/system/api-explorer?method=recordingArchive.getDeviceConfigon 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.locateSegmenton your hub
Input
{ deviceId: number; profile: string; epochMs: number }Output
LocateSegmentResultSchemaShapes: 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.readSegmentByteson your hub
Input
{ deviceId: number; profile: string; startMs: number }Output
ReadSegmentBytesResultSchemaShapes: 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.readGopByteson your hub
Input
{ deviceId: number; profile: string; startMs: number; epochMs: number }Output
ReadGopBytesResultSchemaShapes: 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.readWindowByteson your hub
Input
{ deviceId: number; profile: string; startMs: number; fromMs: number; toMs: number }Output
ReadWindowBytesResultSchemaShapes: 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.setDeviceConfigon 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.rescanStorageon your hub
Input
{ deviceId: number }Output
RecordingStatusSchemaShapes: 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.pruneFootageon 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.deleteFootprinton 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.listOpsLogon 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.renderGifon 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.renderClipon 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.pauseForStorageMigrationon 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.resumeForStorageMigrationon 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.refreshStorageLocationsForMigrationon 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.startStorageMigrationMoveon 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.getStorageMigrationMoveStatuson 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 } | nullrecordingArchive.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.cancelStorageMigrationMoveon 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.relocateFootageon 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.listRelocateJobson 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.getRelocateResidueon your hub
Input
{ fromLocationId: string; footageClass?: "recordings" | "recordingsLow" }Output
{ segments: number; bytes: number } | nullrecordingArchive.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.reconcileLedgerAgainstDiskon 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.cancelRelocateJobon 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.planStorageRebalanceon your hub
Input
RecordingRebalanceInputSchemaOutput
RecordingRebalancePlanSchemaShapes: 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.startStorageRebalanceon your hub
Input
RecordingRebalanceInputSchemaOutput
RecordingRebalancePlanSchemaShapes: 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.getPlacementon 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.setDevicePlacementon your hub
Input
{ deviceId: number; locationId: string | null }Output
{ ok: true }