# Generations

> SDK methods for the Generations module, accessed via `soat.generations`. See the [Generations module docs](/docs/modules/generations) for permissions and data model, and each method's REST page for the full request/response schema.

# Generations

SDK methods for the Generations module, accessed via `soat.generations`. See the [Generations module docs](/docs/modules/generations) for permissions and data model, and each method's REST page for the full request/response schema.

### `soat.generations.listGenerations()`

List generations

- Method: `GET`
- Path: `/api/v1/generations`

```ts
await soat.generations.listGenerations({
  query: { /* + optional */ },
});
```

→ [Request & response schema](/docs/api/generations/list-generations)

### `soat.generations.getGeneration()`

Get a generation

- Method: `GET`
- Path: `/api/v1/generations/{generation_id}`

```ts
await soat.generations.getGeneration({
  path: { generation_id },
});
```

→ [Request & response schema](/docs/api/generations/get-generation)

### `soat.generations.updateGeneration()`

Update generation metadata

- Method: `PATCH`
- Path: `/api/v1/generations/{generation_id}`

```ts
await soat.generations.updateGeneration({
  path: { generation_id },
  body: { metadata },
});
```

→ [Request & response schema](/docs/api/generations/update-generation)

### `soat.generations.purgeGenerationContent()`

Purge generation content

- Method: `DELETE`
- Path: `/api/v1/generations/{generation_id}/content`

```ts
await soat.generations.purgeGenerationContent({
  path: { generation_id },
});
```

→ [Request & response schema](/docs/api/generations/purge-generation-content)

### `soat.generations.getGenerationTranscript()`

Get a generation's transcript

- Method: `GET`
- Path: `/api/v1/generations/{generation_id}/transcript`

```ts
await soat.generations.getGenerationTranscript({
  path: { generation_id },
});
```

→ [Request & response schema](/docs/api/generations/get-generation-transcript)
