interface · Browser and Node

# Requirements

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

Import:

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

## Declaration

interface:

```ts
interface Requirements {
  /** Default 3. */
  maxLinks?: number;
  /** "<type>@<issuer DID>" of credentials the root must hold, e.g. "VerifiedBusiness@did:key:…". */
  rootMustHold?: string[];
  /** Default "optional" (see the README). */
  passport?: "required" | "optional";
  passportIssuerMustBeRoot?: boolean;
  /** Default 3600. */
  maxStatusAgeSeconds?: number;
}
```

## Properties

**`maxLinks` (optional)**

`number | undefined`

Default 3.

**`rootMustHold` (optional)**

`string[] | undefined`

"@" of credentials the root must hold, e.g. "VerifiedBusiness@did:key:…".

**`passport` (optional)**

`"optional" | "required" | undefined`

Default "optional" (see the README).

**`passportIssuerMustBeRoot` (optional)**

`boolean | undefined`

**`maxStatusAgeSeconds` (optional)**

`number | undefined`

Default 3600.

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