Namespaces
storage
Methods and types of the `storage` namespace (`client.storage` / `bot.storage`).
Interfaces
ChartDataEntry
Properties
GetStorageChartParams
Properties
StorageRecord
Properties
| Property | Type |
|---|---|
id | string |
resourceId | string |
resourceType | ResourceType |
sizeInBytes | number |
Type Aliases
ChartDataResponse
type ChartDataResponse = ChartDataEntry[];ResourceType
type ResourceType = "user" | "workspace" | "project" | "chat" | "asset";StorageMethods
type StorageMethods = ReturnType<typeof default>;Functions
default()
function default(client): {
getStorageChart: Promise<ChartDataResponse>;
getStorageRecord: Promise<StorageRecord>;
};Defines storage-related methods for the NuramaClient.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | default | The NuramaClient instance. |
Returns
An object containing the storage-related methods.
| Name | Type | Description |
|---|---|---|
getStorageChart() | ( resourceType, resourceId, params? ) => Promise<ChartDataResponse> | Retrieves storage usage chart data for a specific resource. Requires authentication and permission. |
getStorageRecord() | (resourceType, resourceId) => Promise<StorageRecord> | Retrieves the latest storage record for a specific resource. Requires authentication and permission. |