interface · Browser and Node

# MandateSubject

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

Import:

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

## Declaration

interface:

```ts
interface MandateSubject {
  /** The delegate's DID. */
  id: string;
  mandateVersion: 1;
  /** Which action vocabulary: "settle/1", "capture/1", or one added with registerProfile. */
  profile: string;
  /** For people only. Never evaluated. */
  purpose?: string;
  parent: { id: string; hash: string } | null;
  constraints: Record<string, Constraint>;
  delegation: { maxDepth: number };
  escalation?: { approvable: string[]; approvalTtlSeconds: number };
  revocation: { maxAgeSeconds: number };
}
```

## Properties

**`id` (required)**

`string`

The delegate's DID.

**`mandateVersion` (required)**

`1`

**`profile` (required)**

`string`

Which action vocabulary: "settle/1", "capture/1", or one added with registerProfile.

**`purpose` (optional)**

`string | undefined`

For people only. Never evaluated.

**`parent` (required)**

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

**`constraints` (required)**

`Record<string, Constraint>`

**`delegation` (required)**

`{ maxDepth: number; }`

**`escalation` (optional)**

`{ approvable: string[]; approvalTtlSeconds: number; } | undefined`

**`revocation` (required)**

`{ maxAgeSeconds: number; }`

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