Reads, marks read, and deletes notifications for the authenticated viewer.
Summary
Functions
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.
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.
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.
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.
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.
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.
Marks one occurrence read. Repeating the call is safe. Returns UNIMPLEMENTED when this server cannot validate the occurrence signal kind.
Functions
@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.
@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.
@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.
@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.
@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.
@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.
@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.