Skip to main content

Codemap API

Codemap API

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

const client = new CodeBoltClient();

Quick Reference

MethodDescription
deleteDeletes a codemap by its ID.
generateGenerates a new codemap for specified files.
getRetrieves a specific codemap by its ID.
getByPathRetrieves codemap entries by file path.
listLists all codemaps.

Methods


delete

client.codemap.delete(codemapId: string): Promise<unknown>

Deletes a codemap by its ID.

Permanently removes the codemap from the system. The underlying source files are not affected.

ParameterTypeRequiredDescription
codemapIdstringYesThe unique identifier of the codemap to delete

Returns: Promise<unknown> — A promise that resolves when deletion is complete

Full reference →


generate

client.codemap.generate(data: GenerateCodemapRequest): Promise<Codemap>

Generates a new codemap for specified files.

Parses the target files and produces a structural representation capturing symbols, dependencies, and relationships.

ParameterTypeRequiredDescription
dataGenerateCodemapRequestYesThe generation request specifying target files or directories

Returns: Promise<Codemap> — A promise that resolves to the newly generated

Full reference →


get

client.codemap.get(codemapId: string): Promise<Codemap>

Retrieves a specific codemap by its ID.

Returns the full structural representation including all symbols, relationships, and metadata.

ParameterTypeRequiredDescription
codemapIdstringYesThe unique identifier of the codemap

Returns: Promise<Codemap> — A promise that resolves to the

Full reference →


getByPath

client.codemap.getByPath(params: CodemapByPathParams): Promise<Codemap[]>

Retrieves codemap entries by file path.

Looks up codemaps associated with a specific file path, returning all structural information for that file.

ParameterTypeRequiredDescription
paramsCodemapByPathParamsYesQuery parameters including the file path to look up

Returns: Promise<Codemap[]> — A promise that resolves to an array of matching objects

Full reference →


list

client.codemap.list(params?: Record<string, unknown>): Promise<Codemap[]>

Lists all codemaps.

Returns every codemap that has been generated in the current workspace.

ParameterTypeRequiredDescription
paramsRecord<string, unknown>NoOptional query parameters for filtering or pagination

Returns: Promise<Codemap[]> — A promise that resolves to an array of objects

Full reference →