> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pnbr.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Types

> Read and manage entity types with pb.types.

`pb.types` reads and manages the entity types in your active ontology.

## Methods

| Method                             | Description         |
| ---------------------------------- | ------------------- |
| `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.      |

```ts theme={null}
const types = await pb.types.list();
const account = await pb.types.get("Account");
```

## Related

<Columns cols={2}>
  <Card title="Ontology" icon="book" href="/sdk/ontology">
    Read the whole ontology as a document.
  </Card>

  <Card title="Shapes" icon="diagram-project" href="/sdk/shapes">
    The shapes that structure your types.
  </Card>
</Columns>
