# `ExGAM.Disclosure`
[🔗](https://github.com/elchemista/ex_gam/blob/0.1.0/lib/ex_gam/disclosure.ex#L1)

Closed description of information crossing a Domain boundary.

The descriptor names destinations and the durable Evidence that may have
influenced the output. Labels are derived from those Evidence records by the
kernel; callers cannot use this value to assert weaker labels.

# `t`

```elixir
@type t() :: %ExGAM.Disclosure{
  destination_refs: [String.t()],
  labels: [ExGAM.Label.t()],
  schema_version: 1,
  source_evidence_refs: [String.t()]
}
```

# `canonical`

```elixir
@spec canonical(t()) :: map()
```

Returns the plain ledger representation.

# `from_canonical`

```elixir
@spec from_canonical(map()) :: {:ok, t()} | {:error, term()}
```

Restores a descriptor from its canonical representation.

# `labels_covered?`

```elixir
@spec labels_covered?(t(), [ExGAM.Label.t()]) :: boolean()
```

Returns true when every disclosed label is explicitly covered by a Mandate.

# `new`

```elixir
@spec new(t() | map() | keyword()) :: {:ok, t()} | {:error, term()}
```

Builds the canonical disclosure descriptor.

# `validate_boundary`

```elixir
@spec validate_boundary(ExGAM.Row.t(), t() | nil, [String.t()], [String.t()]) ::
  :ok | {:error, term()}
```

Validates how the descriptor relates to one Candidate or Act.

# `verify_sources`

```elixir
@spec verify_sources(t(), %{optional(String.t()) =&gt; ExGAM.Evidence.t()}) ::
  :ok | {:error, term()}
```

Checks that every source exists and that its conservative label union is exact.

---

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