# Vacation

The Vacation type of the TypeScript SDK, which vacation.get and vacation.set take or answer.

```ts
type Vacation = {
  fromDate: string | null
  htmlBody: string | null
  isEnabled: boolean
  state: string
  subject: string | null
  textBody: string | null
  toDate: string | null
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `fromDate` | `string` \| `null` | Start timestamp in ISO 8601 UTC format (e.g. 2026-08-01T09:00:00Z), or null |
| `htmlBody` | `string` \| `null` | HTML auto-reply message content, or null |
| `isEnabled` | `boolean` | True if out-of-office auto-reply is enabled |
| `state` | `string` | Opaque state token for conditional updates (ETag / If-Match) |
| `subject` | `string` \| `null` | Custom auto-reply subject line, or null for default |
| `textBody` | `string` \| `null` | Plain-text auto-reply message content |
| `toDate` | `string` \| `null` | End timestamp in ISO 8601 UTC format (e.g. 2026-08-15T18:00:00Z), or null |

## Used by

| Method | What it does |
| --- | --- |
| [`vacation.get`](/docs/sdks/typescript/vacation/get) | Get out-of-office auto-reply settings |
| [`vacation.set`](/docs/sdks/typescript/vacation/set) | Update out-of-office auto-reply settings |
