interface · Browser and Node

# Decision

`@toip-tools/mandates` · [View source](https://github.com/yourbuddyconner/toip-tools/blob/main/packages/mandates/src/types.ts#L82)

Import:

```ts
import { type Decision } from "@toip-tools/mandates";
```

## Declaration

interface:

```ts
interface Decision {
  outcome: Outcome;
  reasons: Reason[];
  /** For "escalate": who can approve. */
  approver: string | null;
  actionHash: string;
  /** Mandate ids, root first. */
  chain: string[];
  /** Issuer and subject of each link, root first, so a decision can be explained on its own. */
  parties: { issuer: string; subject: string }[];
  policy: { id: string; hash: string };
  at: string;
}
```

## Properties

**`outcome` (required)**

`Outcome`

**`reasons` (required)**

`Reason[]`

**`approver` (required)**

`string | null`

For "escalate": who can approve.

**`actionHash` (required)**

`string`

**`chain` (required)**

`string[]`

Mandate ids, root first.

**`parties` (required)**

`{ issuer: string; subject: string; }[]`

Issuer and subject of each link, root first, so a decision can be explained on its own.

**`policy` (required)**

`{ id: string; hash: string; }`

**`at` (required)**

`string`

[Usage guide](https://toip.tools/toolkit/mandates/#usage) · [Error handling](https://toip.tools/toolkit/mandates/#errors) · [All exports](https://toip.tools/toolkit/mandates/api/)

---

This is the Markdown version of https://toip.tools/toolkit/mandates/api/Decision/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
