ArchAstro.Types.Thread (archastro v0.2.0)

Copy Markdown

A chat thread, representing a conversation channel that can be owned by a user, team, or agent and may contain messages, participants, and AI agent activity.

Summary

Types

t()

@type t() :: %ArchAstro.Types.Thread{
  agent_user: String.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t() | ArchAstro.Unset.t(),
  creator:
    String.t()
    | ArchAstro.Types.Thread.Nested.CreatorVariant2.t()
    | ArchAstro.Unset.t(),
  description: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  is_channel: boolean() | ArchAstro.Unset.t(),
  is_default: boolean() | ArchAstro.Unset.t(),
  is_transient: boolean() | ArchAstro.Unset.t(),
  is_unlisted: boolean() | ArchAstro.Unset.t(),
  key: String.t() | ArchAstro.Unset.t(),
  kind: String.t() | ArchAstro.Unset.t(),
  last_activity: DateTime.t() | ArchAstro.Unset.t(),
  last_message_preview: String.t() | ArchAstro.Unset.t(),
  last_message_sender: String.t() | ArchAstro.Unset.t(),
  metadata: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  muted: boolean() | ArchAstro.Unset.t(),
  org: String.t() | ArchAstro.Unset.t(),
  parent_message: ArchAstro.Types.Message.t() | ArchAstro.Unset.t(),
  participant: [String.t()] | ArchAstro.Unset.t(),
  participants: [ArchAstro.Types.User.t()] | ArchAstro.Unset.t(),
  participating_actor: [String.t()] | ArchAstro.Unset.t(),
  participating_agents: [ArchAstro.Types.Agent.t()] | ArchAstro.Unset.t(),
  role: String.t() | ArchAstro.Unset.t(),
  sandbox: String.t() | ArchAstro.Unset.t(),
  settings: ArchAstro.Types.ThreadSettings.t() | ArchAstro.Unset.t(),
  slug: String.t() | ArchAstro.Unset.t(),
  sub_threads:
    [%{optional(String.t()) => ArchAstro.JSON.t()}] | ArchAstro.Unset.t(),
  tags: [String.t()] | ArchAstro.Unset.t(),
  team: String.t() | ArchAstro.Unset.t(),
  title: String.t() | ArchAstro.Unset.t(),
  ttl: integer() | ArchAstro.Unset.t(),
  unread_count: integer() | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t(),
  user: String.t() | ArchAstro.Unset.t(),
  visibility: String.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()