ArchAstro.Types.InstallationSource (archastro v0.2.0)

Copy Markdown

A source attached to an installation that supplies content for the agent's context. Sources are processed asynchronously after creation.

Summary

Types

t()

@type t() :: %ArchAstro.Types.InstallationSource{
  agent: String.t() | ArchAstro.Unset.t(),
  context_installation: 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(),
  parent_source: String.t() | ArchAstro.Unset.t(),
  payload: %{optional(String.t()) => ArchAstro.JSON.t()} | ArchAstro.Unset.t(),
  state: String.t() | ArchAstro.Unset.t(),
  team: String.t() | ArchAstro.Unset.t(),
  thread: String.t() | ArchAstro.Unset.t(),
  type: String.t() | ArchAstro.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.Unset.t(),
  user: 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()