Dominevo
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.

MethodKindTierToken scopeViewer
listTablesqueryadminadmin onlyno
listKindsqueryadminadmin onlyno
readRecordsqueryadminadmin onlyno
staleDataReportqueryadminadmin onlyno
scanStaleDatamutationadminadmin onlyno
dropOrphanedKindmutationadminadmin onlyno
unsetStaleSettingsKeymutationadminadmin onlyno

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.listTables on 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.listKinds on 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.readRecords on 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

RecordQueryResultSchema

Shapes: 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.staleDataReport on your hub

Input

{}

Output

StaleDataReportSchema

Shapes: 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.scanStaleData on your hub

Input

{}

Output

StaleDataReportSchema

Shapes: 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.dropOrphanedKind on 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.unsetStaleSettingsKey on your hub

Input

{ addonId: string; key: string }

Output

{ removed: boolean; secretsCleared: number }