Snodo.Authorization.Component (snodo v0.2.0)

Copy Markdown View Source

The identity of one registered router component shown to an authorization policy.

name is the registered component name, which the router keeps unique within each catalog. uri carries the exact registered resource URI or resource URI template and is nil for tools and prompts. A policy may key on either, and new fields are additive, so match with a map pattern rather than positionally.

Summary

Types

kind()

@type kind() :: :tool | :prompt | :resource | :resource_template

t()

@type t() :: %Snodo.Authorization.Component{
  kind: kind(),
  name: String.t(),
  uri: String.t() | nil
}