# `Chatto.Api.V1.NotificationService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_api_v1_notification_service.ex#L3)

Reads, marks read, and deletes notifications for the authenticated viewer.

# `batch_delete_notification_occurrences`

```elixir
@spec batch_delete_notification_occurrences(
  Req.Request.t(),
  Chatto.Api.V1.BatchDeleteNotificationOccurrencesRequest.t()
) ::
  {:ok, Chatto.Api.V1.BatchDeleteNotificationOccurrencesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Permanently deletes an exact set of occurrences. Repeating the call is
safe because later activity receives different occurrence IDs. Returns
UNIMPLEMENTED rather than partially deleting a signal kind this server
cannot validate.

# `batch_get_notification_occurrences`

```elixir
@spec batch_get_notification_occurrences(
  Req.Request.t(),
  Chatto.Api.V1.BatchGetNotificationOccurrencesRequest.t()
) ::
  {:ok, Chatto.Api.V1.BatchGetNotificationOccurrencesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Gets an explicit bounded set of visible occurrences. Missing or
inaccessible IDs are omitted and duplicate IDs are de-duplicated. Returns
UNIMPLEMENTED rather than partially answering when this server cannot
validate one requested signal kind.

# `delete_all_notification_occurrences`

```elixir
@spec delete_all_notification_occurrences(
  Req.Request.t(),
  Chatto.Api.V1.DeleteAllNotificationOccurrencesRequest.t()
) ::
  {:ok, Chatto.Api.V1.DeleteAllNotificationOccurrencesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Permanently deletes every visible occurrence current at the server's
authoritative mutation boundary. Callers must not retry this mutation
automatically because later activity may arrive after that boundary.
Returns UNIMPLEMENTED rather than partially deleting a signal kind this
server cannot validate.

# `delete_notification_occurrence`

```elixir
@spec delete_notification_occurrence(
  Req.Request.t(),
  Chatto.Api.V1.DeleteNotificationOccurrenceRequest.t()
) ::
  {:ok, Chatto.Api.V1.DeleteNotificationOccurrenceResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Permanently deletes one occurrence while retaining its anti-recreation
tombstone through the original expiry. Repeating the call is safe. Returns
UNIMPLEMENTED when this server cannot validate the occurrence signal kind.

# `get_notification_occurrence`

```elixir
@spec get_notification_occurrence(
  Req.Request.t(),
  Chatto.Api.V1.GetNotificationOccurrenceRequest.t()
) ::
  {:ok, Chatto.Api.V1.GetNotificationOccurrenceResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Gets one exact visible occurrence. Message-derived occurrences require
current room membership. Occurrences also require message.read or a
matching thread relationship with message.read-interactions. Returns NOT_FOUND when the occurrence
is absent, deleted, expired, or no longer visible to the authenticated
viewer. Returns UNIMPLEMENTED when this server cannot validate its signal
kind.

# `list_notification_occurrences`

```elixir
@spec list_notification_occurrences(
  Req.Request.t(),
  Chatto.Api.V1.ListNotificationOccurrencesRequest.t()
) ::
  {:ok, Chatto.Api.V1.ListNotificationOccurrencesResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Lists exact Notifications 2.0 occurrences. Clients may derive temporary
presentation groups without changing occurrence identity or counts.
Message-derived occurrences require current room membership. Occurrences
also require message.read or a matching thread relationship with
message.read-interactions.
Returns UNIMPLEMENTED rather than silently omitting an occurrence whose
signal kind this server version cannot validate and assemble.

# `mark_notification_read`

```elixir
@spec mark_notification_read(
  Req.Request.t(),
  Chatto.Api.V1.MarkNotificationReadRequest.t()
) ::
  {:ok, Chatto.Api.V1.MarkNotificationReadResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Marks one occurrence read. Repeating the call is safe. Returns
UNIMPLEMENTED when this server cannot validate the occurrence signal kind.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
