ArchAstro.SDK.Types.TeamMembership (archastro v0.3.1)

Copy Markdown

A record representing a user's or agent's membership in a team, including their resolved identity details and role.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.TeamMembership{
  agent: ArchAstro.SDK.Types.Agent.t() | ArchAstro.SDK.Unset.t(),
  created_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  id: String.t(),
  joined_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  metadata:
    %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(),
  name: String.t() | ArchAstro.SDK.Unset.t(),
  profile_picture:
    ArchAstro.SDK.Types.ImageSource.t() | ArchAstro.SDK.Unset.t(),
  role: String.t() | ArchAstro.SDK.Unset.t(),
  team:
    %{optional(String.t()) => ArchAstro.SDK.JSON.t()} | ArchAstro.SDK.Unset.t(),
  type: String.t() | ArchAstro.SDK.Unset.t(),
  updated_at: DateTime.t() | ArchAstro.SDK.Unset.t(),
  user: ArchAstro.SDK.Types.User.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()