Skip to main content

refresh

client.capability.refresh(data?: Record<string, unknown>): Promise<unknown>

Refreshes the capability registry.

Forces a re-scan and reload of all registered capabilities, picking up any newly added or modified capability definitions.

Parameters

ParameterTypeRequiredDescription
dataRecord<string, unknown>NoOptional configuration for the refresh operation

Returns

Promise<unknown> — A promise that resolves when the refresh is complete

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.capability.refresh();
console.log(result);