---
sidebar:
  label: roboto.notifications.validator
  order: 3
title: roboto.notifications.validator
---
## Module Contents

### EmailLifecycleStatus

```python
class roboto.notifications.validator.EmailLifecycleStatus
```

`from roboto.notifications import EmailLifecycleStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L38-L75)

Bases: `roboto.compat.StrEnum`

Delivery status of a notification's email: the latest event Roboto has recorded for the email.

**Attributes**

- **EmailLifecycleStatus.Bounce** = `'Bounce'`: The recipient's mail server rejected the email.
- **EmailLifecycleStatus.Click** = `'Click'`: The recipient clicked a link in the email.
- **EmailLifecycleStatus.Complaint** = `'Complaint'`: The email was delivered, and the recipient marked it as spam.
- **EmailLifecycleStatus.Delivery** = `'Delivery'`: The recipient's mail server accepted the email.
- **EmailLifecycleStatus.DeliveryDelay** = `'DeliveryDelay'`: A temporary problem delayed delivery of the email.
- **EmailLifecycleStatus.Failed** = `'Failed'`: Roboto could not send the email.
- **EmailLifecycleStatus.Initiated** = `'Initiated'`: Roboto created the notification and has recorded no event for its email yet.
- **EmailLifecycleStatus.Open** = `'Open'`: The recipient opened the email.
- **EmailLifecycleStatus.Reject** = `'Reject'`: The email was accepted for sending but not delivered, because it contained a virus.
- **EmailLifecycleStatus.RenderingFailure** = `'RenderingFailure'`: The email was not sent because its template could not be rendered.
- **EmailLifecycleStatus.Send** = `'Send'`: The email was accepted for sending.
- **EmailLifecycleStatus.Subscription** = `'Subscription'`: The email was delivered, and the recipient changed their subscription preferences from it.

### LifecycleStatusValidator

```python
class roboto.notifications.validator.LifecycleStatusValidator
```

`from roboto.notifications.validator import LifecycleStatusValidator`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L88-L117)

Mixin for a pydantic model with a `lifecycle_status` field, which checks each status against its channel.

[`NotificationRecord`](/docs/reference/python-sdk/roboto/notifications/record#roboto.notifications.record.NotificationRecord) and [`UpdateNotificationRequest`](/docs/reference/python-sdk/roboto/notifications/http_resources#roboto.notifications.http_resources.UpdateNotificationRequest) use it. Building such a model raises `RobotoConditionException` when an email status is not an `EmailLifecycleStatus` value, or a status in the Roboto web app is not a `WebUiLifecycleStatus` value.

#### LifecycleStatusValidator.check_lifecycle_status()

```python
@classmethod
def check_lifecycle_status(value)
```

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L99-L117)

Reject a `lifecycle_status` that holds a status not valid for its channel.

### NotificationChannel

```python
class roboto.notifications.validator.NotificationChannel
```

`from roboto.notifications import NotificationChannel`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L21-L28)

Bases: `roboto.compat.StrEnum`

Channel Roboto sends a notification through.

**Attributes**

- **NotificationChannel.Email** = `'email'`: Email to the user's email address.
- **NotificationChannel.WebUi** = `'web_ui'`: Notifications menu in the Roboto web app.

### NotificationType

```python
class roboto.notifications.validator.NotificationType
```

`from roboto.notifications import NotificationType`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L14-L18)

Bases: `roboto.compat.StrEnum`

Kind of event a notification reports.

**Attributes**

- **NotificationType.CommentMention** = `'comment_mention'`: A comment mentions the user.

### ReadStatus

```python
class roboto.notifications.validator.ReadStatus
```

`from roboto.notifications import ReadStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L31-L35)

Bases: `roboto.compat.StrEnum`

Read status of a notification: whether its user has read it.

**Attributes**

- **ReadStatus.Read** = `'read'`
- **ReadStatus.Unread** = `'unread'`

### WebUiLifecycleStatus

```python
class roboto.notifications.validator.WebUiLifecycleStatus
```

`from roboto.notifications import WebUiLifecycleStatus`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/notifications/validator.py#L78-L85)

Bases: `roboto.compat.StrEnum`

Status of a notification in the Roboto web app.

**Attributes**

- **WebUiLifecycleStatus.Acknowledged** = `'Acknowledged'`: The user opened the notifications menu while the notification was in it.

  An acknowledged notification no longer counts toward the number on the notifications icon.
