ProjectsClient
adaline.projects lists and manages the projects in your workspace.
Access
@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
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project identifier. |
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
| Name | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | Project identifier. |
project | UpdateProjectRequest | Yes | Fields to update (title?, icon?). |
Returns
Promise<Project> — the updated project.
Example
See Also
- Adaline class
- PromptsClient —
list({ projectId })is the most common follow-up call - API reference: List projects · Get project · Update project