# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.InboxItem do
@moduledoc """
A unified-feed item. Source-aware — `category` indicates which upstream platform (mail, dm, channel, mention, system) produced it; `id` is the inbox-item id (not the underlying message id).
"""
@derive JSON.Encoder
defstruct [
:id,
:category,
:title,
:snippet,
:source,
:sourceId,
:accountId,
:isRead,
:isMention,
:timestamp,
:metadata
]
@type t :: %__MODULE__{
:id => String.t,
:category => String.t,
:title => String.t | nil,
:snippet => String.t | nil,
:source => String.t | nil,
:sourceId => String.t | nil,
:accountId => String.t | nil,
:isRead => boolean() | nil,
:isMention => boolean() | nil,
:timestamp => DateTime.t | nil,
:metadata => %{optional(String.t) => any()} | nil
}
def decode(value) do
value
end
end