ArchAstro.SDK.Types.Attachment (archastro v0.3.5)

Copy Markdown

A rich attachment associated with a message, such as a file, scraped link, artifact, task, media item, or inline action.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.Attachment{
  content_type: String.t() | nil | ArchAstro.SDK.Unset.t(),
  description: String.t() | nil | ArchAstro.SDK.Unset.t(),
  filename: String.t() | nil | ArchAstro.SDK.Unset.t(),
  height: integer() | nil | ArchAstro.SDK.Unset.t(),
  id: String.t(),
  image_height: integer() | nil | ArchAstro.SDK.Unset.t(),
  image_source:
    ArchAstro.SDK.Types.ImageSource.t() | nil | ArchAstro.SDK.Unset.t(),
  image_url: String.t() | nil | ArchAstro.SDK.Unset.t(),
  image_width: integer() | nil | ArchAstro.SDK.Unset.t(),
  media_type: String.t() | ArchAstro.SDK.Unset.t(),
  name: String.t() | nil | ArchAstro.SDK.Unset.t(),
  object:
    %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(),
  title: String.t() | nil | ArchAstro.SDK.Unset.t(),
  type: String.t(),
  url: String.t() | nil | ArchAstro.SDK.Unset.t(),
  variants: [ArchAstro.SDK.Types.MediaVariant.t()] | ArchAstro.SDK.Unset.t(),
  version: integer() | nil | ArchAstro.SDK.Unset.t(),
  width: integer() | nil | 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()