Skip to main content
pb.types reads and manages the entity types in your active ontology.

Methods

MethodDescription
pb.types.list()All types in scope.
pb.types.get(name)A single type.
pb.types.create(input)Define a new type.
pb.types.update(name, input)Update a type.
pb.types.delete(name, { force })Remove a type.
const types = await pb.types.list();
const account = await pb.types.get("Account");

Ontology

Read the whole ontology as a document.

Shapes

The shapes that structure your types.