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

Copy Markdown

A task representing a unit of work, optionally assignable to a user or agent.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.Task{
  agent: String.t() | nil | ArchAstro.SDK.Unset.t(),
  blocked_by_count: integer() | ArchAstro.SDK.Unset.t(),
  closed_at: DateTime.t() | nil | ArchAstro.SDK.Unset.t(),
  comments_count: integer() | ArchAstro.SDK.Unset.t(),
  created_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  created_by_actor:
    ArchAstro.SDK.Types.Actor.t() | nil | ArchAstro.SDK.Unset.t(),
  created_by_agent: String.t() | nil | ArchAstro.SDK.Unset.t(),
  created_by_user: String.t() | nil | ArchAstro.SDK.Unset.t(),
  current_lease:
    ArchAstro.SDK.Types.TaskSessionLeaseSummary.t()
    | nil
    | ArchAstro.SDK.Unset.t(),
  description: String.t() | nil | ArchAstro.SDK.Unset.t(),
  due_date: DateTime.t() | nil | ArchAstro.SDK.Unset.t(),
  epic: String.t() | nil | ArchAstro.SDK.Unset.t(),
  id: String.t(),
  is_blocked: boolean() | ArchAstro.SDK.Unset.t(),
  links:
    %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(),
  metadata:
    %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(),
  name: String.t(),
  org: String.t() | nil | ArchAstro.SDK.Unset.t(),
  owner_actor: ArchAstro.SDK.Types.Actor.t() | nil | ArchAstro.SDK.Unset.t(),
  owner_agent: String.t() | nil | ArchAstro.SDK.Unset.t(),
  owner_user: String.t() | nil | ArchAstro.SDK.Unset.t(),
  parent: String.t() | nil | ArchAstro.SDK.Unset.t(),
  priority: integer() | ArchAstro.SDK.Unset.t(),
  sandbox: String.t() | nil | ArchAstro.SDK.Unset.t(),
  source_id: String.t() | nil | ArchAstro.SDK.Unset.t(),
  source_scope: String.t() | nil | ArchAstro.SDK.Unset.t(),
  source_type: String.t() | nil | ArchAstro.SDK.Unset.t(),
  status: String.t(),
  subtasks_count: integer() | ArchAstro.SDK.Unset.t(),
  tags: [String.t()] | ArchAstro.SDK.Unset.t(),
  team: String.t() | nil | ArchAstro.SDK.Unset.t(),
  thread: String.t() | nil | ArchAstro.SDK.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  user: String.t() | 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()