# SieveScriptBody

The SieveScriptBody type of the TypeScript SDK, which sieve.getScript take or answer.

```ts
type SieveScriptBody = {
  active: boolean
  name: string
  script: string
  updatedAt: number
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `active` | `boolean` | True if this script is currently active |
| `name` | `string` | Script name |
| `script` | `string` | Sieve script source code text |
| `updatedAt` | `number` | Last updated timestamp in epoch seconds |

## Used by

| Method | What it does |
| --- | --- |
| [`sieve.getScript`](/docs/sdks/typescript/sieve/get-script) | Get Sieve filter script source |
