# `AgentBlueprintProtocol.ExtensionRegistry`
[🔗](https://github.com/baselabs/agent_blueprint_protocol/blob/v1.1.0/lib/agent_blueprint_protocol/extension_registry.ex#L1)

This module exposes registered extension namespaces and their lifecycle data.

Use it when inspecting the registry or its federation schema.

This module does not authorize operations.

## Example

```elixir
is_list(AgentBlueprintProtocol.ExtensionRegistry.registered_extensions())
```

# `criticality`
*since 1.0.0* 

```elixir
@type criticality() :: :critical | :optional
```

A registered extension criticality value.

# `output`
*since 1.0.0* 

```elixir
@type output() :: %AgentBlueprintProtocol.ExtensionRegistry{
  a2a_uri: binary(),
  criticality: criticality(),
  namespace: binary(),
  owner: binary(),
  promoted_at_revision: pos_integer() | nil,
  schema_digest: binary() | nil,
  state: output_state()
}
```

A registry entry returned by lookup.

# `output_state`
*since 1.0.0* 

```elixir
@type output_state() :: atom()
```

A registry lifecycle value. Match known values and keep a catch-all branch.

# `state`
*since 1.0.0* 

```elixir
@type state() :: :reserved | :active | :deprecated | :retired
```

A registered extension lifecycle value.

# `t`
*since 1.0.0* 

```elixir
@type t() :: %AgentBlueprintProtocol.ExtensionRegistry{
  a2a_uri: binary(),
  criticality: criticality(),
  namespace: binary(),
  owner: binary(),
  promoted_at_revision: pos_integer() | nil,
  schema_digest: binary() | nil,
  state: state()
}
```

The public data type for AgentBlueprintProtocol.ExtensionRegistry.

# `digest`
*since 1.0.0* 

```elixir
@spec digest() :: AgentBlueprintProtocol.Digest.t()
```

Returns the digest of the compiled extension registry.

## Example

    iex> match?(%AgentBlueprintProtocol.Digest{algorithm: :sha256, bytes: <<_::256>>}, AgentBlueprintProtocol.ExtensionRegistry.digest())
    true

# `federation_schema`
*since 1.0.0* 

```elixir
@spec federation_schema() :: AgentBlueprintProtocol.Json.value()
```

Returns the schema used for Federation extension content.

## Example

    iex> match?({:object, _}, AgentBlueprintProtocol.ExtensionRegistry.federation_schema())
    true

# `registered_extensions`
*since 1.0.0* 

```elixir
@spec registered_extensions() :: [output()]
```

Returns the registered extension entries.

## Example

    iex> Enum.all?(AgentBlueprintProtocol.ExtensionRegistry.registered_extensions(), &is_struct(&1, AgentBlueprintProtocol.ExtensionRegistry))
    true

---

*Consult [api-reference.md](api-reference.md) for complete listing*
