interface · Browser and Node

# DecideInput

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

Import:

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

## Declaration

interface:

```ts
interface DecideInput {
  chain: Mandate[];
  /** The DID that is acting. For a counterparty, the TSP sender of the presentation. */
  presenter: string;
  action: Action;
  /** What the leaf has spent per period. Required when the leaf has a budget that applies. */
  state?: SpendStatement;
  approvals?: Approval[];
  usedApprovals?: (id: string) => boolean;
  status: StatusResolver;
  requirements?: Requirements;
  facts?: { rootCredentials?: Credential[]; passport?: Credential };
  clock: Clock;
}
```

## Properties

**`chain` (required)**

`Mandate[]`

**`presenter` (required)**

`string`

The DID that is acting. For a counterparty, the TSP sender of the presentation.

**`action` (required)**

`Action`

**`state` (optional)**

`SpendStatement | undefined`

What the leaf has spent per period. Required when the leaf has a budget that applies.

**`approvals` (optional)**

`Approval[] | undefined`

**`usedApprovals` (optional)**

`((id: string) => boolean) | undefined`

**`status` (required)**

`StatusResolver`

**`requirements` (optional)**

`Requirements | undefined`

**`facts` (optional)**

`{ rootCredentials?: Credential[]; passport?: Credential; } | undefined`

**`clock` (required)**

`Clock`

[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/DecideInput/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
