ReferenceHTTP API
storageAdmin
The storageAdmin router: 7 methods of the storage-admin capability, with tier, scope, input and output.
Capability storage-admin · scope system · mode singleton · source packages/types/src/capabilities/storage-admin.cap.ts:106.
Every method is called at /trpc/storageAdmin.<method> — queries with GET, mutations with POST. See How to call and Authorization.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
listTables | query | admin | admin only | no |
listKinds | query | admin | admin only | no |
readRecords | query | admin | admin only | no |
staleDataReport | query | admin | admin only | no |
scanStaleData | mutation | admin | admin only | no |
dropOrphanedKind | mutation | admin | admin only | no |
unsetStaleSettingsKey | mutation | admin | admin only | no |
storageAdmin.listTables
- Kind: query —
GET /trpc/storageAdmin.listTables - 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=storageAdmin.listTableson your hub
Input
{ ownerPrefix?: string }Output
{ tables: StorageTableSchema[] }Shapes: StorageTableSchema
storageAdmin.listKinds
- Kind: query —
GET /trpc/storageAdmin.listKinds - 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=storageAdmin.listKindson your hub
Input
{ owner?: string; counts?: boolean }Output
{ kinds: StorageKindSchema[] }Shapes: StorageKindSchema
storageAdmin.readRecords
- Kind: query —
GET /trpc/storageAdmin.readRecords - 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=storageAdmin.readRecordson your hub
Input
{ kind: string; deviceId?: number; atFrom?: number; atTo?: number; where?: RecordWhereSchema; order?: "at" | "id"; desc?: boolean; limit?: number = 100; cursor?: string; owner: string }Output
RecordQueryResultSchemaShapes: RecordWhereSchema · RecordQueryResultSchema
storageAdmin.staleDataReport
- Kind: query —
GET /trpc/storageAdmin.staleDataReport - 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=storageAdmin.staleDataReporton your hub
Input
{}Output
StaleDataReportSchemaShapes: StaleDataReportSchema
storageAdmin.scanStaleData
- Kind: mutation —
POST /trpc/storageAdmin.scanStaleData - 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=storageAdmin.scanStaleDataon your hub
Input
{}Output
StaleDataReportSchemaShapes: StaleDataReportSchema
storageAdmin.dropOrphanedKind
- Kind: mutation —
POST /trpc/storageAdmin.dropOrphanedKind - 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=storageAdmin.dropOrphanedKindon your hub
Input
{ owner: string; kind: string }Output
{ deleted: number; secretsReleased: number }storageAdmin.unsetStaleSettingsKey
- Kind: mutation —
POST /trpc/storageAdmin.unsetStaleSettingsKey - 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=storageAdmin.unsetStaleSettingsKeyon your hub
Input
{ addonId: string; key: string }Output
{ removed: boolean; secretsCleared: number }