# DomainEvents

The DomainEvents type of the TypeScript SDK, which domains.listEvents take or answer.

```ts
type DomainEvents = {
  domain: string
  estimated: boolean
  events: TrafficEvent[]
  nextCursor?: string
  range: string
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `domain` | `string` | Domain name |
| `estimated` | `boolean` | True if numbers are estimated (false for authoritative logs) |
| `events` | [`TrafficEvent[]`](/docs/sdks/typescript/types/traffic-event) | List of authoritative traffic events |
| `nextCursor` | `string` | Optional. Pagination cursor for next page of events |
| `range` | `string` | Time range queried (e.g. '24h', '7d') |

## Used by

| Method | What it does |
| --- | --- |
| [`domains.listEvents`](/docs/sdks/typescript/domains/list-events) | Query domain delivery event log |
