Skip to main content

RoadmapApi

@codebolt/client-sdk


Class: RoadmapApi

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:11

Provides methods for managing the product roadmap, including phases, features, and ideas.

The roadmap is organized hierarchically: phases contain features, and ideas can be promoted to features. This API supports the full lifecycle of roadmap items from ideation through planning and task creation.

Constructors

Constructor

new RoadmapApi(http: HttpClient): RoadmapApi;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:12

Parameters

ParameterType
httpHttpClient

Returns

RoadmapApi

Methods

createFeature()

createFeature(phaseId: string, data: CreateFeatureRequest): Promise<RoadmapFeature>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:113

Creates a new feature within a specific phase.

Adds a feature to the roadmap under the specified phase. Features represent discrete pieces of functionality planned for delivery.

Parameters

ParameterTypeDescription
phaseIdstringThe unique identifier of the phase to add the feature to
dataCreateFeatureRequestThe feature creation payload including title and description

Returns

Promise<RoadmapFeature>

A promise that resolves to the newly created RoadmapFeature

Example

const feature = await client.roadmap.createFeature('phase-123', {
title: 'OAuth2 SSO Support',
description: 'Allow users to authenticate via external identity providers',
});

createIdea()

createIdea(data: CreateIdeaRequest): Promise<RoadmapIdea>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:219

Creates a new idea in the roadmap idea pool.

Adds an idea that can later be reviewed, refined, and potentially promoted to a full feature on the roadmap.

Parameters

ParameterTypeDescription
dataCreateIdeaRequestThe idea creation payload including title and description

Returns

Promise<RoadmapIdea>

A promise that resolves to the newly created RoadmapIdea

Example

const idea = await client.roadmap.createIdea({
title: 'AI-powered code suggestions',
description: 'Integrate LLM-based code completion into the editor',
});

createPhase()

createPhase(data: CreatePhaseRequest): Promise<RoadmapPhase>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:50

Creates a new roadmap phase.

Adds a high-level phase to the roadmap for organizing features. Phases typically represent milestones, sprints, or release versions.

Parameters

ParameterTypeDescription
dataCreatePhaseRequestThe phase creation payload including name and optional description

Returns

Promise<RoadmapPhase>

A promise that resolves to the newly created RoadmapPhase

Example

const phase = await client.roadmap.createPhase({
name: 'Q2 2026 Release',
description: 'Features planned for the Q2 release cycle',
});

createTaskFromFeature()

createTaskFromFeature(featureId: string, data?: CreateTaskFromFeatureRequest): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:177

Creates a task from a roadmap feature.

Converts a feature into an actionable task in the task management system. This bridges the gap between roadmap planning and task execution.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature to create a task from
data?CreateTaskFromFeatureRequestOptional task creation parameters to override defaults

Returns

Promise<unknown>

A promise that resolves when the task has been created


deleteFeature()

deleteFeature(featureId: string): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:145

Deletes a feature from the roadmap.

Permanently removes a feature. This action cannot be undone.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature to delete

Returns

Promise<unknown>

A promise that resolves when the feature has been deleted


deleteIdea()

deleteIdea(ideaId: string): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:250

Deletes an idea from the roadmap idea pool.

Permanently removes an idea. This action cannot be undone.

Parameters

ParameterTypeDescription
ideaIdstringThe unique identifier of the idea to delete

Returns

Promise<unknown>

A promise that resolves when the idea has been deleted


deletePhase()

deletePhase(phaseId: string): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:82

Deletes a roadmap phase.

Permanently removes a phase and potentially its associated features. This action cannot be undone.

Parameters

ParameterTypeDescription
phaseIdstringThe unique identifier of the phase to delete

Returns

Promise<unknown>

A promise that resolves when the phase has been deleted


get()

get(params?: Record<string, unknown>): Promise<RoadmapPhase[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:31

Retrieves the full roadmap with all phases.

Returns the complete roadmap structure including all phases and their nested features. Use optional query parameters to filter or paginate results.

Parameters

ParameterTypeDescription
params?Record<string, unknown>Optional query parameters for filtering the roadmap

Returns

Promise<RoadmapPhase[]>

A promise that resolves to an array of RoadmapPhase objects

Example

const roadmap = await client.roadmap.get();
for (const phase of roadmap) {
console.log(`Phase: ${phase.name}`);
}

getFeature()

getFeature(featureId: string): Promise<RoadmapFeature>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:124

Retrieves a specific feature by its ID.

Fetches the full details of a single feature including its status, description, and associated metadata.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature

Returns

Promise<RoadmapFeature>

A promise that resolves to the RoadmapFeature object


getFeatures()

getFeatures(params?: Record<string, unknown>): Promise<RoadmapFeature[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:93

Retrieves all features across all roadmap phases.

Returns a flat list of all features regardless of which phase they belong to. Use optional query parameters to filter by status, priority, or other criteria.

Parameters

ParameterTypeDescription
params?Record<string, unknown>Optional query parameters for filtering features

Returns

Promise<RoadmapFeature[]>

A promise that resolves to an array of RoadmapFeature objects


getIdea()

getIdea(ideaId: string): Promise<RoadmapIdea>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:229

Retrieves a specific idea by its ID.

Fetches the full details of a single idea including its status and review history.

Parameters

ParameterTypeDescription
ideaIdstringThe unique identifier of the idea

Returns

Promise<RoadmapIdea>

A promise that resolves to the RoadmapIdea object


getIdeas()

getIdeas(params?: Record<string, unknown>): Promise<RoadmapIdea[]>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:200

Retrieves all ideas in the roadmap idea pool.

Ideas are proposals that have not yet been promoted to features. Use optional query parameters to filter by status or other criteria.

Parameters

ParameterTypeDescription
params?Record<string, unknown>Optional query parameters for filtering ideas

Returns

Promise<RoadmapIdea[]>

A promise that resolves to an array of RoadmapIdea objects


getPhase()

getPhase(phaseId: string): Promise<RoadmapPhase>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:60

Retrieves a specific roadmap phase by its ID.

Fetches the full details of a single phase including its metadata and associated features.

Parameters

ParameterTypeDescription
phaseIdstringThe unique identifier of the phase

Returns

Promise<RoadmapPhase>

A promise that resolves to the RoadmapPhase object


moveFeature()

moveFeature(featureId: string, data: MoveFeatureRequest): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:165

Moves a feature to a different phase or reorders it within its current phase.

Use this to reorganize the roadmap by relocating features between phases or changing the display order of features within a phase.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature to move
dataMoveFeatureRequestThe move parameters including target phase and/or position

Returns

Promise<unknown>

A promise that resolves when the feature has been moved

Example

await client.roadmap.moveFeature('feature-456', {
targetPhaseId: 'phase-789',
position: 0,
});

moveIdeaToRoadmap()

moveIdeaToRoadmap(ideaId: string, data?: MoveIdeaToRoadmapRequest): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:281

Promotes an idea to the roadmap as a feature.

Converts a reviewed and approved idea into a feature within a specified roadmap phase. This is the final step in the idea-to-feature pipeline.

Parameters

ParameterTypeDescription
ideaIdstringThe unique identifier of the idea to promote
data?MoveIdeaToRoadmapRequestOptional parameters including target phase for the new feature

Returns

Promise<unknown>

A promise that resolves when the idea has been promoted to a feature

Example

await client.roadmap.moveIdeaToRoadmap('idea-123', {
phaseId: 'phase-456',
});

reviewIdea()

reviewIdea(ideaId: string, data?: ReviewIdeaRequest): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:262

Submits an idea for review.

Moves an idea into the review process where it can be evaluated for potential promotion to a roadmap feature.

Parameters

ParameterTypeDescription
ideaIdstringThe unique identifier of the idea to review
data?ReviewIdeaRequestOptional review parameters such as reviewer assignment

Returns

Promise<unknown>

A promise that resolves when the idea has been submitted for review


sendFeatureToChat()

sendFeatureToChat(featureId: string, data?: SendFeatureToChatRequest): Promise<unknown>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:189

Sends a feature to the chat for discussion.

Shares the feature details in a chat context so that team members or agents can discuss and collaborate on the feature requirements.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature to send to chat
data?SendFeatureToChatRequestOptional parameters controlling how the feature is shared

Returns

Promise<unknown>

A promise that resolves when the feature has been sent to chat


updateFeature()

updateFeature(featureId: string, data: UpdateFeatureRequest): Promise<RoadmapFeature>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:135

Updates an existing feature.

Modifies the properties of a feature such as its title, description, status, or priority.

Parameters

ParameterTypeDescription
featureIdstringThe unique identifier of the feature to update
dataUpdateFeatureRequestThe fields to update on the feature

Returns

Promise<RoadmapFeature>

A promise that resolves to the updated RoadmapFeature


updateIdea()

updateIdea(ideaId: string, data: UpdateIdeaRequest): Promise<RoadmapIdea>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:240

Updates an existing idea.

Modifies the properties of an idea such as its title, description, or status.

Parameters

ParameterTypeDescription
ideaIdstringThe unique identifier of the idea to update
dataUpdateIdeaRequestThe fields to update on the idea

Returns

Promise<RoadmapIdea>

A promise that resolves to the updated RoadmapIdea


updatePhase()

updatePhase(phaseId: string, data: UpdatePhaseRequest): Promise<RoadmapPhase>;

Defined in: CodeBolt/packages/clientsdk/src/api/roadmap.api.ts:71

Updates an existing roadmap phase.

Modifies the properties of a phase such as its name, description, or ordering.

Parameters

ParameterTypeDescription
phaseIdstringThe unique identifier of the phase to update
dataUpdatePhaseRequestThe fields to update on the phase

Returns

Promise<RoadmapPhase>

A promise that resolves to the updated RoadmapPhase