ArchAstro.SDK.Types.ThreadMessage (archastro v0.3.2)

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

Functions

from_map(data)

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

matches?(value)

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

to_map(value)

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