refresh
client.actionBlocks.refresh(data?: Record<string, unknown>): Promise<unknown>
Refreshes the action block registry.
Forces a re-scan and reload of all registered action blocks, picking up any newly added or modified block definitions.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | Record<string, unknown> | No | Optional 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.actionBlocks.refresh();
console.log(result);