ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItem (archastro v0.2.0)

Copy Markdown

MessagesItem API model.

Summary

Types

t()

@type t() ::
  %ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItem{
    acl:
      ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItemAcl.t()
      | ArchAstro.Unset.t(),
    actors:
      [
        ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItemActorsItem.t()
      ]
      | ArchAstro.Unset.t(),
    agent: String.t() | ArchAstro.Unset.t(),
    agent_mode: String.t() | ArchAstro.Unset.t(),
    attachments:
      [
        ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItemAttachmentsItem.t()
      ]
      | ArchAstro.Unset.t(),
    branched_thread: String.t() | ArchAstro.Unset.t(),
    content: String.t() | ArchAstro.Unset.t(),
    created_at: DateTime.t() | ArchAstro.Unset.t(),
    has_replies: boolean() | ArchAstro.Unset.t(),
    id: String.t(),
    idempotency_key: String.t() | ArchAstro.Unset.t(),
    is_deleted: boolean() | ArchAstro.Unset.t(),
    legacy_agent: String.t() | ArchAstro.Unset.t(),
    metadata:
      %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
    org: String.t() | ArchAstro.Unset.t(),
    reactions:
      [
        ArchAstro.Types.ChannelPayloads.ApiChatChannel.ApiChatListMessages.Response.Nested.MessagesItemReactionsItem.t()
      ]
      | ArchAstro.Unset.t(),
    rendering_mode: String.t() | ArchAstro.Unset.t(),
    replies:
      [%{optional(String.t()) => ArchAstro.JSON.t()}] | ArchAstro.Unset.t(),
    replies_after_cursor: String.t() | ArchAstro.Unset.t(),
    replies_before_cursor: String.t() | ArchAstro.Unset.t(),
    reply_count: integer() | ArchAstro.Unset.t(),
    reply_to:
      %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
    root_message_id: String.t() | nil | ArchAstro.Unset.t(),
    sandbox: String.t() | ArchAstro.Unset.t(),
    team: String.t() | ArchAstro.Unset.t(),
    thread: String.t() | ArchAstro.Unset.t(),
    type: String.t() | ArchAstro.Unset.t(),
    user: String.t() | ArchAstro.Unset.t(),
    visibility: String.t() | ArchAstro.Unset.t()
  }

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()