Dominevo
ReferenceHTTP API

storageProvider

The storageProvider router: 16 methods of the storage-provider capability, with tier, scope, input and output.

Capability storage-provider · scope system · mode collection · source packages/types/src/capabilities/storage-provider.cap.ts:122.

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

MethodKindTierToken scopeViewer
getProviderInfoqueryadminadmin onlyno
testLocationqueryadminadmin onlyno
resolvequeryadminadmin onlyno
writemutationadminadmin onlyno
readqueryadminadmin onlyno
existsqueryadminadmin onlyno
listqueryadminadmin onlyno
deletemutationadminadmin onlyno
getAvailableSpacequeryadminadmin onlyno
beginUploadmutationadminadmin onlyno
writeChunkmutationadminadmin onlyno
finalizeUploadmutationadminadmin onlyno
abortUploadmutationadminadmin onlyno
beginDownloadmutationadminadmin onlyno
readChunkqueryadminadmin onlyno
endDownloadmutationadminadmin onlyno

storageProvider.getProviderInfo

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

Input

void

Output

StorageProviderInfoSchema

Shapes: StorageProviderInfoSchema

storageProvider.testLocation

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

Input

{ config: Record<string, unknown> }

Output

StorageTestLocationResultSchema

Shapes: StorageTestLocationResultSchema

storageProvider.resolve

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }

Output

string

storageProvider.write

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string; data: <custom> }

Output

void

storageProvider.read

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }

Output

<custom>

storageProvider.exists

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }

Output

boolean

storageProvider.list

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; prefix?: string }

Output

string[]

storageProvider.delete

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number }; relativePath: string }

Output

void

storageProvider.getAvailableSpace

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

Input

{ location: { id: string; type: string; displayName: string; providerId: string; config: Record<string, unknown>; nodeId?: string; isSystem?: boolean = false; enabled?: boolean; mode?: "active" | "readonly" | "drain" | "disabled"; capacity?: { totalBytes: number; availableBytes: number } | null; owned?: { bytes: number; measuredAtMs: number }; createdAt: number; updatedAt: number } }

Output

number | null

storageProvider.beginUpload

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

Input

StorageBeginUploadInputSchema

Output

StorageBeginUploadResultSchema

Shapes: StorageBeginUploadInputSchema · StorageBeginUploadResultSchema

storageProvider.writeChunk

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

Input

StorageWriteChunkInputSchema

Output

void

Shapes: StorageWriteChunkInputSchema

storageProvider.finalizeUpload

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

Input

StorageFinalizeUploadInputSchema

Output

void

Shapes: StorageFinalizeUploadInputSchema

storageProvider.abortUpload

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

Input

StorageAbortUploadInputSchema

Output

void

Shapes: StorageAbortUploadInputSchema

storageProvider.beginDownload

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

Input

StorageBeginDownloadInputSchema

Output

StorageBeginDownloadResultSchema

Shapes: StorageBeginDownloadInputSchema · StorageBeginDownloadResultSchema

storageProvider.readChunk

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

Input

StorageReadChunkInputSchema

Output

<custom>

Shapes: StorageReadChunkInputSchema

storageProvider.endDownload

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

Input

StorageEndDownloadInputSchema

Output

void

Shapes: StorageEndDownloadInputSchema