Nurama Developers
Namespaces

settings

Methods and types of the `settings` namespace (`client.settings` / `bot.settings`).

Interfaces

EffectiveSettings

Properties

PropertyType
emailNotificationsRecord<string, any>
soundsRecord<string, any>
systemNotificationsRecord<string, any>

ResourceSettings

Properties

PropertyType
emailNotifications?Record<string, any>
resourceIdstring
resourceType"project" | "workspace"
sounds?Record<string, any>
systemNotifications?Record<string, any>

ResourceSettingsOverrides

Properties

PropertyType
emailNotifications?{ dailySummary?: boolean | null; newFollowing?: boolean | null; newFollowingActiveInterval?: number | null; newMention?: boolean | null; newMentionActiveInterval?: number | null; publishedAsset?: boolean | null; sendEmailNotifications?: boolean | null; }
emailNotifications.dailySummary?boolean | null
emailNotifications.newFollowing?boolean | null
emailNotifications.newFollowingActiveInterval?number | null
emailNotifications.newMention?boolean | null
emailNotifications.newMentionActiveInterval?number | null
emailNotifications.publishedAsset?boolean | null
emailNotifications.sendEmailNotifications?boolean | null
sounds?{ alerts?: boolean | null; mentions?: boolean | null; playSounds?: boolean | null; privateMessages?: boolean | null; }
sounds.alerts?boolean | null
sounds.mentions?boolean | null
sounds.playSounds?boolean | null
sounds.privateMessages?boolean | null
systemNotifications?{ alerts?: boolean | null; mentions?: boolean | null; privateMessages?: boolean | null; showSystemNotifications?: boolean | null; }
systemNotifications.alerts?boolean | null
systemNotifications.mentions?boolean | null
systemNotifications.privateMessages?boolean | null
systemNotifications.showSystemNotifications?boolean | null

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

ParameterTypeDescription
clientdefaultThe NuramaClient instance.

Returns

An object containing the settings-related methods.

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

On this page