Namespaces
settings
Methods and types of the `settings` namespace (`client.settings` / `bot.settings`).
Interfaces
EffectiveSettings
Properties
| Property | Type |
|---|---|
emailNotifications | Record<string, any> |
sounds | Record<string, any> |
systemNotifications | Record<string, any> |
ResourceSettings
Properties
| Property | Type |
|---|---|
emailNotifications? | Record<string, any> |
resourceId | string |
resourceType | "project" | "workspace" |
sounds? | Record<string, any> |
systemNotifications? | Record<string, any> |
ResourceSettingsOverrides
Properties
Functions
default()
function default(client): {
cleanupOrphanedSettings: Promise<{
message: string;
removedCount: number;
}>;
getAllResourceSettings: Promise<{
resourceSettings: ResourceSettings[];
}>;
getEffectiveSettings: Promise<EffectiveSettings>;
getResourceSettings: Promise<
| ResourceSettings
| {
message: string;
}>;
resetResourceSettings: Promise<{
message: string;
}>;
updateResourceSettings: Promise<{
message: string;
settings: ResourceSettings;
}>;
};Defines settings-related methods for the NuramaClient.
Parameters
| Parameter | Type | Description |
|---|---|---|
client | default | The NuramaClient instance. |
Returns
An object containing the settings-related methods.
| Name | Type | Description |
|---|---|---|
cleanupOrphanedSettings() | () => Promise<{ message: string; removedCount: number; }> | Cleanup orphaned settings (settings for resources user no longer has access to). Requires authentication. |
getAllResourceSettings() | () => Promise<{ resourceSettings: ResourceSettings[]; }> | Get all resource settings for current user. Requires authentication. |
getEffectiveSettings() | ( resourceType, resourceId, workspaceId? ) => Promise<EffectiveSettings> | Get effective (resolved) settings for a resource with full cascade. Requires authentication. |
getResourceSettings() | (resourceType, resourceId) => Promise< | ResourceSettings | { message: string; }> | Get raw resource settings (overrides only, not cascaded). Requires authentication. |
resetResourceSettings() | (resourceType, resourceId) => Promise<{ message: string; }> | Reset resource settings to inherit from parent/global. Requires authentication. |
updateResourceSettings() | ( resourceType, resourceId, settings ) => Promise<{ message: string; settings: ResourceSettings; }> | Update resource-specific settings. Requires authentication. |