Projects
ts
const project = await pbj.projects.create({
name: "PBJ SDK",
description: "Type-safe access to the PBJ platform",
});
const projects = await pbj.projects.list({ limit: 20 });
await pbj.projects.update(project.id, { description: "SDK v1" });Tasks
ts
const task = await pbj.tasks.create({
projectId: project.id,
title: "Prepare SDK release",
description: {
format: "markdown",
content: "**Review** the release checklist.",
},
priority: "high",
status: "todo",
dueDate: "2026-12-01T00:00:00Z",
});
await pbj.tasks.updateStatus(task.id, "in_progress");Task workflow
Task statuses are todo, in_progress, and done. The SDK validates status values but does not force a transition order.
todo→in_progress→done
Rich text
Descriptions explicitly identify markdown or html content. Sanitize rich text before rendering it in a browser.
