Skip to main content

ProjectsClient

adaline.projects lists and manages the projects in your workspace.

Access

The class is also exported directly:
Types from @adaline/api:

list()

List all projects the API key has access to.

Parameters

None.

Returns

Promise<ListProjectsResponse> with { data: Project[] }. Each Project has id, title, icon, and timestamps.

Example


get()

Get a single project by ID.

Parameters

Returns

Promise<Project> — the project record with id, title, icon, and timestamps.

Example


update()

Update a project’s title and/or icon. At least one field must be provided.

Parameters

Returns

Promise<Project> — the updated project.

Example


See Also