Chimeway.Inbox.Change (chimeway v1.2.0)

Copy Markdown View Source

Closed reload hint delivered to a host-configured inbox change publisher.

The hint contains routing scope only. Durable notification state remains the authority and consumers must reload it rather than treating this value as a delta.

Summary

Types

event()

@type event() :: :created | :seen | :read | :archived

t()

@type t() :: %Chimeway.Inbox.Change{
  event: event(),
  recipient_ref: String.t(),
  tenant_id: String.t(),
  version: 1
}

Functions

new(tenant_id, recipient_ref, event)

@spec new(term(), term(), term()) :: {:ok, t()} | {:error, :invalid_change}