# `AshGrant.Domain.Info`
[🔗](https://github.com/jhlee111/ash_grant/blob/v0.22.0/lib/ash_grant/domain/info.ex#L1)

Introspection helpers for AshGrant domain-level DSL configuration.

Used internally by `AshGrant.Info` to read domain-level settings and merge
them into resources at runtime. Merging happens on each call rather than at
compile time to avoid a compile-time cycle between resource and domain
when the domain also defines `code_interface` entries targeting the
resource.

# `configured?`

```elixir
@spec configured?(domain :: Ash.Domain.t()) :: boolean()
```

Returns true if the domain has the `AshGrant.Domain` extension configured.

# `get_scope`

```elixir
@spec get_scope(domain :: Ash.Domain.t(), name :: atom()) ::
  AshGrant.Dsl.Scope.t() | nil
```

Gets a specific scope by name from the domain.

# `resolver`

```elixir
@spec resolver(domain :: Ash.Domain.t()) :: module() | function() | nil
```

Gets the permission resolver configured on the domain.

Returns `nil` if the domain does not use the `AshGrant.Domain` extension
or has no `resolver` configured.

# `scopes`

```elixir
@spec scopes(domain :: Ash.Domain.t()) :: [AshGrant.Dsl.Scope.t()]
```

Gets all scope definitions from the domain.

Returns `[]` if the domain does not use the `AshGrant.Domain` extension.

---

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