AmpSdk.Types.Permission (AmpSdk v0.4.0)

Copy Markdown View Source

A tool permission rule for the CLI session.

Summary

Types

t()

@type t() :: %AmpSdk.Types.Permission{
  action: String.t(),
  context: String.t() | nil,
  matches: map() | nil,
  to: String.t() | nil,
  tool: String.t()
}

Functions

new(tool, action, opts \\ [])

@spec new(String.t(), String.t(), keyword()) ::
  {:ok, t()} | {:error, AmpSdk.Error.t()}

new!(tool, action, opts \\ [])

@spec new!(String.t(), String.t(), keyword()) :: t()