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.
| Method | Kind | Tier | Token scope | Viewer |
|---|---|---|---|---|
getProviderInfo | query | admin | admin only | no |
testLocation | query | admin | admin only | no |
resolve | query | admin | admin only | no |
write | mutation | admin | admin only | no |
read | query | admin | admin only | no |
exists | query | admin | admin only | no |
list | query | admin | admin only | no |
delete | mutation | admin | admin only | no |
getAvailableSpace | query | admin | admin only | no |
beginUpload | mutation | admin | admin only | no |
writeChunk | mutation | admin | admin only | no |
finalizeUpload | mutation | admin | admin only | no |
abortUpload | mutation | admin | admin only | no |
beginDownload | mutation | admin | admin only | no |
readChunk | query | admin | admin only | no |
endDownload | mutation | admin | admin only | no |
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.getProviderInfoon your hub
Input
voidOutput
StorageProviderInfoSchemaShapes: 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.testLocationon your hub
Input
{ config: Record<string, unknown> }Output
StorageTestLocationResultSchemaShapes: 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.resolveon 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
stringstorageProvider.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.writeon 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
voidstorageProvider.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.readon 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.existson 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
booleanstorageProvider.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.liston 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.deleteon 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
voidstorageProvider.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.getAvailableSpaceon 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 | nullstorageProvider.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.beginUploadon your hub
Input
StorageBeginUploadInputSchemaOutput
StorageBeginUploadResultSchemaShapes: 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.writeChunkon your hub
Input
StorageWriteChunkInputSchemaOutput
voidShapes: 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.finalizeUploadon your hub
Input
StorageFinalizeUploadInputSchemaOutput
voidShapes: 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.abortUploadon your hub
Input
StorageAbortUploadInputSchemaOutput
voidShapes: 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.beginDownloadon your hub
Input
StorageBeginDownloadInputSchemaOutput
StorageBeginDownloadResultSchemaShapes: 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.readChunkon your hub
Input
StorageReadChunkInputSchemaOutput
<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.endDownloadon your hub
Input
StorageEndDownloadInputSchemaOutput
voidShapes: StorageEndDownloadInputSchema