ArchAstro.Types.ThreadMessage (archastro v0.2.0)

Copy Markdown

A single message posted to a thread, as seen from the developer portal. Includes sender information, optional attachments, and scoping identifiers.

Summary

Types

t()

@type t() :: %ArchAstro.Types.ThreadMessage{
  acl: ArchAstro.Types.Acl.t() | ArchAstro.Unset.t(),
  admin: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  agent: String.t() | ArchAstro.Unset.t(),
  agent_mode: String.t() | ArchAstro.Unset.t(),
  app: String.t() | ArchAstro.Unset.t(),
  attachments: [ArchAstro.Types.Attachment.t()] | ArchAstro.Unset.t(),
  content: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  id: String.t(),
  metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  org: String.t() | ArchAstro.Unset.t(),
  root_message_id: String.t() | nil | ArchAstro.Unset.t(),
  sandbox: String.t() | ArchAstro.Unset.t(),
  sender: String.t() | ArchAstro.Unset.t(),
  sender_name: String.t() | ArchAstro.Unset.t(),
  sender_type: String.t() | ArchAstro.Unset.t(),
  team: 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()